本帖最后由 新手719447 于 2020-4-25 18:24 编辑
报错信息1:[notice] child pid exit signal segmentation fault site:*.apache.org
(1).检查配置文件,依赖moudle等,gdb得到apache-core,但是内存崩溃,也未解决问题。
(2).卸载apache,重装:1、sudo apt-get remove apache22、sudo apt-get remove apache2.2-common3、sudo apt-get autoremove (此命令会自动卸载PHP)
报错信息2:sudo service apache2 start * Starting web server apache2 Syntax error on line 160 of /etc/apache2/apache2.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration Action 'start' failed. The Apache error log may have more information.
解决方法:在终端里输入如下命令sudo a2enmod authz_host;
报错信息3
使用 CodeIgniter的时候出现了HTTP 500错误,查看日志发现以下错误 taccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
解决办法:RewriteEngine命令需要rewrite mod的支持,打开apache的配置文件httpd.conf ,取消 LoadModule rewrite_module modules
/mod_rewrite.so前的注释 |