|
|
安装完Apache后测试,Apache好用的!
等安装完PHP后Apache就不能启动了,在shell中执行 ./apachectl restart 时出现的提示
apachectl: Configuration syntax error, will not run "restart":
httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
安装apache
./configure --prefix=/etc/httpd \
> --enable-module=so
安装php
./configure --prefix=/usr/local/php \
--with-apxs2=/etc/httpd/bin/apxs \
--with-gd \
--with-jpeg-dir \
--with-ttf \
--with-zlib-dir \
--with-png-dir \
--with-mysql=/usr/local/mysql \
--enable-track-vars
libphp5.so权限
chmod 755 /etc/httpd/modules/libphp5.so
使用的系统是FC5 |
|