重启Apache报错

问答中心分类: OneinStack重启Apache报错
rehack.cn asked 8 年 ago
安装完oneinstack之后,我重启Apache服务器,然后报错,phpinfo和探针都不能访问。
错误信息如下:
[root@localhost default]# service httpd restart
httpd: Syntax error on line 150 of /usr/local/apache/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot make segment writable for relocation: Cannot allocate memory

[root@localhost default]# service httpd stop
httpd: Syntax error on line 150 of /usr/local/apache/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot make segment writable for relocation: Cannot allocate memory

4 Answers
oneinstack answered 8 年 ago
安装日志放到百度云,链接贴下!

rehack.cn answered 8 年 ago
http://aier.rehack.cn/install.log 这是安装日志
出现这个报错的原因是我修改了/usr/local/apache/conf/vhost/0.conf这个配置文件,然后重启Apache 导致的,但我还原/usr/local/apache/conf/vhost/0.conf这个文件的内容,再重启Apache依然报错

oneinstack answered 8 年 ago
安装没问题,服务器什么配置?

rehack.cn answered 8 年 ago
搬瓦工256ram,貌似和我安装的IPSEC/IKEV2( https://quericy.me/blog/699) 产生了冲突,两者只能存在一个