rewrite user httpd.conf

snaaps

Verified User
Joined
Jan 29, 2005
Messages
226
Location
Netherlands
Hello,

after a server crash we have tried to restore our machine with the backups.
But the backups has no /directadmin directory included.

So whe have recreate the users with the fix_da_user.sh tool.
Whe have manuly put the domains to the domains.list file of every user.

Now we must to recreate the user httpd.conf, how do we do that?

please give us your advise.
 
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
Add all the include lines to httpd.conf:
Code:
for i in `ls /usr/local/directadmin/data/users`; do { echo "Include /usr/local/directadmin/data/users/$i/httpd.conf" >> /etc/httpd/conf/httpd.conf; }; done;
 
thanks, but it dont work.

it create a httpd config file with the following lines:

# Auto generated apache config file by DirectAdmin version 1.30.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# Frontpage requires these parameters in every httpd.conf file or else
# it won't work.
Port 80
ServerRoot /etc/httpd


If I change the domain into directadmin it will work, but this is a lot of work.
 
Now I have a other problem,

The dont see the users in directadmin if i log into as admin.
Strange because I tested 5 users before and these users I saw in the admin section, now is everthink gone...
 
You don't say which backup program you used to do your backups.

If you were using the System Backup (sysbk), and you used the default backup settings, then as long as you use exactly the same OS Distribution, then immediately after restoring you can copy back to the system every file it's backed up (you'll have to do quite a bit of untarring) you should have a full working system.

But if you didn't backup everything in the default list (you can find it in these forums), then you really need to restore DirectAdmin first.

And if you used either the reseller level or admin level reseller backups, then you have to completely reinstall DirectAdmin before restoring those backups, and then restore those backups from DirectAdmin.

Jeff
 
Back
Top