Delete the default Apache and MySQL Default hichina cloud hosts installed with Mysql and Apache. However, hichina seems to have configured mysql and apache on the master board. Therefore, neither rpm nor yum can be detached. Asked hichina technical staff. Run vi/etc/rc. d/rc. local in ssh to view the following information: www.2cto.com #! /Bin/sh # This script will be executed * after * all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch/var/lock/subsys/local/etc/hichinash/usr/hichina/fdisk_format.sh & # Start Apache/var/www/bin/apachectl start # Start MySQL Service/usr/local /mysql/bin/mysqld_safe -- user = mysql & see it, haha. It turns out that you can delete the apache and mysql directories. I found all mysql files and folders, including my. cnf files (as if they were in the/etc/directory), and deleted them. Finally, download the one-click installation package LNMP and install it directly... You can only install it in the LNMP stage, if you want to install Apache (LNMPA), you need to check the following content. hichina installed a lot of junk things on the Centos system by default. Before installing Apache, run: # mv/usr/lib/libm. a/usr/lib/libm. a. bak # mv/usr/lib/libm. so/usr/lib/libm. so. bak # mv/usr/lib/libexpat. so/usr/lib/libexpat. so. bak # ln-s/usr/lib64/libm. a/usr/lib/libm. a # ln-s/usr/lib64/libm. so/usr/lib/libm. so # ln-s/usr/lib64/libexpat. so/usr/lib/libexpat. so run these commands and then execute. /apache. sh can be installed successfully when Apache is installed. It's not easy. I hope to help more people to summarize the commands below: 1. Stop httpd and mysql processes ps aux | grep httpd | grep-v grep | cut-c 9-15 | xargs kill-9 ps aux | grep mysqld | grep-v grep | cut- c 9-15 | xargs kill-9 rpm-e vsftpd-2.0.5-16.el5 2011.12.16 added new VSFTPD service to assist hichina 2. Delete httpd and mysql startup Item run vi/etc/rc. d/rc. local has commented on the following lines, so it is okay to delete them: /etc/hichinash/usr/hichina/fdisk_format.sh & # Start Apache #/var/www/bin/apachectl start # Start MySQL Service #/usr/local/mysql/bin/mysqld_safe -- User = mysql & 3. Delete mysql and Apacherm-rf/var/www/* rm-rf/usr/local/mysqlrm-rf/usr/local/apacherm- rf/usr/local/phprm-rf/etc/my. cnf In addition, if you have spare time, it is best to delete all other files related to mysql and httpd in the system. It is okay not to delete the files. 4. Delete useless openoffice and upgrade the program in the system: yum remove openoffice * Run vim/etc/yum. conf adds exclude = kernel * at the end of [main] And then exits the VI editor after modification. Run # yum -- exclude = kernel * update to upgrade the system. 5. Installation and cleanup: yum install perl * mv/usr/lib/libm. a/usr/lib/libm. a. bakmv/usr/lib/libm. so/usr/lib/libm. so. bakmv/usr/lib/libexpat. so/usr/lib/libexpat. so. bakln-s/usr/lib64/libm. a/usr/lib/libm. a1-s/usr/lib64/libm. so/usr/lib/libm. soln-s/usr/lib64/libexpat. so/usr/lib/libexpat. so6. Start to install LNMPA in normal sequence. 7. If the command/root/lnmpa statusApache status is successfully installed, the following error occurs:/etc/init. d/httpd: line 112: lynx: command not found install lynxyum install lynx-yvi/usr/local/apache/conf/extra/httpd-info.conf to <Location/server-status> SetHandler server-status Order deny, change allow Deny from all Allow from .example.com </Location> to <Location/server-status> SetHandler server-status Order deny, allow Deny from all Allow from 127.0.0.1 </ Location> restart Apache service httpd restart. If I encounter any problems during use, I will update this blog so that the users can solve the problem.