Recently i was working on my new android application, got to make it connected to mysql database, so i started XAMPP along MYSQL , wrote some php code to test the connection … but was stucked with error!
Access forbidden! New XAMPP security concept. Error 403
Yuck! during development and seeing unforced/unwanted errors… after all a few mins R&D and research , i got a solution at two different websites … but individually they were bit incomplete and on combining both solutions , i got the issue resolved 🙂
Open httpd-vhosts.conf file and in the bottom of the file change it
Require all granted
Here E:/xampp is my project workspace, you can change it as per your settings and Second Change is
Now Open httpd-xampp.conf file and in the bottom of the file change it
# New XAMPP security concept
Allow from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
NOTE : Make sure u backup files ( httpd-xampp.conf ) and ( httpd-vhosts.conf ) , Both Files are located in Drive:\xampp\apache\conf\extra
i found link #02 and #03 pretty useful.