re enter all users

JosHost

Verified User
Joined
Mar 9, 2006
Messages
37
Location
israel
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

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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

Verified User
Joined
Mar 9, 2006
Messages
37
Location
israel
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

Verified User
Joined
Mar 9, 2006
Messages
37
Location
israel
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

Verified User
Joined
Mar 9, 2006
Messages
37
Location
israel
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

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
John,

I believe he said that he'd deleted all the include http.conf files :( .

Jeff
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,921
There is then the /usr/local/directadmin/scripts/fix_da_user.sh for each user. Example:
Code:
cd /usr/local/directadmin/scripts
./fix_da_user.sh [b]bob[/b] user [b]domain.com[/b]
repeated for each user.

Then reissue the action=rewrite&value=httpd command to the task.queue.

John
 
Top