websites owned by admin show default apache message

993ti

Verified User
Joined
May 4, 2007
Messages
73
The websites owned by admin (me) all show apache is functioning normally while the websites owned by others show up fine.
What happened?
./build rewrite_confs didn't help.
I'm completely stumped now.
 
Well, it seems that the user 'admin' has dissappeared too!
Every time i update something, something dissappears or breaks! :(
How do i get the user admin back?
The sites are still there.

Nowhere to be found here:
/usr/local/directadmin/data/users/
While the other users are still there.
 
Last edited:
Ok, since the sites are still there, how do i get them to show for now?
They are defaulting to a different folder now.
 
And here's something else that's new.
Somehow 40gb have dissappeared and now i'm using 85% of 84gb.
Wtf is going on here?
How can i see where everything went?
 
There are now two reports of user admin disappearing. See this thread as well:
http://forum.directadmin.com/showthread.php?t=48983&p=251712#post251712

Where were those sites set up? Under the reseller level of admin (which would put them into their own /home/USERNAME directory)? Or under the user level of admin (which would put them into the /home/admin/domains directory?

What do you mean when you say the admin user has disappeared? Is /home/admin still present?

I don't know how disk space could disappear. Is it really gone as you can see from a shell login, or is it somehow not counted in DirectAdmin?

Jeff
 
It's under the user level Admin. Is there a way to move the sites to one of the other accounts so they'll be online for the time being?
I noticed the disk space when I logged into ssh.
Also, I can't log into directadmin either since that's gone too (might have to do with the disappearing of the admin?
Home/Admin is still present, it's just the websites.
The other accounts are reseller/user.
 
The sites are all in /home/admin/domains
I ran fix_da_user.sh and they show up in virtual again too now.
They show the default apache page of another site of mine now :S
Code:
Welcome to the home of [b]sitename[/b] 
To change this page, upload your website into the public_html directory
They all show the exact same page but can't find it :S

Edit:
Just ran ./build rewrite_confs and the Apache is functioning normally message is back :S
Argh!
 
Last edited:
It's been created in /usr/local/directadmin/data/users/ again, now trying to edit the user.conf and adding the domains manually in domains.list.
 
It's httpd.conf is empty.
Is there a way to recreate it or should i copy and edit one from another user?
 
Got DA back, able to login.
Admin shows up but errors for all domains, can't create new sites or users so i can move the sites.
Slowly getting there :)

Code:
Error Creating User ***** 
Details

Unix User created successfully

Error with system Quotas
 setquota: Mountpoint (or device) /home not found or has no quota enabled. setquota: Not all specified mountpoints are using quota. 
Debug Guide
 User's data directory created successfully
 Domains directory created successfully
 Domains directory created successfully in user's home

 Error creating access group : Usage: groupadd [options] GROUP Options: -f, --force exit successfully if the group already exists, and cancel -g if the GID is already used -g, --gid GID use GID for the new group -h, --help display this help message and exit -K, --key KEY=VALUE override /etc/login.defs defaults -o, --non-unique allow to create groups with duplicate (non-unique) GID -p, --password PASSWORD use this encrypted password for the new group -r, --system create a system account 
 User added to ssh config file.
 
Just a thought... did you already have a look with smartctl and in your /var/log/messages if there might be harddisk problems?
 
Haven't checked yet.
It might be possible though, wouldn't surprise me one bit.
I'm using a 120gb SSD.
 
Based on all you wrote above since my last post I'd say the absence of the user-level httpd.conf file is why the domains aren't showing up. They won't show up even if moved, because there's no httpd.conf file to copy over to a new user. I presume that by now you've figured out you need to recreate them.

But I'd strongly consider rebuilding on another box (with a lot of security), hopefully from a ackup set you have. Then copy over email folders, all the folders under /home/admin/domains and all the database folders, to get latest good contents moved over.

Still no idea if this was a crack or a drive failure; evidence points to both/either.

You should check your logs to see if anyone logged in through the shell; it would likely take a shell login to do this kind of damage. Though there have been two reports of problems with admin accounts, thee are also thousands of admin accounts without problems.

Yes this is a major disaster. I've had to major disasters not quite the same, but similar, over the years, both caused by catastrophic drive failure.

No other ideas.

Jeff
 
Thanks.
Currently a couple of sites are up but can't backup databases.
This also suddenly appeared.
Code:
DB Error, could not list tables MySQL Error: Access denied for user ''@'localhost' (using password: NO)
The password is correct, i also tried da_admin + password for mysql which works fine, yet i can't create a backup (which would be quite handy atm).
I don't need emails and such, it's mostly a personal server and i only host a few sites for friends and my own of course.
So basically what i need are the databases and domains, well, i guess i could also create domains and subdomains manually.
 
Back
Top