PDA

Click to See Complete Forum and Search --> : 404 Not Found


nebulom
Nov 21st, 2006, 11:56 PM
I have ScriptAlias /php4/ "C:/php4"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "C:/php4/php.exe"
on my httpd.conf and I get 404 Not Found error
The requested URL /php4/php.exe/phpinfo.php was not found on this server.
Am I missing something? I have extracted php4.4.1. to C:/php4.

Edit: I just edited the config and added
LoadModule php4_module "C:/php4/sapi/php4apache2.dll"
AddType application/x-httpd-php .php and viola it worked.

kows
Nov 22nd, 2006, 12:22 AM
any real reason you're not installing PHP as a module on Apache?

either way, I've only ever installed PHP as a module, so I doubt very much I could help you. just by looking at it though, I'm confused as to what you're requesting from the browser. are you going to localhost/phpinfo.php? localhost/php4/phpinfo.php? or are you actually entering localhost/php4/php.exe/phpinfo.php?

Version of Apache?

edit: nevermind, guess you figured out how to install it as a module instead of as a CGI while I was looking around for similar problems.

Just a note: installing PHP as a CGI on a webserver opens you up to several possible attacks. you can read, I believe, on php.net about these. I don't have a link, but I'm sure you could find it by searching google if you were so inclined.

visualAd
Nov 22nd, 2006, 01:58 AM
I have ScriptAlias /php4/ "C:/php4"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "C:/php4/php.exe"
on my httpd.conf and I get 404 Not Found error
The requested URL /php4/php.exe/phpinfo.php was not found on this server.
Am I missing something? I have extracted php4.4.1. to C:/php4.

Edit: I just edited the config and added
LoadModule php4_module "C:/php4/sapi/php4apache2.dll"
AddType application/x-httpd-php .php and viola it worked.
Why aren't you using PHP 5 :mad:

nebulom
Nov 22nd, 2006, 02:04 AM
Hehe. Coz there's just a little revision on it and I don't want myself getting involve with the migrating from 4 to 5. Not for now. It would be okay though if I code 5 from scratch.

CornedBee
Nov 22nd, 2006, 05:00 AM
Unless your PHP scripts are actually in c:\php4, get rid of the ScriptAlias.