Originally a few Yum can be installed, Yum has a problem, error: Attributeerror: ' Yumbasecli ' object has no attribute ' _not_found_i ', may be a file in and out of the problem, did not understand the half-day, Simply re-install Yum:
First make sure you have root permissions, some of the following commands specify sudo, some yum install is not specified, but still want root permission.
1. Yum Uninstall: Rpm-aq|grep Yum view yum package, rpm-e--nodeps yum**** Uninstall Yum
2. Yum Installation: Wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz, according to the required version of the URL to make corresponding adjustments;
1 wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz2tar Yum-3.4. 3. Tar . GZ 3 Yum-3.4. 3 4 sudo Install Yum
3. mysql installation, set boot from:
1 Yum install mysql mysql-server2sudo235 mysqldon3 sudo /etc/init.d/mysqld start4 mysql_secure_installation
The last step is to follow the prompts to configure the root password for MySQL and whether to enable settings such as anonymous accounts.
4. Apache installs and sets up the boot from:
1 Yum Install httpd 2 sudo 235 httpd on 3 sudo /etc/init.d/httpd start
5. PHP5.5 installation, here yum default PHP is 5.3, it seems that the Drupal version is not enough (colleague said), so found a post, install PHP5.5, the post in addition to PHP5.5, PHP and MySQL and other related packages are installed:
Reference: http://blog.csdn.net/wangschang/article/details/39203271
6. Restart APACHE:SUDO/ETC/INIT.D/HTTPD restart
7. HelloWorld: In the/var/www/html/directory, set up test.php, enter the test content:
<?php
Phpinfo ();
?>
View Web page http://192.168.0.100/test.php, display PHP related information, search MySQL, display MySQL related information, indicating the installation configuration is successful. (192.168.0.1 is the Web server address)
8. Phpmyadminan Installation: Yum install PhpMyAdmin
Configuring Phpmyadmin:sudo vi/etc/phpmyadmin/config.inc.php
This is a cookie-based login, which appears to be the default. See $cfg[' Servers ' [$i] [' Auth_type '] entries, as well as $cfg[' blowfish_secret '] = ' any string '
Modify access rights: sudo vi/etc/httpd/conf.d/phpmyadmin.conf
Change the permissions of the/usr/share/phpmyadmin/directory to allow from all and comment out the deny from all
Restart Apache
Login: http://192.168.0.100/phpmyadmin/index.php, see the login screen is installed successfully
installation configuration of the lamp environment under CentOS