- #如果提示The requested URL returned error:404, please change yourself to the latest version
- RPM-IVH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
- RPM-IVH http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
Copy CodeStep 2. Installing PHP/MYSQL/HTTPD
- #安装apache
- Yum-y Install httpd Httpd-devel
- #安装mysql
- Yum-y install MySQL mysql-devel mysql-server mysql-libs
- #安装php
- Yum-y Install PHP
- #安装php扩展
- Yum-y Install php-mysql php-gd php-imap php-ldap php-odbc php-mbstring php-devel php-soap php-cli php-pdo
- Yum-y Install Php-mcrypt php-tidy php-xml php-xmlrpc php-pear
- #其它不常用php扩展, www.linuxidc.com can not be installed
- Yum-y Install Php-pecl-memcache Php-eaccelerator
- #安装phpmyadmin
- Yum-y Install phpMyAdmin
- #安装完成之后, start
- Service httpd Start
- Service mysqld Start
Copy CodeStep 3: Configure httpd, mysqld boot from
- Chkconfig mysqld on
- Chkconfig httpd on
Copy CodeStep 4. Configure phpMyAdmin Modify/usr/share/phpmyadmin/config.inc.php
- #将这里abcde文字修改为自己的字符, can be any
- $cfg [' blowfish_secret '] = ' ABCDE ';
Copy CodeHere are some common problems with the Yum installation lamp environment. The 1,phpmyadmin prompt does not turn on Php-mcrypt because the php-mrcrpt extension is not installed. There is no php-mrcrpt extension in official source, please install Epel source and then yum install Php-mcrypt. 2,phpmyadmin cannot access phpMyAdmin by default can only be accessed by using http://localhost/phpmyadmin, you can modify the corresponding part of/etc/httpd/conf.d/phpmyadmin.conf into
-
- Order Deny,allow
- # Deny from all
- Allow from all
Copy CodeIt is not recommended to do so, exposing phpmyadmin to be unsafe. Note: Apache parses php, modifies httpd.conf files, adds
- AddType application/x-httpd-php. php. phtml
- AddType Application/x-httpd-php-source. Phps
Copy CodeMYQL can log in remotely and set the MySQL password:
- mysql>; Use MySQL;
- mysql>; UPDATE user SET Password=password (' newpassword ') WHERE user= ' root ';
- mysql>; FLUSH privileges;
Copy Code1.2.3 Allow remote logins
- Mysql-u root-p
- Enter Password:
- Mysql>grant all privileges on * * to ' user name ' @ '% ' identified by ' password ' with GRANT OPTION;
Copy CodeOnce you're done, you can manage the MySQL database remotely with Mysql-front. Set MySQL to boot up:
- Chkconfig mysqld on
Copy Code |