Error: Forbidden - You don't have permission to access
I can't configure the virtual hosts.
I once successfully raised apache+php on Windows 7, so now I needed to make a couple of virtual hosts. I added a section like{[2] to the end of the apache config]}
<VirtualHost 127.0.0.2>
ServerAdmin [email protected]
ServerName jiifirst
DocumentRoot "c:/apache2/web/jiifirst/htdocs"
ScriptAlias /cgi-bin/ "c:/apache2/web/jiifirst/cgi-bin/"
ErrorLog c:/apache2/web/jiifirst/logs/error.log
CustomLog c:/apache2/web/jiifirst/logs/access.log common
</VirtualHost>
Created the necessary folders. However, when you try to enter by http://127.0.0.2/test.php error occurs
Forbidden
You don't have permission to access /test.php on this server.
At the same time, I go to the localhost without problems. How do I change the settings so that this error does not occur?
0
Author: Nicolas Chabanovsky, 2012-03-03
1 answers
- You need to configure access rights to the file test.php. That is, r (read), w(write/edit), x (execute). How to do this on a local server, I do not know. I did it once through the console. Google for access rights
- I advise you to follow this link http://ab-w.net/PHP/server_set.php and already according to the instructions to get a fully configured local server, it took me only 30 minutes and has been working for six months without problems.
1
Author: LordySL, 2012-03-03 13:45:18