The requested URL was not found on this server. apache
I am installing apache and php server on Windows 7 and setting it up. But when I try to load the php_test.php page (localhost / php_test.php) I get the error:
Not found
The requested URL / php_test.php was not found on this server.
In httpd.conf I wrote the following:
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 needed.
source to share
Fixed. When I install the application, I wrote the wrong server name. I was confused that the server name was correct (localhost) in httpd.conf, but still didn't work.
UPD (for commentators)
I will fix it by reinstalling Apache server. My mistake was that I entered the wrong server name during installation (it seems like the first time I wrote the ip address). I don't remember what the step was. I reinstall the server, writes "localhost" as the server name and it works.
source to share