Beberapa masalah pada LAMPP dan solusi

Apakah pernah bermasalah seperti dibawah ini, yang sebenarnya cuma masalah hak akses saja (biasanya).

Masalah 1

$ sudo /opt/lampp/lampp restart

Stopping XAMPP for Linux 1.7.4…
XAMPP: XAMPP-Apache is not running.
XAMPP: XAMPP-MySQL is not running.
XAMPP: XAMPP-ProFTPD is not running.
XAMPP stopped.
Starting XAMPP for Linux 1.7.4…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored
XAMPP: Couldn’t start MySQL!
XAMPP: Starting ProFTPD…
XAMPP for Linux started.

Solusinya  Begini :

$ sudo chmod 644 /opt/lampp/etc/my.cnf

coba restart dan buka lagi phpmyadmin.

$ sudo /opt/lampp/lampp restart

jika masih belum bisa dibuka atau bermasalah dengan hak aksesnya ada dua problem biasanya.

1. Wrong permissions on configuration file, should not be world writable!
2. Access forbidden!

Solusinya :

$ sudo chmod 655 /opt/lampp/phpmyadmin/

atau

Solusinya :

$ sudo chmod 705 /opt/lampp/phpmyadmin/
$ sudo /opt/lampp/lampp restart

Masalah 2

XAMPP: Another web server daemon is already running.

Atau ada MySQL Database yang lain sedang berjalan:

Biasanya cuma matiin proses apache/mysql seperti berikut:

$ sudo /etc/init.d/apache2 stop
$ sudo /etc/init.d/mysql stop

Masalah 3

Kalo mau backup LAMPP:

/opt/lampp/lampp backup
  or
/opt/lampp/lampp backup secret

output:

$ /opt/lampp/lampp backup

Backing up databases…
Backing up configuration, log and htdocs files…
Calculating checksums…
Building final backup file…
Backup finished.
Take care of /opt/lampp/backup/xampp-backup-22-01-04.sh

tinggal di restore dengan cara seperti berikut

$ sh xampp-backup-22-01-04.sh

Checking integrity of files…
Restoring configuration, log and htdocs files…
Checking versions…
Installed: XAMPP 1.4.2
Backup from: XAMPP 1.4.2
Restoring MySQL databases…
Restoring MySQL user databases…
Backup complete. Have fun!
You may need to restart XAMPP to complete the restore.