PDA

View Full Version : installing php


John Harrison
Fri 13th Apr '01, 6:13pm
hi

I am trying to get the last step on installing php4.04pl done but having a minor problem.

apache version: 1.3.16
php version: php4.04pl1
os: win98SE


When I test a php script it says file not found - 404 at http://localhost/test.php

But when I type in http://localhost/ it gives the sucessful Apache install. So its an issue with my php installtion I guest.

Can anyone confirm if this is correct?:

httpd.conf
AddType application/x-tar .tgz

ScriptAlias /php4/ "c:/php4win"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php /php4/php.exe

Thanks in advance for any help

John Harrison
Sat 14th Apr '01, 9:23am
Small update:

http://localhost/ now gives me an index which shows the test.php file but when accessing it I get a 404 page can not be found and when I type http://localhost/test.php it gives me the same 404 page can not be found.

But I have a Image in there and that works both ways. By manualy typing in http://localhost/image.gif and accessing from http://localhost/ which has the index listing.

So its php files not working correctly so can someone help me.

Grumble
Sat 14th Apr '01, 12:14pm
In my apache config i have:

#LoadModule anon_auth_module modules/ApacheModuleAuthAnon.dll
#LoadModule dbm_auth_module modules/ApacheModuleAuthDBM.dll
#LoadModule digest_auth_module modules/ApacheModuleAuthDigest.dll
#LoadModule cern_meta_module modules/ApacheModuleCERNMeta.dll
#LoadModule digest_module modules/ApacheModuleDigest.dll
#LoadModule expires_module modules/ApacheModuleExpires.dll
#LoadModule headers_module modules/ApacheModuleHeaders.dll
#LoadModule proxy_module modules/ApacheModuleProxy.dll
#LoadModule rewrite_module modules/ApacheModuleRewrite.dll
#LoadModule speling_module modules/ApacheModuleSpeling.dll
#LoadModule info_module modules/ApacheModuleInfo.dll
#LoadModule status_module modules/ApacheModuleStatus.dll
#LoadModule usertrack_module modules/ApacheModuleUserTrack.dll
#LoadModule asp_module modules/apasp.dll
#LoadModule php4_module c:/php/sapi/php4apache.dll

And:

ScriptAlias /cgi-bin/ "c:/apache/cgi-bin/"
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
Action application/x-httpd-php3 "/php4/php.exe"
AddType application/x-httpd-php3 .php3

And:

AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

And php has always worked perfectly for me.....

John Harrison
Sat 14th Apr '01, 12:53pm
Thanks for trying but it didn't work so I have uninstalled the lot and are trying again.

I must have done something wrong anyhow.

Nicholas Brown
Sat 14th Apr '01, 1:34pm
John - try www.php4win.de

John Harrison
Sat 14th Apr '01, 2:45pm
cheers but I decided that it would be better just to install Linux Mandrake which has MYSQL, PHP, Perl, SMTP, Apache and lots more.