How to access and edit httpd.conf

Joined
Aug 29, 2016
Messages
38
Best answers
0
Ratings
2
Points
8
#1
I need to change some configurations on this file, how can I find, access and edit httpd.conf? I am using Apache with cPanel. Thanks!
 
Joined
Dec 28, 2016
Messages
64
Best answers
0
Ratings
30
Points
0
#2
If you have SSH console access, type the following in:

# httpd -V

You will get a few lines, you need to look for "HTTPD_ROOT". In normal cases, if you run centos with cPanel, the path will be /etc/apache. Also look for "SERVER_CONFIG_FILE". This will give you the relative path, something like "conf/httpd.conf". Combine both of them and you will get the full path to the file /etc/apache/conf/httpd.conf

Now just use vi command to edit the file

# vi /etc/apache/conf/httpd.conf

Alternatively you could install the Config Server Explorer inside WHM to directly access this file in a file explorer type window.

If you are only looking to add or override directives from within the apache config, use the WHM/cPanel functionality "Apache Coniguration" under Service Configuration
 
Joined
Aug 29, 2016
Messages
38
Best answers
0
Ratings
2
Points
8
#4
Alternatively you could install the Config Server Explorer inside WHM to directly access this file in a file explorer type window.
ConfigServer Explorer is the plugin for WHM that EcommIndiaCloudIT suggested. That would be good if you are not comfortable using command line tools.
I'd like to use easier way without using commands but I can not find out where Config Server Explorer in my WHM to edit this file.

Can you clear me with a screenshot in WHM?
 
Latest Threads
Replies
0
Views
9
Replies
0
Views
29
Replies
7
Views
47
Replies
2
Views
39

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top