./build rewrite_confs reverts any changes made to /etc/httpd/conf/httpd.conf

Meiji

Verified User
Joined
Jul 2, 2019
Messages
72
Hi,

I was trying to enable UserDir and modified two files:

Code:
/etc/httpd/conf/httpd.conf
/etc/httpd/conf/extra/httpd-userdir.conf

Then placed those files under /custom:

Code:
/usr/local/directadmin/custombuild/custom/ap2/conf/httpd.conf
/usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-userdir.conf


But every time after running ./build rewrite_confs, the httpd.conf reverts to the original version, reverting any changes I made.
But the changes in httpd-userdir.conf remains persistent.

I even changed the file /usr/local/directadmin/custombuild/configure/ap2/conf/httpd.conf and copied /usr/local/directadmin/custombuild/configure/ap2/conf/ to /usr/local/directadmin/custombuild/custom/ap2/conf/ and then ran ./build rewrite_confs, every time, the httpd.conf reverts to the original version.

Edit:
I am using DA + LiteSpeed Enterprise.
 
Last edited:
don't copy ready files from /etc, you must copy templates from: /usr/local/directadmin/custombuild/configure/ap2/ to custom, and modify this templates.
 
don't copy ready files from /etc, you must copy templates from: /usr/local/directadmin/custombuild/configure/ap2/ to custom, and modify this templates.

Done that, too. Same result.

If this has anything to do, I am using LiteSpeed Enterprise.
 
I was trying to enable UserDir and modified two files:
Normally you don't have to customize files for this, there is a more easy solution for that normally.

Code:
cd /usr/local/directadmin/custombuild
./build set userdir_access yes
./build update
./build rewrite_confs

I don't use OLS so I'm not sure, but since custombuild does everything for you I presume it will work on OLS too.
 
Normally you don't have to customize files for this, there is a more easy solution for that normally.

Doing that does not enable UserDir. I needed to edit the files manually to enable it.

I was trying on LiteSpeed Enterprise. Haven't yet tried on OLS.
 
Litespeed Enterprise is not supported by DA custombuild if I'm not mistaken, so that could be the reason that it did not work with my suggestion.
 
Litespeed Enterprise is not supported by DA custombuild if I'm not mistaken, so that could be the reason that it did not work with my suggestion.

I am not sure why you say that. It is supported:

Code:
./build set webserver litespeed
 
I'm sorry.
I wasn't sure, that's why i wrote "if I'm not mistaken". In this case I was mistaken, thank you correcting me. It's indeed supported.
Odd that the custombuild option does not change the userdir automatically then.
 
@Richard G

Just to clarify that I didn't intend anything negative. You were trying to help and I didn't mean anything more than what I wrote.

I have read your posts and some of them greatly helped me, too.

Your contribution to this forum is awesome, which I probably won't be able to do :)
 
Just to clarify that I didn't intend anything negative. You were trying to help and I didn't mean anything more than what I wrote.
Don't worry, there's no harm done.
I'm indeed trying to help people on this forum and your reply prevented my from eventually maybe spreading incorrect information, so I was truefull happy with your reply! ;)
I also gave it a like for that reason.

By the way... I'm also only able to being of such help lately because I've got to much free time on my hands. :)
 
Back
Top