webofunni

Active Member
May 6, 2007
27
0
151
Hi All,

I have made some changes to the Apache configuration file.

Code:
#UserDir public_html
UserDir disabled
UserDir enabled user1 user2
After that I executed

Code:
/usr/local/cpanel/bin/apache_conf_distiller --update
That gives

Code:
info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)
Distilled successfully
After that I tried /scripts/rebuildhttpdconf to test it. But it is replacing my changes.

I am not sure what is mean by :

Code:
info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)
Please help me to resolve it.
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator
The distiller works fine every time I try it. Try updating cpanel then do it again. If it still does not work you may want to have cpanel take a look at it for you.
 

webofunni

Active Member
May 6, 2007
27
0
151
Hello,

I ma using the latest Cpanel. It seems that the problem is with this :

Code:
info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)
Do you know why it creates that warning/error ?
 

RACKSET

Active Member
Apr 28, 2006
44
0
156
localhost
as a last solution you can do
Code:
rm -f /var/cpanel/conf/apache/local
then
Code:
/usr/local/cpanel/bin/build_apache_conf
hope this help others stuck there.
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
833
28
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
To make the change you are making, try editing /var/cpanel/templates/apache2/main.local instead. If you don't have a main.local, copy main.default to main.local. This is how I generally do it - the distiller doesn't appear to lock in certain changes, so using the template is the best bet.
 

MattCurry

Well-Known Member
Aug 18, 2009
275
0
66
Houston, Tx
Distiller

The message

"info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)"


is completely normal.


There is no need to remove this. It just shows that it is using a data store while doing the distillation. If you are seeing that the distiller doesn't work that is a different story all together, and you may need to open a ticket.
 

WiredTree Joe

Well-Known Member
Dec 13, 2006
68
1
158
Chicago, IL
To make the change you are making, try editing /var/cpanel/templates/apache2/main.local instead. If you don't have a main.local, copy main.default to main.local. This is how I generally do it - the distiller doesn't appear to lock in certain changes, so using the template is the best bet.
^ This. If you have to make major changes to httpd.conf file, use the templates. Before EasyApache3 there was nothing that would rebuild the httpd.conf file, so you better of had some backups somewhere if anything happened to it.

While it makes it hard to make simple changes kind of a pain, it was a step in the right direction on cPanel's part. Some doc links that I found to be wonderful on making custom changes inside and outside of vhosts. Nothing is more annoying when you add something to the httpd.conf and it won't save it so it survives a /scripts/rebuildhttpdconf.

CustomDirectives < EasyApache3 < TWiki
InsideVHost < EasyApache3 < TWiki