Incorrect solution for installing XAMPP (LAMPP) server suite in Ubuntu Linux

Source: Internet
Author: User
Tags chmod exit in phpmyadmin linux

How to install please refer to its installation in this blog.

1, in the terminal installation XAMPP appear/opt/lampp/lampp:line 74:arch:command not found error tips

Reason: Not found

Workaround:

Enter sudo nano/bin/arch in the terminal

Add one line uname-m save exit in the pop-up edit box interface

Enter sudo chmod +x/bin/arch again in the terminal

Problem solving

2. If you start warning:world-writable config file/opt/lampp/etc/my.cnf is ignored

Reason: Xampp the Read permission of the MY.CNF is set, does not allow world-writable (literally means that the world can read and write)

Workaround: Terminal run sudo chmod 644/opt/lampp/etc/my.cnf

3, into the phpMyAdmin page display: Wrong permissions on configuration file, should is not the world writable

Reason: This is not a matter of XAMPP, is phpmyadmin directory permissions settings, if you put phpmyadmin all files chmod 777 will appear this hint

Workaround: Just modify the file properties, phpMyAdmin to run under 755 privileges,

Terminal running sudo chmod-r 755/opt/lampp/phpmyadmin

The last 2, 32 is because I map convenient to the entire LAMPP directory to chmod-r 777, the result is the problem. We should also pay attention to this problem in the future.

If you think Xampp's Htdocs directory is bad for opt/lampp/,

You can run SUDO/OPT/LAMPP/LAMPP security in the terminal to solve the problem,

Then sudo cp-r/opt/lampp/htdocs/home/htdocs a copy of the entire Htdocs directory under/home,

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

Finally sudo gedit/opt/lampp/etc/httpd.conf modify the Apache configuration file, find inside/opt/lampp/htdocs all replace to We just htdocs directory address/home/htdocs Save exit can be.

Also add a

If you want to use PROFTPD

Then you also need to modify the configuration file sudo gedit/opt/lampp/etc/proftpd.conf

and change the/opt/lampp/htdocs inside to/home/htdocs.

Change these and remember to restart XMPP.

SUDO/OPT/LAMPP/LAMPP restart

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.