您的位置:首页 > 编程语言 > PHP开发

RHCE基础指南:PHP的概述、安装及配置

2014-04-23 15:47 441 查看
网络的发展日新月异,层出不穷,发个微博,看个优酷视频,用网易的邮箱发个信,在淘宝上买个东西等等,您肯定习惯了网络的应用,但是您可能不知道,这些网络应用都是基于web编程语言PHP实现的。那么什么是PHP呢,概括来讲,PHP是一种功能强大,简单易学,方便实用而且资源丰富的开源网络编程语言,接下来我们就来说一下PHP的安装过程:例子为PHP5.3.8安装及配置需要的安装的包:libxml2 libxml2-devel freetypefreetype-develfontconfigfontconfig-devel jpeg jpeg-devellibpnglibpng-develgdgd-devellimcryptlimcrypt-develmhashmhash-develmcryptmcrypt-devellibtool-ltdllibtool-ltdl-devel生成编译文件:./configure --prefix=/home/server/php --with-config-file-path=/home/server/php/etc --with-mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd -enable-gd-native-ttf --enable-mbstring --with-openssl --with-zlib --enable-json=shared --with-mcrypt --enable-mbstring --disable-rpath --enable-inline-optimization --with-libxml-dir --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbregex --with-mhash --with-pcre-regex --enable-fpm --with-libdir=lib64编译:makemake test安装:make install编译配置文件:cp /home/server/php/etc/php-fpm.config.default /home/server/php/etc/php-fpm.config修改又下行,去掉注释;pid = run/php-fpm.pid//如果不注释也可又启动,在添加系统服务的时候会报错,但是进程已经启动;pm.start_servers = 20pm.min_spare = 5pm.max_spare_servers = 35启动:进入PHP安装文件cpsapi/fpm/init.d.php-fpm /etc/init.d/php-fpmchmodo+x /etc/init.d/php-fpmchkconfig --add php-fpmservicephp-fpm start或者直接启动:/home/server/php/sbin/php-fpmhttp://www.51rhca.com/archives/226
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Linux