Hi All,
I have installed Apache 2.2.11 (using the installer exe) and PHP 5.2.9-1 (by unzipping the Zip file) in my local machine (Windows XP SP2).
To make these work with each other, i've edited the httpd.conf file by adding the below lines of code:
LoadModule php5_module "c:/php /php5apache2_2.dll "
AddType application/x-httpd-php .php .php5
PHPIniDir "c:/php"
And also edited the php.ini (after renaming the php.ini-dist file) in 4 places as below:
doc_root = "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
extension_dir = "C:\php\ext"
extension=php_mysql.dll (removed the semicolon which was present earlier)
extension=php_mysqli.dll (removed the semicolon which was present earlier)
Apache server is running fine. I could see "It Works" message when run http://localhost
To test the PHP & Apache configuration, i have created a test.php file with the below code:
<?php
phpinfo();
?>
and placed this file in the path "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
But, when accessed http://localhost /test.php , i'm getting "HTTP 404 Not Found".
I have searched various tutorials for confuguring this and after doing all the process the error remains same.
I have spent lot of hours trying to solve this, but in vain.
Attached herewith the php.ini file and the httpd.conf file for reference.
Please help...
Looking Forward,
Srinivas