CentOS6.5系统搭建php服务器
时间:2015-05-15 12:17 来源:linux.it.net.cn 作者:IT
1
epel-release
[root@diguojin ~]
# cd /usr/local/src/php-5.4.33/
[root@diguojin php-5.4.33]
# ./configure --prefix=/usr/local/php-5.4.33 \
--with-mysql=
/usr/local/mysql-5
.5.40/ \
#MySQL安装目录
--with-openssl=
/usr/local/openssl-1
.0.1i/ \
#OpenSSL安装目录
--with-mysqli=
/usr/local/mysql-5
.5.40
/bin/mysql_config
\
--with-freetype-
dir
\
--with-jpeg-
dir
\
--with-png-
dir
\
--with-zlib \
--with-libxml-
dir
\
--with-apxs2=
/usr/local/httpd24/bin/apxs
\
#指向Apache安装目录下/bin/apxs
--with-mcrypt \
--with-config-
file
-path=
/etc
\
--with-config-
file
-scan-
dir
=
/etc/php
.d \
--with-bz2 \
--
enable
-xml \
--
enable
-sockets \
--
enable
-maintainer-zts \
--
enable
-mbstring
AddType application
/x-httpd-php-source
.phps
(责任编辑:IT)
[root@diguojin ~] # cd /usr/local/src/php-5.4.33/ [root@diguojin php-5.4.33] # ./configure --prefix=/usr/local/php-5.4.33 \ --with-mysql= /usr/local/mysql-5 .5.40/ \ #MySQL安装目录 --with-openssl= /usr/local/openssl-1 .0.1i/ \ #OpenSSL安装目录 --with-mysqli= /usr/local/mysql-5 .5.40 /bin/mysql_config \ --with-freetype- dir \ --with-jpeg- dir \ --with-png- dir \ --with-zlib \ --with-libxml- dir \ --with-apxs2= /usr/local/httpd24/bin/apxs \ #指向Apache安装目录下/bin/apxs --with-mcrypt \ --with-config- file -path= /etc \ --with-config- file -scan- dir = /etc/php .d \ --with-bz2 \ -- enable -xml \ -- enable -sockets \ -- enable -maintainer-zts \ -- enable -mbstring AddType application /x-httpd-php-source .phps |