Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The requested URL was not found on this server. Apache

Tags:

php

apache

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.

like image 867
Ilya Shpakovsky Avatar asked May 21 '26 20:05

Ilya Shpakovsky


1 Answers

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.

like image 138
Ilya Shpakovsky Avatar answered May 23 '26 12:05

Ilya Shpakovsky