I have a scrip that has a function that needs me to edit the httpd.conf file but believe me i have harvest this forum and the internet for any help on how to go about this but i cant find the right way that i understand please help thanks.
beleave me i searched almost all the posts on the editing httpd.conf but i did not even get one talking of the way to find it.Do you need help on how to edit the httpd.conf file ?
There are some threads -- search google for [edit httpd.conf file site:forums.cpanel.net]
Hello
The following document describes the process of editing your Apache configuration file:
Custom Directives to httpd.conf
Thank you.
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak121012
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak121012
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
the problem is i dont know how to get access to any of those files mention above and also dont know how to run the command given above.Are you trying to add a wildcard domain to your main domain as a parked domain? If so, you could instead go to /var/cpanel/userdata/username/domain.com file (or sub.domain.com if it's a subdomain) and add the *.yourdomainname.com entry into the serveralias line in the file. Of note, username is your cPanel username, and domain.com is your domain name.
You'd also want to add *.yourdomain.com into /var/cpanel/userdata/username/main file for the parked domains section or addon domain section (whichever this one happens to be).
After adding the details, you'd run the following:
Thanks!Code:cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak121012 /scripts/rebuildhttpdconf /etc/init.d/httpd restart
Yes i do i just purchased a virtual server hosting from arvixe andits said i have root acces which i dont know how to access.Do you have a vps/dedicated server ? Do you have root access ?
- - - Updated - - -
Do you have a vps/dedicated server ? Do you have root access ?