Solution to XAMPP installation error in Ubuntu

Source: Internet
Author: User
Using XAMPP in Windows is a green light, while using tulinux is a red light, with many errors. This also shows that Linux is not for cainiao at all. 1. If you start lampp directly, mysql will not start it. Solution: chown-Rnobody.root/opt/lampp/var/mysql problem solved, mysql started normally! Make sure that mysql is started properly and proceed with the following steps. 2. Install XAMPP on the terminal

In Windows, XAMPP is a green light, while in Ubuntu Linux, it is a red light, with many errors. This also shows that Linux is not for cainiao at all.

1. If you start lampp directly, mysql will not start it.

Solution:

Chown-R nobody. root/opt/lampp/var/mysql

Solve the problem. mysql starts normally! Make sure that mysql is started properly and proceed with the following steps.

2. An error message indicating/opt/lampp: line 74: arch: command not found is displayed when XAMPP is installed on the terminal.

Solution:

Sudo vim/bin/arch

Add a line in the pop-up editing box:

Uname-m

Save and exit. Enter again in the terminal

Sudo chmod + x/bin/arch

Solve the problem.

3. If warning: World-writable config file/opt/lampp/etc/my. cnf is ignored

Cause: XAMPP sets the read permission for my. cnf and does not allow World-writable (literally, it can be read and written all over the World)

Solution:

Sudo chmod 644/opt/lampp/etc/my. cnf

4. The phpMyAdmin page displays: Wrong permissions on configuration file, shocould not be world writable

Cause: This is none of the XAMPP issues. It is a problem with phpmyadmin directory permission settings. If you set chmod 777 for all phpmyadmin files, this prompt will appear.

Solution: you only need to modify the file attributes. phpmyadmin must run under the 755 permission,

Sudo chmod-R 755/opt/lampp/phpmyadmin

5. If you think the xampp htdocs directory is not good in opt/lampp,

Run sudo/opt/lampp security on the terminal to solve the security problem,

Then sudo cp-R/opt/lampp/htdocs/home/htdocs copies the entire htdocs directory to/home,

Then sudo chmod-R 777/home/htdocs gives us the permission to modify the htdocs directory,

Finally, sudo gedit/opt/lampp/etc/httpd. modify the Apache configuration file in conf and replace all/opt/lampp/htdocs in it with the htdocs directory address/home/htdocs. Save and quit.

Add:

If you want to use ProFTPD

Modify the configuration file sudo gedit/opt/lampp/etc/proftpd. conf.

Change/opt/lampp/htdocs to/home/htdocs.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.