Skip to content
Fix Code Error

Lost httpd.conf file located apache

March 13, 2021 by Code Error
Posted By: Anonymous

How can I find where my httpd.conf file is located?

I am running an Ubuntu Linux server from the Amazon Web Services EC2 (Elastic Compute Cloud) and I can’t find my Apache config.

Solution

Get the path of running Apache

$ ps -ef | grep apache
apache   12846 14590  0 Oct20 ?        00:00:00 /usr/sbin/apache2

Append -V argument to the path

$ /usr/sbin/apache2 -V | grep SERVER_CONFIG_FILE
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

Reference:
http://commanigy.com/blog/2011/6/8/finding-apache-configuration-file-httpd-conf-location

Answered By: Anonymous

Related Articles

  • Ubuntu apt-get unable to fetch packages
  • How to rename the keys of nested object in Javascript?
  • Laravel: PDOException: could not find driver
  • Connection failure using EC2 Instance Connect (browser-based…
  • Scrape image url
  • How to solve Internal Server Error in Next.Js?
  • Install pip in docker
  • AWS ssh access 'Permission denied (publickey)' issue
  • Docker not able to install git on Ubuntu container
  • How to set up a Subversion (SVN) server on GNU/Linux -…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

How can I remove a commit on GitHub?

Next Post:

Responsive font size in CSS

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Get code errors & solutions at akashmittal.com
© 2022 Fix Code Error