Skip to content

March 24, 2009

Programmer’s Journal

XAMPP for Linux setup

Today I got XAMPP for Linux (formerly known as LAMPP) finally up and running. Here are some caveats that I encountered while completing the installation:

  1. Though the “installation” of XAMPP is supposed to be as simple as “uncompress and run” it actually needs you to take care of the right permissions for some of the folders in the installation directory. Unless you are a security freak, the best thing you can do is the following:
    • chmod -R 644 /opt/lampp (assumming that your installation directory is actually “/opt”)
    • chmod -R 755 /opt/lamp/htdocs (to avoid some problems with the stuff you will install inside later on)
  2. If after doing the pervious step you ever encounter the error “ERROR 2002: Can’t connect to local MySQL server through socket” when you try to start phpMyAdmin, you need to go to the folder phpMyAdmin in the XAMPP installation (/opt/lamp/phpmyadmin) and change the permissions of the file config.inc.php to “644″ (chmod 644 /opt/lampp/phpmyadmin/config.inc.php). I admit that this is a weird fix, but for some reason phpMyAdmin doesn’t like other permissions than this when telling XAMPP to connect to the database and produces an even weirder error which is totally unrelated to the actual permission problem…

Anyway, i’ll keep posting some other tips I find…

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

Bad Behavior has blocked 1857 access attempts in the last 7 days.