An OpenStack installation detects that Apache is not booting

Source: Internet
Author: User

when installing the OpenStack kilo version, there is a step to detect that Apache could not start, searched all the information Google did not search to do their own, I use the centos-7-x86_64-bit system, The error message is as follows:


Error:error appeared during Puppet run:192.168.209.143_horizon.pp

Error:could not start service[httpd]: Execution of '/usr/bin/systemctl start httpd ' returned 1:job for Httpd.service FAI LED because the control process exited with error code. See "Systemctl Status Httpd.service" and "Journalctl-xe" for details.


Follow the prompts to perform a "journalctl -xe" where the following information is found:


DEC 11:06:33 Controller httpd[29959]: AH00526: Syntax error on line one of/etc/httpd/conf.d/fcgid.conf:

DEC 11:06:33 Controller httpd[29959]: Invalid command ' Fcgidipcdir ', perhaps misspelled or defined by a module not Included in the server configuration

DEC 11:06:33 Controller systemd[1]: Httpd.service:main process exited, code=exited, status=1/failure

DEC 11:06:33 Controller kill[29963]: Kill:cannot Find Process ""

DEC 11:06:33 Controller systemd[1]: Httpd.service:control process exited, code=exited Status=1

DEC 11:06:33 Controller systemd[1]: Failed to start the Apache HTTP Server.


of which two paragraphs of red English font hint /etc/httpd/conf.d/fcgid.conf This file has invalid commands Invalid command ' Fcgidipcdir ', It is possible that the spelling error may be caused by the module not being loaded, see the full information of the file as follows:


[Email protected] ~]# cat/etc/httpd/conf.d/fcgid.conf

# This was the Apache server configuration file for providing FastCGI support

# through Mod_fcgid

#

# documentation is available at

# http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html


# use FastCGI to process. FCG. fcgi &. FPL Scripts

AddHandler fcgid-script FCG fcgi FPL


# Sane Place to put sockets and shared memory file

Fcgidipcdir/run/mod_fcgid

Fcgidprocesstablefile/run/mod_fcgid/fcgid_shm


This is a configuration file that calls the Mod_fcgid module and provides fastcgi Apache server, and a look at the file does not actually load the mod_fcgid module,


So load the module in the file

LoadModule Fcgid_module modules/mod_fcgid.so


The complete file is as follows:

Fcgid.conf


# This was the Apache server configuration file for providing FastCGI support

# through Mod_fcgid

#

# documentation is available at

# http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

LoadModule Fcgid_module modules/mod_fcgid.so

# use FastCGI to process. FCG. fcgi &. FPL Scripts

AddHandler fcgid-script FCG fcgi FPL

# Sane Place to put sockets and shared memory file

Fcgidipcdir/var/run/mod_fcgid

Fcgidprocesstablefile/var/run/mod_fcgid/fcgid_shm


At the start.

[[email protected] ~]# apachectl start

[Email protected] ~]# apachectl status

* Httpd.service-the Apache HTTP Server

loaded:loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset:disabled)

Drop-in:/USR/LIB/SYSTEMD/SYSTEM/HTTPD.SERVICE.D

'-openstack-dashboard.conf

Active: Active (running) since Fri 2016-12-30 16:45:48 CST; 6s ago

DOCS:MAN:HTTPD (8)


This article is from the "a myriad of simple pleasures of technology to enjoy" blog, please be sure to keep this source http://51enjoy.blog.51cto.com/8393791/1887717

Detection of Apache does not start at OpenStack installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.