In the file httpd.conf
look for the following entry:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all # linha padrão, geralmente causa do problema
</Directory>
Switch the line in question to:
Allow from all
This will make apache accessible to all machines on your network (and out if your router is doing port fowarding ). If you want to restrict local access only use:
Deny from all
Allow from 127.0.0.1
Another important point is user permissions as per Bacco's comments. In addition to the permissions of the folder it is good to check the Log On user of the service at:
services.msc -> Apache -> (Duplo Clique) -> Aba Log On
By default this should be a local system user. In this case it is recommended that httd.conf
contain the settings:
User daemon
Group daemon
P.S. Of course this is not the best setup in terms of security. It is recommended that you create a non-administrator dedicated server user (eg, apache
), grant that user privileges so that he can log in as a service and act as part of the operating system (in secpol.msc
) and grant access permissions conscious way only for the necessary folders.
Fonts :