After installing XAMPP on your computer you could experience some of the following messages during startup:
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Another FTP daemon is already running.
The cause of this errors is that you've already installed database, ftp and web servers, so XAMPP conflicts with them. The solution is to stop running services. You can create two scripts, for starting and stoping XAMPP server on a Linux system, e.g. start.sh and stop.sh.
Create start.sh script in the xampp (lampp) folder with the following content (on my machine XAMPP is installed in /opt/lampp)
# Stop MySQL database server sudo /etc/init.d/mysql stop # Stop Apache web server sudo /etc/init.d/apache2 stop # Stop ProFTP server sudo /etc/init.d/proftpd stop # Start xampp sudo /opt/lampp/lampp start
Create stop.sh script in the xampp (lampp) folder with the following content:
# Stop xampp sudo /opt/lampp/lampp stop # For starting "real" mysql, apache or proftp # just uncomment the command lines below # Start MySQL #sudo /etc/init.d/mysql start # Start Apache #sudo /etc/init.d/apache2 start # Start ProFTP server #sudo /etc/init.d/proftpd start
As the last step, add execute permission to the files
sudo chmod +x start.sh
sudo chmod +x stop.sh