I am really close to having a meltdown here. I did a fresh install of XAMPP because of some trouble with starting MySQL database. The fresh install fixed that problem, but now I cant access localhost/project1.
The folder is placed in the htdocs folder and I just get the "Access forbidden!" message when I try to access it in my browser. I've spent 5 hours on this now and getting pretty pretty pretty desperate. All I want is to finish my assignment. Can anyone help me? Feels like I've tried EVERYTHING. Why is this even a problem?
I think this is also one way for rectifying Access forbidden Error 403 . Please Follow these steps.
First Process:-
Step 1:-
<VirtualHost *:8001> ServerAdmin "webmaster@dummy-host2.example.com" DocumentRoot "D:\\XAMPP\\htdocs\\xyz" ServerName "localhost:8001" <Directory "D:\\XAMPP\\htdocs\\xyz"> Allow from all </Directory> </VirtualHost> Note:-xyz is a project name.
Step 2:-
Goto \\XAMPP\\apache\\conf\\httpd.conf file and chenge
Listen 8001 and ServerName localhost:8001
Restart your xampp and i think now everything is fine.
Note:-(Url:- localhost:8001/xyz)
Second Process:-
Step 1:-
# # New XAMPP security concept # <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”> Order deny,allow Allow from all Allow from ::1 127.0.0.0/8 ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch>
Open your terminal and go to htdocs folder or try below command
$ cd /opt/lampp/htdocs/
and then give 777 permission to your project folder:
$ chmod 777 -R [foldername]
It works for me, If you have any question, I will be happy to revert them.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.