I've reinstalled several times, always with the same problems. I'll walk you through it. Maybe you can point out where I'm going wrong.
The first problem is that the installation instructions (http://www.apachefriends.org/en/xampp-linux.html) assume an active administrative root account. But Ubuntu doesn't have root enabled by default! That's why we use sudo:
- Code: Select all
sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
then, to be safe, run the security command and set our passwords on everything:
- Code: Select all
sudo /opt/lampp/lampp security
okay, let's run this sucker:
[sudo] password for snakey:
Starting XAMPP for Linux 1.7.7...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
Hm. MySQL is not working. So we get the error log (/opt/var/mysql/[hostname].err) :
111202 08:15:14 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
111202 8:15:14 [Note] Plugin 'FEDERATED' is disabled.
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
111202 8:15:14 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
111202 8:15:14 InnoDB: The InnoDB memory heap is disabled
111202 8:15:14 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
111202 8:15:14 InnoDB: Compressed tables use zlib 1.2.3
111202 8:15:14 InnoDB: Initializing buffer pool, size = 16.0M
111202 8:15:14 InnoDB: Completed initialization of buffer pool
111202 8:15:14 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
OK -- first things first! the .err file says to run "mysql upgrade" so we need to run mysql upgrade, eh?
- Code: Select all
sudo mysql upgrade
Nope, you can't get there from here:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Now, I'm no mysql expert, but it seems that if I can't connect to the mysql server, it's because it isn't running! Seems a regular catch-22, that.
So moving through the .err file, down near the bottom, there's something about 'access rights' -- so, let's go ahead, with the approved syntax from JonB:
- Code: Select all
sudo chown -R nobody:root /opt/lampp
then we'll stop xampp:
- Code: Select all
sudo /opt/lampp/lampp stop
and then start xampp again:
- Code: Select all
sudo /opt/lampp/lampp start
and we get:
Starting XAMPP for Linux 1.7.7...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
Looks good! So let's take a look at the shiny new install in firefox. Nope. What a drag! What's with all the errors?
Warning: include(.version) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/xampp/start.php on line 12
Warning: include() [function.include]: Failed opening '.version' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/xampp/start.php on line 12
!
So that brings us up to date. If I were to guess, I'd say it looks like the ghost is in the mysql upgrade error -- or maybe it's a weird PHP thing. But the whole reason I installed xampp was to teach myself some PHP/MySQL, so, I'm still kinda scratching my head about this one.