Problem with PHP
Info: OS - Windows XP Professional
NTFS
Downloaded the mentioned files.
APACHE v_1.3.27
~~~~~~
1) Installed Apache into C:\Program Files\Apache Group\Apache\
- Checked, works ok.
PHP v_4.3
~~~~~~
1) Extracted the distribution file to directory C:\PHP
2) Copied the file php.ini-dist to C:\windows directory and renamed to php.ini
3) In php.ini I changed the 'extension_dir' setting to point to c:\php\extensions directory, where I have placed my 'php_*.dll' files (extension_dir = C:\PHP\extensions).
4) In php.ini set the 'doc_root' to point to C:\Program Files\Apache Group\Apache\htdocs (doc_root = C:\Program Files\Apache Group\Apache\htdocs)
5) Moved the mibs directory supplied with the Windows distribution containing support files for SNMP to C:\usr\mibs
Installed PHP for Apache as module
~~~~~~
1) Loaded the php4apache.dll in Apache httpd.conf
2) Added the following lines to your httpd.conf:
LoadModule php4_module c:/php/sapi/php4apache.dll
# AddModule mod_php4.c (I commented this line because Apache said mod_php4 is already added)
AddType application/x-httpd-php .php
3) Moved the php4ts.dll file into C:\PHP\sapi folder, where php4apache.dll is loaded from
- Checked, Apache doesn't give any problems, But when I try to access a php script file via my browser, I get a blank screen.
Probably something's wrong with the server configuration - am I doing something wrong or missing something?
Thank you in advance.
|