Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    207
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default /scripts/rebuildhttpdconf preview?

    Is there any way to run /scripts/rebuildhttpdconf and have it generate a temp httpd.conf or simply not overwrite httpd.com? We have some changes we'd like to implement but want to test things and not have httpd.conf overwritten.

    TIA

  2. #2
    Member bin_asc's Avatar
    Join Date
    Jul 2005
    Posts
    280

    Default

    Copy /scripts/rebuildhttpdconf to /scripts/rebuildhttpdconf2

    Edit :
    my $apache_conf = '/usr/local/apache/conf/httpd.conf';
    and change the location like

    my $apache_conf = '/usr/local/apache/conf/httpd-test.conf';

    Save it and run it.

    You could also chattr +i the httpd.conf just in case so it won`t get overwritten.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    207
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    I was hoping to not have to hack up the cPanel scripts, but that is a good option.

Similar Threads & Tags
Similar threads

  1. wysiwyg on preview only
    By Ned_Flanders in forum New User Questions
    Replies: 2
    Last Post: 09-08-2009, 03:01 PM
  2. Problem with /scripts/rebuildhttpdconf
    By WebHostDog in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-19-2008, 06:22 PM
  3. error from rebuildhttpdconf (and buildhttpdconf)
    By Dmitry M. in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-16-2008, 05:00 AM
  4. X3 Preview Thread
    By daveformerlyof in forum Themes and Branding
    Replies: 325
    Last Post: 07-05-2007, 09:17 AM
  5. Preview of new account
    By aqua4 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-18-2003, 11:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube