How to resolve this error in Linux Centos?

I have a Error in my Linus Server. When i will logon my domain on browser it can show an error ERROR: Gateway Timeout I will use PuTTy on Computer Windows, when i login my root User and Enter My Password after given of this command, systemctl status httpd.service a error show. Error=>

● httpd.service - The Apache HTTP Server

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

Active: failed (Result: exit-code) since Mon 2017-07-10 00:04:01 PKT; 9h ago Docs: man:httpd(8)


Process: 40522 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,


Process: 40521 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited,


Main PID: 40521 (code=exited, status=1/FAILURE)

Jul 10 00:04:01 systemd[1]: Starting The Apache HTTP Server…

Jul 10 00:04:01 httpd[40521]: (2)No such file or directory: A…1

Jul 10 00:04:01 httpd[40521]: AH00014: Configuration check failed

Jul 10 00:04:01 systemd[1]: httpd.service: main process exite…E

Jul 10 00:04:01 kill[40522]: kill: cannot find process “”

Jul 10 00:04:01 systemd[1]: httpd.service: control process ex…1

Jul 10 00:04:01 systemd[1]: Failed to start The Apache HTTP S…

Jul 10 00:04:01 systemd[1]: Unit httpd.service entered failed…

Jul 10 00:04:01 systemd[1]: httpd.service failed.

Jul 10 03:19:01 systemd[1]: Unit httpd.service cannot be relo…

Hint: Some lines were ellipsized, use -l to show in full.

Note: in above question is my primary domain name. I will not show my primary domain due to security reason. Thank you

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi @salmanafzal

It looks like there’s a configuration error somewhere in your Apache configs. Run this:

sudo apachectl configtest

Please post the last 30 lines from the Apache error log. Run this:

sudo tail -30 /var/log/apache2/error.log

This comment has been deleted

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @hansen When i enter these command in PuTTy , an error show. =>sudo apachectl configtest Result: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:355 (2)No such file or directory: AH02291: Cannot access directory ‘/var/www/’ for error log of vhost defined at /etc/httpd/conf.d/ AH00014: Configuration check failed => sudo tail -30 /var/log/apache2/error.log Result: tail: cannot open ‘/var/log/apache2/error.log’ for reading: No such file or directory

Kindly solve my issue please. What is error in my Linux Server?