Page 1 of 1

CGI PHP + phpmyadmin

Posted: Tue Oct 05, 2004 3:47 pm
by Shendemiar
Not really a subject to any of forums here, but this beeing far best forum i ask it anyway.

I'm running php as a cgi and trying to have my phpmyadmin work. I know i need to add the path to the command interpreter to any indipendent php file to get it work.

Which files i need to add it? Most files will be executed as included so to those i dont need to add. Is there a script for it, maybe a setting somewhere?

I added it allready to the index.php, and now i get three internal server errors instead of just one :D

I've browsed through lot of stuff related to phpmyadmin, but the documentation is obsolete in this matter.

Posted: Tue Oct 05, 2004 3:51 pm
by feyd
afaik, it's not possible to use a setting for it.. since it's a physical line that much appear as the first line in the file for the cgi system to find the interpreter.. that's if the shebang is required at all. I dont think you need it if you have php set up under the AddHandler directive (assuming Apache here) or whatever it was directive for adding types for cgi processing...

btw, this was the correct forum for such a question.

Posted: Tue Oct 05, 2004 4:34 pm
by Shendemiar
Thanks! I'm browsing through Unix Htaccess php etc guidesm but i'll ask here also:

So i dont need to add the #!/blaah/blaah but instead do some configuration for the unix or php installed there.

I dont know if i have priviledges for that. Can i make htaccess to add the path to each php file executed or something similar?

Posted: Tue Oct 05, 2004 4:36 pm
by feyd
consult the apache htaccess/AddHandler documentation for that information.