Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 31 to 39 of 39
  1. #31
    Member
    Join Date
    Sep 2003
    Posts
    234

    Default

    Is this the info that the script places in the vhost section?

    Include "/usr/local/apache/conf/userdata/*.conf"
    Include "/usr/local/apache/conf/userdata/*.owner-root"
    Include "/usr/local/apache/conf/userdata/std/*.conf"
    Include "/usr/local/apache/conf/userdata/std/*.owner-root"
    Include "/usr/local/apache/conf/userdata/std/1/*.conf"
    Include "/usr/local/apache/conf/userdata/std/1/*.owner-root"
    Include "/usr/local/apache/conf/userdata/std/1/username/*.conf"



    Seems like a lot of lines.

  2. #32
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default

    I have multiple clients where all their subdomains is down because
    their wildcards in apache is gone after easyapache.

  3. #33
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default

    Please Help!

    My user, let say he is "jeroman" and his domain is "jeroman.com"
    I wanna have wildcard subdomains so I wanna put serveralias: *.jeroman.com in httpd.conf.
    I run apache 1.3x.

    I created:
    /usr/local/apache/conf/userdata/std/1/jeroman/jeroman.com/custom.conf

    in custom.conf i added the line:
    serveralias: *.jeroman.com

    (also tested: ServerAlias *.jeroman.com)

    I then run:
    /scripts/ensure_vhost_includes --user=jeroman --verbose

    it say:

    Starting jeroman...
    Processing jeroman.com...
    Checking bandwidth limit...Off
    Checking tomcat setting...Off
    Checking magic php include path...Off


    I then restart apache.

    But nothing has changed in httpd.conf, the file has been rebuilt but my
    wildcard line is not there, nothing changed.
    Last edited by jeroman8; 12-05-2007 at 01:59 PM.

  4. #34
    cPanel Staff
    Join Date
    Mar 2007
    Posts
    113

    Default

    The includes are managed using the normal apache "include" directive. You wouldn't see that line directly in httpd.conf, but you should be seeing something like this in the jeroman.com VirtualHost:

    Include "/usr/local/apache/conf/userdata/std/1/jeroman/jeroman.com/*.conf"

    That line causes Apache to load the contents of your custom.conf file at that point as it is starting up.

  5. #35
    Member
    Join Date
    Oct 2003
    Posts
    132

    Default

    Quote Originally Posted by cpanelkenneth View Post
    No, changes to VirtualHost will not be preserved.
    I'm wondering regarding this message.

    I changed ScriptAlias /cgi-bin/ /home... and so on

    manually.

    wq!

    run /usr/local/cpanel/bin/apache_conf_distiller --update --main

    Created new domains, sub-domains, addon-domains, removed them
    again and my changes within the VirtualHost section regarding the
    ScriptAlias remained unchanged.

  6. #36
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by deddy View Post
    I'm wondering regarding this message.

    I changed ScriptAlias /cgi-bin/ /home... and so on

    manually.

    wq!

    run /usr/local/cpanel/bin/apache_conf_distiller --update --main

    Created new domains, sub-domains, addon-domains, removed them
    again and my changes within the VirtualHost section regarding the
    ScriptAlias remained unchanged.

    We've made many changes since that post was made in September.

  7. #37
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    Quote Originally Posted by cpanelkenneth View Post
    OK, this is a quickie on using the /usr/local/apache/conf/userdata /magic/

    1. If the directory does not exist, create it:
    Code:
    shell> mkdir /usr/local/apache/conf/userdata
    2. The directory hierarchy is as follows:

    Code:
    shell> cd /usr/local/apache/conf/userdata
    First level of directories are std and ssl std means non-SSL settings and ssl means SSL settings. Within both of those directories you would create two directories 1 and 2. These correspond to the Major Apache versions. Thus, one would not create 1.3, 2.2 or 2.0

    Within the directories that correspond to the Major Apache version, would be directories for each cPanel user name. Within those directories for each user name would be directories for each domain owned by the account. Thus, if my user name is cpkenneth and I own the domain cpanelkenneth.info and my cPanel server runs Apache 2.2 and I wanted fine-grained control over the vhost that configures that domain, I would drop a conf file in:

    Code:
    shell> mkdir -p /usr/local/apache/conf/userdata/std/2/cpkenneth/cpanelkenneth.info
    shell> cd /usr/local/apache/conf/userdata/std/2/cpkenneth/cpanelkenneth.info
    shell> vim custom.conf
    shell> /scripts/ensure_vhost_includes --user=cpkenneth
    shell> /scripts/restartsrv_httpd
    Whereas, if I wanted to customize behavior for all vhosts on that hypothetical server, I would do this:

    Code:
    shell> mkdir -p /usr/local/apache/conf/userdata/std/2/
    shell> cd /usr/local/apache/conf/userdata/std/2/
    shell> vim custom.conf
    shell> /scripts/ensure_vhost_includes --all-users
    shell> /scripts/restartsrv_httpd
    The file does not need named custom.conf, as long as it ends in .conf

    We are working to simplify some of this, based upon user request.

    Since this is a "quickie" there are likely errors/typos.
    Can i add below config on custom.conf using above method ?

    -----------------------
    <IfModule mod_suphp.c>
    <Location /shop>
    suPHP_ConfigPath /usr/local/Zend/register-enabled
    </Location>
    </IfModule>
    -------------------------
    It's me ...... It's me ......

  8. #38
    Member
    Join Date
    Jun 2003
    Location
    Bharat
    Posts
    232
    cPanel/Enkompass Access Level

    Root Administrator

    Default Line 839 Error

    I got this error on my freshly deployed VPS

    root@corp [~]# /usr/local/cpanel/bin/apache_conf_distiller --update --main
    Use of uninitialized value in split at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 839.
    Distilled successfully
    I compared /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 839 with another server its exactly same, but don't know why this error is there.
    Vinayak Sharma
    Vinsar.Net - Quality WebHosting Services at Economical Price USA, UK & Italian Servers
    Book Your Domain with Confidence Reliable Domain Reseller Account

  9. #39
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Vinsar View Post
    I got this error on my freshly deployed VPS



    I compared /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 839 with another server its exactly same, but don't know why this error is there.

    The error isn't with apache.pm, but rather with the data it's processing from httpd.conf. Checking /usr/local/apache/conf/httpd.conf, or the latest temporary file left in place, to find what the distiller is having issues with. It may be nothing.

Similar Threads & Tags
Similar threads

  1. Create Account Wizard - ASP.net Framework settings
    By chrisbuk in forum Enkompass Discussions
    Replies: 0
    Last Post: 07-31-2011, 02:25 PM
  2. Reset WHM settings
    By TheReliableHost in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-28-2010, 10:34 AM
  3. How do i reset back to default settings
    By kinlungchan in forum New User Questions
    Replies: 2
    Last Post: 05-22-2006, 10:57 PM
  4. Tweak Settings reset every week
    By Cristian99 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-02-2005, 03:57 AM
  5. reset the server settings
    By sphost in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-18-2004, 04:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube