启动apache出错处理

2017年5月17日12:05:17 1 829 views
本文最后更新于2018年8月24日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!

Invalid command 'Order'

root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf:

Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration[FAILED]

需添加:

LoadModule access_module /etc/httpd/modules/mod_access.so

LoadModule auth_module /etc/httpd/modules/mod_auth.so

Invalid command 'UserDir'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 368 of /etc/httpd/conf/httpd.conf:

Invalid command 'UserDir', perhaps mis-spelled or defined by a module not included in the server configuration[FAILED]

需添加

LoadModule userdir_module /etc/httpd/modules/mod_userdir.so

Invalid command 'DirectoryIndex'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 396 of /etc/httpd/conf/httpd.conf:

Invalid command 'DirectoryIndex', perhaps mis-spelled or defined by a module not included in the server configuration[FAILED]

需添加

LoadModule dir_module /etc/httpd/modules/mod_dir.so

Invalid command 'TypesConfig'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 419 of /etc/httpd/conf/httpd.conf:

Invalid command 'TypesConfig', perhaps mis-spelled or defined by a module not included in the server configuration[FAILED]

需添加

LoadModule mime_module /etc/httpd/modules/mod_mime.so

Invalid command 'LogFormat'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 491 of /etc/httpd/conf/httpd.conf:

Invalid command 'LogFormat', perhaps mis-spelled or defined by a module not included in t

he server configuration[FAILED]

需添加:

LoadModule log_config_module /etc/httpd/modules/mod_log_config.so

Invalid command 'Alias'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 555 of /etc/httpd/conf/httpd.conf:

Invalid command 'Alias', perhaps mis-spelled or defined by a module not included in the ser

er configuration[FAILED]

需添加:

LoadModule alias_module /etc/httpd/modules/mod_alias.so

Invalid command 'SetEnvIf'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 582 of /etc/httpd/conf/httpd.conf:

Invalid command 'SetEnvIf', perhaps mis-spelled or defined by a module not included in the server configuration[FAILED]

需添加:

LoadModule setenvif_module /etc/httpd/modules/mod_setenvif.so

Invalid command 'IndexOptions'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 636 of /etc/httpd/conf/httpd.conf:

Invalid command 'IndexOptions', perhaps mis-spelled or defined by a module not included in the server configuration[FAILED]

需添加:

LoadModule autoindex_module /etc/httpd/modules/mod_autoindex.so

Invalid command 'LanguagePriority'

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: Syntax error on line 784 of /etc/httpd/conf/httpd.conf:

Invalid command 'LanguagePriority', perhaps mis-spelled or defined by a module n

ot included in the server configuration[FAILED]

需添加

LoadModule negotiation_module /etc/httpd/modules/mod_negotiation.so

[root@srv-2 modules]# /etc/init.d/httpd start

Starting httpd: [ OK ]

  • 微信小程序
  • 关注微信小程序
  • weinxin
  • 微信公众号
  • 关注微信公众号
  • weinxin
Honest1y

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:1   其中:访客  1   博主  0

    • avatar 腾讯视频 4