I'm install apache server and php on Windows 7 and configured its. But when i'm trying to load php_test.php page(localhost/php_test.php) i get an error:
Not Found
The requested URL /php_test.php was not found on this server.
In httpd.conf i've written next:
ServerName localhost
DocumentRoot "D:/project/"
<Directory "D:/project/">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AddType application/x-httpd-php .php
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
What is the problem? I can provide any information from httpd.conf and php.ini if this is need.
Fixed. When I've installing appache I've written wrong server name. I was confused that in httpd.conf server name was right (localhost) but still wasn't worked.
UPD (for commentators)
I fix it by reinstall apache server. My mistake was because of i enter wrong server name during installation (seems first time i wrote ip adress). I don't remember what step was it. I reinstall server, wrote "localhost" as server name and it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With