I have one instance PHP and MySQL installed, now i am trying to install XAMPP on my system. I am able run the PHP of XAMPP. but while starting the service, i am getting the below error. I want both the MySQl to be running by stopping the services of other.
Here is my terminal ouput:
$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
Please help, thanks
Open xampp: Goto Computer(opt)> Open lampp folder(Search "lampp" if u can't see lampp folder)> Open manager-linux. run. In XAMPP Click on "Manage Server" Tab> Click on "Mysql Database"> Click on "Configure"> Change Port from 3306 to 3307> save and start the mysql database.
Fixing the MySQL server not starting in XAMPP is done by reverting back the data files pre-issue. Navigate to your XAMPP MySQL directory ( C:\xampp\mysql ). Create a new folder called FIX_BACKUP . Copy C:\xampp\mysql\backup and C:\xampp\mysql\data into C:\xampp\mysql\FIX_BACKUP .
XAMPP is now installed below the /opt/lampp directory. To start XAMPP simply call this command: /opt/lampp/lampp start Starting XAMPP for Linux 1.5. 3a... XAMPP: Starting Apache with SSL (and PHP5)... XAMPP: Starting MySQL... XAMPP: Starting ProFTPD... XAMPP for Linux started.
All you have to do is stop Mysql and apache2 first
sudo service mysql stop
sudo /etc/init.d/apache2 stop
Then Start your
sudo /opt/lampp/lampp start
Switch to the XAMPP installation directory. Type in
cd /opt/lampp
and press ↵ Enter
Enter the "Open" command. Type in
sudo ./manager-linux-x64.run
and press ↵ Enter
Enter your password when prompted. Type in the password you usually use to log into your computer, then press ↵ Enter.
If you're running ubuntu why on earth are you using XAMPP?
sudo apt-get install apache2 mysql-server phpmyadmin php5;
cd;mkdir www
pico /etc/apache2/sites-available/default
change document root to the www directory you just made which should be something like /home/yourusername/www/
service apache2 restart
Congratulations you're now running a full blown LAMP stack properly on a linux machine. http://localhost/
and http://localhost/phpmyadmin/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With