xampp for linux

Thứ hai - 06/05/2019 23:22
XAMPP stands for cross-platform(X), Apache(A) server, MariaDB(M), PHP(P) and Perl(P).Huy Note: cần dùng lệnh khởi tạo nhóm mysql vào hệ thống linux trước khi cài xampp.addgroup mysqlLệnh gán quyền cho thư mụcchown -R root:mysql /opt/lampp/var/mysql/cấp quyền cho thu mụcchown -R root:mysql /opt/lampp/var/mysql/ chmod 755 /opt/lampp/var/mysql/thêm tài khoản mysql vào hệ thốngadduser mysql
xampp for linux

Step 1: Download the installation package

The first step is to download the XAMPP package for Linux from the official Apache Friends website:


There was a SourceForge page that offer XAMPP 5.6.20 compiled for Linux 32-bit architecture, in which XAMPP 5.6.20 is compatible for 16.04 Ubuntu version.
wget "https://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.6.20/xampp-linux-5.6.20-0-installer.run"
sudo su
chmod +x xampp-linux-5.6.20-0-installer.run

Step 2: Make the installation package executable

We will install the package through the Ubuntu command line, The Terminal. In order to open the Terminal, either use the Dash or the Ctrl+Alt+T shortcut. After the Terminal is open, you need to move to your Downloads folder to access the file.

Move to the Downloads folder by using the following command:

$ cd /home/[username]/Downloads

The installation package you downloaded needs to be made executable before it can be used further. Run the following command for this purpose:

$ chmod 755 [package name]


$ chmod 755 xampp-linux-x64-7.2.10-0-installer.run

Make XAMPP installer executable

Now the install package is in an executable form.

Step 3: Confirm execute permission

It is important to verify if the package can be executed by the current user. The execute permission can be checked through the following command:

$ ls -l [package name]


$ ls -l xampp-linux-x64-7.2.10-0-installer.run

Check if XAMPP installer can be executed

The -rwxr output shows that the file can be executed by the user whose name is also mentioned in the output.

Step 4: Launch the Setup Wizard

As a privileged root user, run the following command in order to launch the graphical setup wizard.

$ sudo ./[package name]


sudo ./xampp-linux-7.2.10-0-installer.run

mysql in not starting in XAMPP UBUNTU

  1. backup your htdocs folder
  2. backup your database folder '/opt/lampp/var/mysql'
  3. check user on /opt/lampp/var/mysql $ ls -la
  4. reinstall xampp full with delete data
  5. copy paste your database folder to /opt/lampp/var/mysql
  6. change user access after paste on /opt/lampp/var/mysql all file and folder

to check user on folder

$ cd /opt/lampp/var/mysql
$ ls -la

to change user on folder for all files and folder

$ sudo chown -R mysql:mysql *

and 1 file based on your computer ex:

$ sudo chown -R mysql:root emild-desktop.err

emild-desktop.err is log error of my pc

  1. Copy Paste your htdocs folder on /opt/lampp

  2. Restart lampp service.

    $ sudo /opt/lampp/lampp start

Chi tiết

Tổng số điểm của bài viết là: 0 trong 0 đánh giá

Click để đánh giá bài viết

  Ý kiến bạn đọc

Bạn đã không sử dụng Site, Bấm vào đây để duy trì trạng thái đăng nhập. Thời gian chờ: 60 giây