Virtual host on cPanel WHM 11.52.0 (build 21)
Hi,
First of all I wanna point out that creating virtual hosts with your commpetion takes few minutes and it is straight forward compared to cPanel, 5 times cheaper per month and also you can set everything through the cpanel without need of using any commands.
I've been struggling with cPanel wituals for 2 days.
Ok, on shared IP I have created conf file in /usr/local/apache/conf/userdata/std/1/root/domain.com and in /usr/local/apache/conf/userdata/std/2/root/domain2.com
When I test it with /scripts/verify_vhost_includes I always get the same error "Testing /usr/local/apache/conf/userdata/std/1/root/domain.com/extra.conf...FAILED No changes made without --commit flag" and "Testing /usr/local/apache/conf/userdata/std/1/root/domain2.com/extra.conf...FAILED No changes made without --commit flag".
I have created in conf file the following in conf files:
ServerName domain.com
DocumentRoot /home/domain/public_html
ErrorLog /home/domain/apache.error.log
CustomLog /home/domain/apache.access.log common
php_flag log_errors on
php_flag display_errors on
php_value error_reporting 2147483647
php_value error_log /home/domain/php.error.log
Can someone tell me what's wrong with it?
And if possible, can you post the working example and not just comment the code.
Thanks,
-
Hi guys, I sorted it out in a brutal way. I made changes directly in httpd.conf. Copy simple things from the original and change it regarding your wishes. When it works then copy the code in the file /usr/local/apache/conf/includes/pre_virtualhost_global.conf 0 -
Hello :) I am happy to see the issue is now addressed. Note that documentation for Apache configuration changes is available at: Advanced Apache Configuration - EasyApache - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
2 comments