Install and configure xampp in CentOS6.5 and solve related problems

Source: Internet
Author: User

Install and configure xampp in CentOS6.5 and solve related problems

Go to/opt
1. xampp:
Http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/
Or
Wgethttp: // response
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!

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.