wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm yum --enablerepo=remi update -y # update php5 yum --enablerepo=remi,remi-php55 update -y yum clean all yum remove mysql* php* mysql-libs-5.1.73-5.el6_6.x86_64 yum remove php* yum --enablerepo=remi install mysql mysql-server mysql-connector-odbc mysql-devel libdbi-dbd-mysql yum --enablerepo=remi install php php-fpm php-gd php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator php-bcmath php-sqlite php-xnmp php-ldap php-pear php-devel yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql vim /etc/php.ini #修改php.ini中的屬性值 date.timezone = "Asia/Taipei" short_open_tag = on # Mysql 5.5 啟動與設定 vim /etc/my.cnf #設定MySQL編碼 [mysqld] ..... character-set-server=utf8 collation-server=utf8_general_ci #編輯完後啟動Mysqld service mysqld start mysqladmin -u root password 'PASSWORDS' mysqladmin --user=root --password reload chkconfig --level 2345 mysqld on service httpd restart
0 意見:
張貼留言