Re-Installing Direct Admin

jamesthoms

Verified User
Joined
Nov 11, 2003
Messages
19
I may have screwed up some of my system files when I was messing around with my /var/ directory...

Question:
If I do a reinstallation of directadmin, will this wipe out or damage any user accounts I already have set up on the system. I'm using FreeBSD if that makes a difference...

Or - Instead or reinstalling is there a way to force an upgrade of direct admin to see if that fixes the problems. I'm running the latest version so it will not let me upgrade.

Thanks.

James Thoms
 
Why reinstall DA?

What do you mean by "I may have screwed up some of my system files when I was messing around with my /var/ directory..."?

Chris
 
/var/

I accidently deleted all the files in my /var/ directory...
don't ask how... I was running on very little sleep...

I was able to look at another FreeBSD box running directadmin and re-create the directory structures along with most of the files...

There are times when I restart mysqld or named direct admin hangs... it does restart it but it seems like somethings not right...
This did not happen before I cleared out my var directory...
I assumed it had something to do with a missing file to keep track of process id's or somthing...

In any case my original question still stands:
If I re-install direct admin, will it overwrite my current users directories or data.
 
DA doesn't seem to affect the root directory at all; when I added it to a server with several usernames, it left them alone.

I have no idea what it does to any other files, though; I'd ask tech support if I were you.

Jeff
 
jamesthoms said:


Or - Instead or reinstalling is there a way to force an upgrade of direct admin to see if that fixes the problems. I'm running the latest version so it will not let me upgrade.

Thanks.

James Thoms

i''m insterested in knowing if there's a way to do an update of DA? I love the new skin but my old server is still running the older version of DA.
 
Hello,

To update DA: Admin Panel -> Licensing / Updates -> click "update". Or: http://help.directadmin.com/item.php?id=29


re-installing DA:
If you rerun the setup.sh .. the are 2 things you need to be careful of.

1) mysql
2) the main /etc/httpd/conf/httpd.conf

To get around the httpd.conf problem, just make a backup and then restore it when you're done.

For mysql... it will ask you to delete the directory, you'll want to say "n" ..(no!) or else everything will be wiped out. But.. if you select no, the mysql da_admin password will change in the mysql.conf for da, but the actual database password wont, thus preventing anyone from accessing the mysql features. To get around the, make a backup of /usr/local/directadmin/conf/mysql.conf and restore it after.

Generally, it's easier and safer to just fix the problem in place instead of reinstalling everthing. A lot of the install settings rely on certain defaults to exist If you've wiped the defaults, a reinstall might not work.

John
 
DirectAdmin Support said:
re-installing DA:
If you rerun the setup.sh .. the are 2 things you need to be careful of.

1) mysql
2) the main /etc/httpd/conf/httpd.conf
I think you also have to save the proftpd.conf file as well.

Jeff
 
Hello,

To update DA: Admin Panel -> Licensing / Updates -> click "update". Or: http://help.directadmin.com/item.php?id=29


re-installing DA:
If you rerun the setup.sh .. the are 2 things you need to be careful of.

1) mysql
2) the main /etc/httpd/conf/httpd.conf

To get around the httpd.conf problem, just make a backup and then restore it when you're done.

For mysql... it will ask you to delete the directory, you'll want to say "n" ..(no!) or else everything will be wiped out. But.. if you select no, the mysql da_admin password will change in the mysql.conf for da, but the actual database password wont, thus preventing anyone from accessing the mysql features. To get around the, make a backup of /usr/local/directadmin/conf/mysql.conf and restore it after.

Generally, it's easier and safer to just fix the problem in place instead of reinstalling everthing. A lot of the install settings rely on certain defaults to exist If you've wiped the defaults, a reinstall might not work.

John
hello, experts, I am new to DirectAdmin I just installed DA a few days ago and I don't have any data and website, etc.
when I try to access PHPMyAdmin then I face the error "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"

then my Mariadb server stopped working and I try to reinstall it but I got an error...

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
FATAL ERROR: Upgrade failed
/usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
Restarting MySQL.
Job for mariadb.service failed because the control process exited with an error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.

sorry for my weak English and kindly help me ill be very thankful to you.
regards Zeeshan.
 

Attachments

  • error-mariadb.jpg
    error-mariadb.jpg
    245.1 KB · Views: 20
  • mariadberro2.jpg
    mariadberro2.jpg
    598.4 KB · Views: 19
  • sql-error.jpg
    sql-error.jpg
    27.5 KB · Views: 15
  • etc-cnf-file.jpg
    etc-cnf-file.jpg
    25.3 KB · Views: 18
Back
Top