|
-
Nov 22nd, 2006, 12:56 AM
#1
Thread Starter
Fanatic Member
404 Not Found
I have
Code:
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
Code:
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
Code:
LoadModule php4_module "C:/php4/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
and viola it worked.
Last edited by nebulom; Nov 22nd, 2006 at 01:07 AM.
-
Nov 22nd, 2006, 01:22 AM
#2
Re: 404 Not Found
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.
Last edited by kows; Nov 22nd, 2006 at 01:26 AM.
-
Nov 22nd, 2006, 02:58 AM
#3
Re: 404 Not Found
 Originally Posted by nebulom
I have
Code:
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
Code:
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
Code:
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
-
Nov 22nd, 2006, 03:04 AM
#4
Thread Starter
Fanatic Member
Re: 404 Not Found
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.
-
Nov 22nd, 2006, 06:00 AM
#5
Re: 404 Not Found
Unless your PHP scripts are actually in c:\php4, get rid of the ScriptAlias.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|