PDA

View Full Version : emergency, dumb mistake



young
07-13-2004, 08:09 PM
i had da running and websites setup for months now. i wanted to see what would happen if i ran install.sh

i have a new ui for directadmin, but now all the sites on the server i tried to get to shows "Apache is functioning normally"

what can i do?

young
07-13-2004, 08:57 PM
i tried restarting da, now da isn't coming back up

l0rdphi1
07-13-2004, 08:59 PM
Hello,

At the bottom of your httpd.conf there were includes for each of your hosted users. httpd.conf was likely overwritten when you re-ran install.sh.

To the bottom of httpd.conf, append the following line for each {user} on your system:
Include /usr/local/directadmin/data/users/{user}/httpd.conf
That may fix this, if your users' data files still exist in /usr/local/directadmin/data/users/

Good luck.

Phi1.

l0rdphi1
07-13-2004, 09:02 PM
Originally posted by young
i tried restarting da, now da isn't coming back up If I were you :), I'd probably backup my users' config files /usr/local/directadmin/data/*, wip out /usr/local/directadmin, and reinstall DA anew.

Just make sure you backup everything. :)

You may want to contact DA's official support line -- support@directadmin.com -- first though ;)

Phi1.

young
07-13-2004, 09:54 PM
Originally posted by l0rdphi1
Hello,

At the bottom of your httpd.conf there were includes for each of your hosted users. httpd.conf was likely overwritten when you re-ran install.sh.

To the bottom of httpd.conf, append the following line for each {user} on your system:
Include /usr/local/directadmin/data/users/{user}/httpd.conf
That may fix this, if your users' data files still exist in /usr/local/directadmin/data/users/

Good luck.

Phi1.


thank you, but the httpd.conf files aren't there anymore. is there anyway i can regenerate them for all users?

l0rdphi1
07-13-2004, 09:59 PM
Yes, you can regenerate your users' httpd.conf files, however DA neeeds to be running to do that.
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queuePhi1.

thuskey
07-13-2004, 10:05 PM
I'm betting the /usr/local/directadmin/data/users/ directory is nearly empty, if so, how faithful were you (or the server admin) at making backups?

young
07-13-2004, 10:26 PM
Originally posted by thuskey
I'm betting the /usr/local/directadmin/data/users/ directory is nearly empty, if so, how faithful were you (or the server admin) at making backups?

the admin directory in /usr/local/directadmin/data/users looks like it got reset, but the other user directories look untouched.

i have the other user sites working. i think i just have to re add the domains for the admin. but when i tried to re add the domain, it said it already exists.

l0rdphi1
07-13-2004, 10:39 PM
That's because DNS files for the domains still exist. Remove them as /var/named/{domain}.db and you should be good.

young
07-13-2004, 10:47 PM
Originally posted by l0rdphi1
That's because DNS files for the domains still exist. Remove them as /var/named/{domain}.db and you should be good.

thanks again.