Htaccess for PHP4


#1

hai,

I’ve just got my account activated and compile PHP 4. and have installed phpAS. unfortunately the site still not functioning, I do believe it is due to the .htaccess file not properly configured. honestly i just create “.htaccess” and just write the following line (based on DH wiki).

AddHandler phpFour .php
Action phpFour /cgi-bin/php.cgi

Honestly I dont have a clue, I still reading “htaccess” manual (and still have ???).

So any pointer from any of the oldhand is highly appreciated.

thanks
WhizJet


#2

Create a small phpinfo script and see what php.ini file php is pointing to.
The script looks like this:

<? php phpinfo(); [quote] [/quote] Silk

#3

BTW,
Remember to remove that script when you are done.
Silk


#4

Nope still having the same error :

Should there be “php.ini” around ? cannot find mine.


"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@gamespad.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


#5

Do you have a /cgi-bin/php.cgi file?

Internal Server Error on a .htaccess file means the file is bad. Not reading something right or you mistyped something.


yerba# rm -rf /etc
yerba#


#6

Yes /cgi-bin/php.cgi is there.

as for the htaccess, i just create a file typein the command as per wiki instruction, and that it.

I’m just curious about the php.ini. is it really required ?