Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPMyadmin xampp error

I'm desperately trying to get phpmyadmin access on xampp for linux 1.8.0 for ubuntu 12.04 LTS. I know this is a common problem, but I have tried many threads across the web, and I am still stuck getting it going.

Xampp seems to be running ok, localhost start page good, including link to phpmyadmin in the sidebar. When I follow that link I get a 403 error:

Access forbidden!

New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

If you think this is a server error, please contact the webmaster.

Error 403

localhost Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4

I have tried numerous things, including amending httpd-xampp.conf, the relevant bits of which now look like: http://pastebin.com/J4f4tNVs

my /opt/lampp/phpmyadmin/config.inc.php looks like: http://pastebin.com/5PZPXK5s

Following other instructions I changed ownership of /lampp with:

chown -Rv nobody:root ./lampp/*

Please help me!

Thanks, Matt

like image 435
KindOfGuy Avatar asked Jul 24 '12 12:07

KindOfGuy


People also ask

Why phpMyAdmin is not working in XAMPP?

To access phpMyAdmin from XAMPP you will need to make sure you have Apache and MySQL running in the XAMPP control panel by clicking the start buttons under the Actions column. If Apache and MySQL are green then all is well. Then you can click the “Admin” button in the MySQL row and that will launch phpMyAdmin.

How do I resolve access denied error in XAMPP?

So open your XAMPP folder and find a file named xampp-control.exe. right-click on this file and Select Properties a tab will open like and select Compatibility and check “Run this program as an administrator” and click on the Ok button. So, we solve XAMPP server error xampp-control.

Why is my localhost phpMyAdmin not working?

“We are almost done to fix localhost/phpmyadmin” Step 6: Again go to config and select “Apache (httpd-sss. conf)“. Step 8: Find “” and replace this with “” and again save it. Step 9: Go to config and select “service & ports settings” and change the port to 8080 and 4433 and save it.


1 Answers

I've found a solution here: http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185

Edit /opt/lampp/etc/extra/httpd-xampp.conf and adding Require all granted line at bottom of block <Directory "/opt/lampp/phpmyadmin"> to have the following code:

<Directory "/opt/lampp/phpmyadmin">
  AllowOverride AuthConfig Limit
  Order allow,deny
  Allow from all
  Require all granted
</Directory>
like image 161
Marco Giorgetti Avatar answered Oct 18 '22 23:10

Marco Giorgetti