Control Web Panel

WebPanel => Apache => Topic started by: alierenerdal on August 08, 2015, 09:30:38 AM

Title: Apache error log file in your public_html directory
Post by: alierenerdal on August 08, 2015, 09:30:38 AM
If you want to see apache error.log file in your public_html or subdomain dir :

1) Login to Cwp with root account.
2) Go to Apache Settings/ Apache Vhosts Template
3) In Apache Domain Virtual Host tpl:

Add this line after  (DocumentRoot "%homedir%/%username%/public_html"):


ErrorLog "%homedir%/%username%/public_html/error.log"
4) In Apache SubDomain Virtual Host tpl:

Add this line  after (DocumentRoot "%path%") :

ErrorLog "%path%/error.log"

(http://i57.tinypic.com/2qbwwuq.jpg)

5) Click Save Changes and Go to :  Rebuild  Virtual Hosts and Click "Rebuild All Virtual Hosts"
(http://i61.tinypic.com/23w9mc3.jpg)



6) Alright!!  You can see error.log file in public_html or your subdomain_dir :

(http://i61.tinypic.com/14lmrdt.jpg)

(http://i57.tinypic.com/15q5151.jpg)
Title: Re: Apache error log file in your public_html directory
Post by: tiagocaus on June 16, 2019, 12:44:43 PM

alierenerdal, in the current version, where I edit the vhost template?
Title: Re: Apache error log file in your public_html directory
Post by: evansa on June 17, 2019, 12:05:32 AM
http://wiki.centos-webpanel.com/webservers-vhost-templates