htaccess for PHP4

htaccess for PHP4

Posted by: WhizJet
Posted on: 2006-07-11 17:00:00

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

Re: htaccess for PHP4

Posted by: silkrooster
Posted on: 2006-07-11 18:51:00

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

<? php
phpinfo();
>

Silk

Re: htaccess for PHP4

Posted by: silkrooster
Posted on: 2006-07-11 18:53:00

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

Re: htaccess for PHP4

Posted by: WhizJet
Posted on: 2006-07-11 19:18:00

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."

Re: htaccess for PHP4

Posted by: guice
Posted on: 2006-07-11 21:30:00

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.

Re: htaccess for PHP4

Posted by: WhizJet
Posted on: 2006-07-11 21:45:00

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 ?

Tags: php cgihtaccess filephp 4cgi binhighly appreciatedunfortunatelywikiphp4pointercluereadingaction