Hi,
I am a newbie in PHP. I want to build my own web site, and someone told me that should use PHP.
I downloaded PHP and Apache first and installed on my WindowsXP. But I met some problem as below:
After I installed Apache ver.2.0.39 on my WinXP success. When I type http://localhost/ in address bar from IE, Apache page display well. Oh, my Apache server worked well!
Then I installed PHP by manual. I followed by instructions from "PHP Manual":
- copy php4st.dll and other dlls into %SYSTEMROOT%
- edit php.ini and copy to %WINDOWS%
- edit httpd.conf to run PHP as CGI binary (php.exe)
I created a directory as "C:\webroot\" and modified document_root with this value in php.ini. I built a sample hello.php and copy to c:\webroot, Apache server started, and I used IE to type http://localhost/hello.php and hope to see some thing. But nothing appeared.
Ah, my PHP was not working. I tried to use PHP as the Apache module DLL by modified httpd.conf like "PHP Manual", but when I restarted Apache, it's failed. I think "LoadModule php4_module c:/php/sapi/php4apache.dll" was wrong and modified to "LoadModule php4_module c:/php/sapi/php4apache2.dll", my Apache started well. But when I type http://localhost/hello.php again, nothing happened.
My test PHP is hello.php from "PHP Manual", and when I did a "view source" in the web browser, I could see the source code of hello.php. Problem here is configuration, but I had followed by PHP manual step by step and I think I worked right.
How to correct my problem?
Please help me. Thank you!
Huu Quynh