Install and configure xampp In CentOS6.5 and solve problems

Source: Internet
Author: User
Go to/opt next, xampp: Batch

Go to/opt
1. xampp:
Http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/
Or
Wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-1-installer.run
3. after the download, add the execution permission to the file:
Chmod + x xampp-linux-x64-1.8.3-1-installer.run
4. install xampp:

[Root @ nginxone src] #./xampp-linux-x64-1.8.3-1-installer.runWelcome to the XAMPP Setup Wizard.

Select the components you want to install; clear the components you do not want
To install. Click Next when you are ready to continue.
XAMPP Core Files: Y (Cannot be edited)
XAMPP Developer Files [Y/n]: y

Is the selection above correct? [Y/n]: y

Installation Directory
XAMPP will be installed to/opt/lampp

Press [Enter] to continue:

Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

Please wait while Setup instils XAMPP on your computer.
Installing
0%____50%____100%

######################################## #

Setup has finished installing XAMPP on your computer.
Launch XAMPP [Y/n]: y
6. start xampp:
[Root @ nginxone lampp] #/opt/lampp/xampp start
7. stop xampp:
[Root @ nginxone lampp] #/opt/lampp/xampp stop
Enter localhost in the browser to see the following page:
Problem 1: If the above picture is not displayed
Solution: First find the httpd-xampp.conf (find/opt/-name httpd-xampp.conf)
For example, comment out a row, add a row, and restart.

Question 2: modify the mysql root password because it is empty by default.
Solution: First find mysql (find/opt/-name mysql)
The command (/opt/lampp/bin/mysql-uroot-p) does not require a password.
Then go to mysql. user to change the root password.

Problem 3: I have modified the mysql root login password. phpmyadmin cannot log on.
Solution: find the config. inc. php file (find/opt/-name config. inc. php)
Then vim/opt/lampp/phpmyadmin/config. inc. php
Then you can open phpmyadmin.

8. add boot start:

Ln-s/opt/lampp/xampp/etc/rc. d/init. d/xampp

9. if the above statement cannot be automatically started after execution, execute the following statement.

Chkconfig-add xampp

View

Chkconfig-list | grep xampp

10. uninstall xampp

/Opt/lampp/xampp stoprm-rf/opt/lampp

Put the project in the/opt/lampp htdocs folder and enter the localhost/project name in the browser.
Okay!

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.