打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
以Apache模块的方式编译安装php

以Apache模块的方式编译安装php-5.5.4 - yJken的博客

groupadd webuseruseradd -g webuser webuser

下载地址:http://pan.baidu.com/s/1o6I6Lnk

解包

tar zxvf php-5.5.4.tar.gzcd php-5.5.4./configure --prefix=/server/php5 --enable-sockets --with-apxs2=/server/apache2/bin/apxs --with-mysql=/server/mysql --with-mysqli --with-mysqli=/server/mysql/bin/mysql_config --with-pdo-mysql=/server/mysql --with-jpeg-dir=/usr/lib64 --with-curl --enable-mbstring=all --with-config-file-path=/server/php5/etc --enable-soap --with-freetype-dir=/usr/local/lib --with-gd --with-gettext

编译 并 安装

make && make installvi /server/apache2/conf/httpd.conf

增加Addtype 一行

AddType application/x-httpd-php .phpcp ./php.ini-production /server/php5/etc/php.ini
vi  /server/php5/etc/php.iniinclude_path = ".:/php/includes:/server/php5/lib/php"cgi.fix_pathinfo=1date.timezone = Asia/Shanghai

启用了selinux的系统需要如下一行操作

chcon -t texrel_shlib_t /server/apache2/modules/libphp5.so
/server/apache2/bin/apachectl restart
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
打造 Ubuntu 16.04 完美服务器
centos6.5下Zabbix系列之Zabbix安装搭建及汉化
ubuntu下装apt的server(apache2 php5 mysql)
ubuntu下安装lamp环境
Apache Directory Server的安装和配置
安全连接SSL
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服