So, I need to install PHP 4.3.6 on WinXP Pro With Apache 2.0.49. I want to make tests of PHP scripts on the same local machine; working directory: c:\somenet.
My question is: What I do wrong and/or what I miss to do?
1. I downloaded 'apache_2.0.49-win32-x86-no_ssl.msi' file (5 955KB) from the http://www.apache.org/
2.Installed it with default settings: http://www.somenet.com, etc. in the default directory: c:\Program Files\Apache Group\Apache2
3.Changed 2 lines in httpd.conf:
DocumentRoot "c:/somenet"
<Directory "c:/somenet">
4.Created file index.html in c:\somenet with simple 'Hello World' message
----------------------
So far, so good! Apache works OK! When I simply try to connect in IE to the local host '127.0.0.1' and I see the page I made (c:\somenet\index.html). It even works on the local net! That's good... But Let's go to the PHP.
5.I've downloaded 'php-4.3.6-Win32.zip' file (7 202KB) from http://www.php.net/.
6.Unzipped the content in 'c:\' and renamed 'c:\php-4.3.6-Win32' directory to 'c:\php' (as recommended in the manuals).
7.I've made a copy of 'php.ini-recommended' form 'c:\php' to 'c:\windows' and ranamed it to 'php.ini'
8.Set the following lines:
doc_root = c:\somenet
user_dir = c:\somenet
extension_dir = "c:\php\extensions"
9.Coppied 'php4ts.dll' to 'c:\php\sapi'.
10. Added these two lines in DSO section of 'httpd.conf'
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
11.Added simple PHP code in 'index.html' to make test.
----------------------
So, it should be working? Or I am missing something?! It didn't work so I also did this:
12.Coppied all of the conent in 'c:\php\sapi' folder to the following directories:
c:\windows\system32
c:\windows
c:\windows\system
c:\Program Files\Apache Group\Apache2
I did it step by step, which means i first coppied to 'c:\windows\system32' and tried if it's going to work... Nope. It didn't ...
13. I've also reanamed 'c:/php/sapi/php4apache2.dll' to see if Apache tries to access to that file. Yes, it does.
14. Then I uncomment almost all of the extensions in 'php.ini' file (the one in 'c:\windows') like:
extension=php_bz2.dll
extension=php_cpdf.dll
etc.
by removing ';' . The apache does acces to most of them except ones like:
extension=php_mcrypt.dll
extension=php_oracle.dll
etc.
But... Still nothing!!!
Well, usually I don't like to ask for help, but this time I really need your help guys. As I've said: I count on you!
Thank you all very much in advance!
P.S.I know I've explained it too much detailed but I wanted to be sure that you'll imagine exactly how I do it.
P.P.S The funny thing is that about two months ago when I've tried to install php on apache for the first time I did it with almost no difficulties. But now it just doesn't want to work
.


.
