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/xampp9. If the above statement cannot be automatically started after execution, execute the following statement.
Chkconfig-add xamppView
Chkconfig-list | grep xampp
10. Uninstall xampp
/Opt/lampp/xampp stoprm-rf/opt/lamppPut the project in the/opt/lampp htdocs folder and enter the localhost/project name in the browser.
Okay!