Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Feb 2002
    Posts
    43

    Cool Huge Problems with Apache Rebuild | Apache Templates | Apache Conf Caching

    We are on:-

    Apache 1.3.X
    Php 4.4.X
    WHM 11.25

    We are trying to add PHP open_basedir to some and exclude some other accounts.

    Problem No 1
    ==========

    To Replicate
    =========

    - No edits at /var/cpanel/templates/apache1/vhost.default will have any difference on the final /usr/local/apache/conf/httpd.conf file when open_basedir changes are made at > Security Centre > PHP open_basedir Tweak
    - The only way to get the custom changes made on /var/cpanel/templates/apache1/vhost.default to appear in /usr/local/apache/conf/httpd.conf is to run /scripts/rebuildhttpdconf
    - When another account is taken off the exclude list under
    > Security Centre > PHP open_basedir Tweak - The custom template at
    /var/cpanel/templates/apache1/vhost.default does not show up
    - Hence each time we make a change to PHP open_basedir system - we have to rebuild httpd

    This is absurd. What is the point of the template? How does one change the cached settings for the php open_basedir for each account?

    And forget about directly editing /usr/local/apache/conf/httpd.conf because those changes will be erased too.

    So there is some configuration caching somewhere - we want to know where that is stored so that we can edit or we remove the caching altogether.

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Arrow Friendly Moderator Note

    To prevent confusion between different issues the post has been moved into its own dedicated thread; separating the message will also ensure more attention and visibility to the unique inquiry making it easier for others to contribute feedback. We have also received your support request (ticket) submission and are examining the provided details further.
    Last edited by cPanelDon; 02-25-2010 at 06:55 AM. Reason: Clarification

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    So that we can more accurately diagnose the issue and symptoms please provide the following additional details:
    1.) Via root SSH access, please let provide the output from the following commands:
    Code:
    # /scripts/easyapache --version
    # /usr/local/cpanel/bin/rebuild_phpconf --current
    # find /var/cpanel/templates/apache*/ -iname "*.local"
    2.) Could you provide an example of the exact change being applied to the template files; I would like to try reproducing the issue using the same modification on a local test machine.

    If a bug is suspected please note that the best avenue to report it is via our ticket system; however, as you active support request open the possibility of a bug should be investigated further via the ticket (#585973) to ensure proper diagnosis and escalation.

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by cPanelDon View Post
    So that we can more accurately diagnose the issue and symptoms please provide the following additional details:
    1.) Via root SSH access, please let provide the output from the following commands:
    Code:
    # /scripts/easyapache --version
    # /usr/local/cpanel/bin/rebuild_phpconf --current
    # find /var/cpanel/templates/apache*/ -iname "*.local"
    2.) Could you provide an example of the exact change being applied to the template files; I would like to try reproducing the issue using the same modification on a local test machine.

    If a bug is suspected please note that the best avenue to report it is via our ticket system; however, as you active support request open the possibility of a bug should be investigated further via the ticket (#585973) to ensure proper diagnosis and escalation.
    During my initial testing I was unable to reproduce the symptom of the Apache configuration not rebuilding. Using the stock-default templates the Apache configuration file (httpd.conf) was successfully rebuilt during both actions of setting a host to be excluded from protection (i.e., disabling protection) as well as removing an exclusion for a host (i.e., enabling protection).

  5. #5
    Member
    Join Date
    Feb 2002
    Posts
    43

    Default

    EASY APACHE
    ==========

    Easy::Apache v3.2.0 Build 5013

    [cpanel]
    11.25.0-RELEASE_42400


    [apache]
    Server version: Apache/1.3.41 (Unix)
    Server built: Feb 2 2010 22:17:10
    Cpanel::Easy::Apache v3.2.0 rev4990


    [server]
    Linux server2.hodfords.net 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:32:21 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

    PHP CONF
    =======

    Available handlers: dso cgi none
    DEFAULT PHP: 4
    PHP4 SAPI: dso
    PHP5 SAPI: none
    SUEXEC: enabled

    find /var/cpanel/templates/apache*/ -iname "*.local"
    ========================================

    Generated nothing

    /********************************/
    To Replicate - please do this
    /********************************/

    (1) Start with a clean install add a few existing accounts already on it with PHP Open_basedir disabled
    (2) Go to WHM -> PHP Open_basedir Tweak
    (3) Enable Open_basedir and exclude some accounts and not others - reboot apache
    (4) Make the changes you want /var/cpanel/templates/apache1/vhost.default - Particularly under:-
    <IfModule concurrent_php.c>
    php4_admin_value open_basedir "[% vhost.homedir %]:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
    php5_admin_value open_basedir "[% vhost.homedir %]:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule !concurrent_php.c>
    <IfModule mod_php4.c>
    php_admin_value open_basedir "[% vhost.homedir %]:/home/:/home/jason/accounts/[% vhost.user %]/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "[% vhost.homedir %]:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    </IfModule>
    (5) Go back WHM -> PHP Open_basedir Tweak - Remove some of the excludes on the list and then reboot apache - Check /usr/local/apache/conf/httpd.conf and you'll see that none of the changes that you made to /var/cpanel/templates/apache1/vhost.default appear.

  6. #6
    Member
    Join Date
    Feb 2002
    Posts
    43

    Default

    You experts - Any updates?

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by hodfords View Post
    You experts - Any updates?
    I apologize for the delayed update; I have attempted to reproduce the issue but I was unable to determine more specific information regarding a cause. At this point given the provided information I believe it will help best if the issue is escalated via a support request so that we can investigate the symptoms directly on the affected server.

    When available, please let me know the ticket ID number (e.g., via a PM) upon submitting the support request so that I may follow-up internally. For reference, the links in my forums signature may be used to initiate a ticket submission (e.g., Support Options).

Similar Threads & Tags
Similar threads

  1. Path Problems After Apache Rebuild
    By shadeshigeru in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-23-2008, 10:33 AM
  2. Apache rebuild problem
    By feroz97 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 11-18-2006, 12:30 AM
  3. rebuild Apache w/ 4.4.2, apache fails
    By intel352 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-27-2006, 10:04 AM
  4. Rebuild Apache
    By tlangridge in forum New User Questions
    Replies: 1
    Last Post: 11-09-2004, 06:51 AM
  5. rebuild apache by option 6
    By hiisp in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-10-2003, 03:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube