CGI PHP + phpmyadmin

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

CGI PHP + phpmyadmin

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

consult the apache htaccess/AddHandler documentation for that information.
Post Reply