Created
August 3, 2010 01:22
-
-
Save huacnlee/505669 to your computer and use it in GitHub Desktop.
CentOS 下面安装 PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CentOS install php from souces | |
sudo yum install gcc-c++ httpd httpd-devel apr-devel libxml2-devel zlib zlib-devel mysql-devel openssl-devel | |
wget http://cn2.php.net/get/php-5.3.1.tar.gz/from/cn.php.net/mirror | |
tar -zxf php-5.3.1.tar.gz | |
cd php-5.3.1 | |
./configure --with-configure-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-mysql --with-mysqli --with-zlib --enable-so --with-apxs2 | |
sudo make && sudo make install | |
sudo cp php.ini-production /etc/php.ini | |
sudo vim /etc/php.ini | |
# 找到 include_path 设置为: include_path = "/usr/local/lib/php/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment