How to access and edit httpd.conf

aussielunix

Member
Registered
Joined
Aug 29, 2016
Messages
38
Points
8
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!
 

EcommIndiaCloudIT

Member
Registered
Joined
Dec 28, 2016
Messages
64
Points
0
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
 

aussielunix

Member
Registered
Joined
Aug 29, 2016
Messages
38
Points
8
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
123
Replies
1
Views
79
Recommended Threads
Replies
16
Views
6,626
Replies
0
Views
1,712
Replies
20
Views
6,490

Latest Hosting OffersNew Reviews

Sponsors

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