XAMPP for 64-bit Linux and FAQs

Source: Internet
Author: User

Change to ubntu9.10 64-bit. As Web workers, Apache, PHP, and MySQL must be installed. In win, XAMPP is used to. Why not install XAMPP one by one on servers, of course, XAMPP also has a Linux version, XAMPP for Linux or lampp. The installation is 64-bit. XAMPP does not support 64-bit installation by default. How can this problem be solved?

64-bit installation of lampp (XAMPP for Linux)

First, install the 32-bit support package

Sudo apt-Get install ia32-libs

However, the system still prompts "XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system ."

Then, find and edit the decompressed lampp file,

Sudo gedit/opt/lampp

And search for the sentence in "XAMPP is currently 32 bit only. Use # To comment out the following statements for determining the environment.

# Case 'uname-m' in
# * _ 64)
# If/opt/lampp/bin/PHP-V>/dev/null 2> & 1
# Then
#:
# Else
# $ De & Echo "XAMPP gibt es zur Zeit nur als 32-bit applikation. Bitte verwende eine 32-bit kompatibilitaetsbibliothek fuer dein system ."
# $ De | echo "XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system ."
# Exit
# Fi
#;;
# Esac

You may encounter several common problems after startup.The solution is as follows:

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.

Related Article

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.