xampp\lampp on xubuntu 12.10 – phpmyadmin New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file “httpd-xampp.conf”

Posted: March 21, 2013 in ubuntu

installed xampp on my virtual xubuntu 12.10 box. installation was fine but when trying to access phpMyAdmin got this error

New XAMPP security concept:

Access to the requested object 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.

so I followed this post and did this:

sudo pico /opt/lampp/etc/extra/httpd-xampp.conf

added the “Require all granted” line like in the post.

and restarted xampp:

sudo /opt/lampp/lampp restart

 

I setup the phpMyAdmin and the MySql and when I tried to connect from python or from mysql-client I got this message:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

this post has the right fix for xampp. Just run this script and it will work out:

#!/bin/bash
sudo rm -rf /var/run/mysqld
sudo mkdir /var/run/mysqld
sudo ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysql.sock
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s