The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Virtual host on cPanel WHM 11.52.0 (build 21)

Discussion in 'EasyApache' started by budala, Nov 8, 2015.

  1. budala

    budala Registered

    Joined:
    Nov 8, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pula
    cPanel Access Level:
    Root Administrator
    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:
    <VirtualHost *:80>
    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
    </VirtualHost>

    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,
     
  2. budala

    budala Registered

    Joined:
    Nov 8, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pula
    cPanel Access Level:
    Root Administrator
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page