View Full Version : re enter all users
JosHost
01-16-2007, 08:03 PM
Hello,
i made a costumapache back, and after a lot of time readin in the forum i got the HTTPD Back online, the problem is that i have all the user accounts files on the service but i had to erase all the user names from the CONF file in the httpd and named, how can i get all those hundreds accounts back to the main conf to function in 1 time?
thanks
joseph
nobaloney
01-16-2007, 08:39 PM
Do you have a backup?
I don't use FreeBSD so I don't know much about it :( .
I don't see a script that would re-add your users in the /usr/local/directadmin/scripts directory, but maybe I'm missing something.
I've asked DA staff to look at this post.
Jeff
JosHost
01-16-2007, 09:17 PM
no no no, thei is one, i just go it-
Once you are happy with your new virtual_host*.conf files they'll need to be used in the real httpd.conf files. You can trigger DirectAdmin to rewrite all User httpd.conf files by running:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
my problem isthat i ERASED the virtual directory, but i know their is some whee those list of users,
plz advise,
Thanks
JosHost
01-16-2007, 09:25 PM
ok, i hae a hint to know the usersare still alive som where,
when i do ./fix_domainowners.sh > domainowners
i get cat: /usr/local/directadmin/data/users/webnet2/domains/webnet.webshowreel.com.pointers: No such file or directory
cat: /usr/local/directadmin/data/users/webshow2/domains/webshowreel.com.pointers: No such file or directory
cat: /usr/local/directadmin/data/users/wemania/domains/wemania.joshost.com.pointers: No such file or directory
about 300 of them, the numbers of users that i have right now,
so how do i ge those users back to oparate after all this diging ?
i gt the " Hey, it worked !
The SSL/TLS-aware Apache webserver was
successfully installed on this website."
and need to point them back, last step of this, plz advise,
thank you,
Joseph
JosHost
01-16-2007, 09:37 PM
OK I must make a comment here , until this will be solved,
i have now in the virtual direcotry ll the users,NOW-
>Once you are happy with your new virtual_host*.conf files they'll need to be used in the real httpd.conf files. You can trigger DirectAdmin to rewrite all User httpd.conf files by running:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
The command will be added the the task queue which is checked once per minute, so it may be a few minutes before all httpd.conf files have been rewritten. *Note: the main /etc/httpd/conf/httpd.conf is never overwritten (unless DirectAdmin is reinstalled) so any changes you make will be safe.>
I used this and ought it will rewrte the conf fle but it seems this will not happen as it is not overwritten unles da is reinstalled,
so how should i place those users inside the CONF Users list?
nobaloney
01-17-2007, 09:06 AM
If you can, then wait for DA support to respond to the thread.
Unfortunately I don't know enough about FreeBSD to be willing to help you with this :( .
Perhaps someone else can write and help.
anyone?
Jeff
DirectAdmin Support
01-17-2007, 12:30 PM
Try this:
http://help.directadmin.com/item.php?id=121
John
nobaloney
01-17-2007, 06:59 PM
John,
I believe he said that he'd deleted all the include http.conf files :( .
Jeff
DirectAdmin Support
01-17-2007, 08:29 PM
There is then the /usr/local/directadmin/scripts/fix_da_user.sh for each user. Example:
cd /usr/local/directadmin/scripts
./fix_da_user.sh bob user domain.comrepeated for each user.
Then reissue the action=rewrite&value=httpd command to the task.queue.
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.