Aussie1956
New member
- Joined
- Jul 16, 2005
- Messages
- 2
In the administrator settings is a check box
"Use the automatic updator to automatically get the lastest version of DirectAdmin."
does this work ?
this is what happened to me this week...
My server using DA crashed on Monday and I am still working on getting things back... today is Saturday
The box was setup in December last year
on Monday the hosting company claimed
A) SERVER WAS HACKED ??
B) They put in a new HDD... then the next day a new motherboard...... why hmmmm?
C) loaded DA but they claim the ONLY version of DA they could load was the latest version
not the version that was previously installed
D) the two versions of DA were incompatible and that I could not just copy the files from the old HDD
(we copied the files last year when a HDD failed, we had previously found a list of files to copy in these forums )
I am goint to put a detailed list here of what I did in case there is someone else pulling their hair out
Luckily ony about 25 users on the server and I had to do the following:
More than likely there is better way around this.....
1) create all users in DA
2) find and copy the users DATA files on the old HDD to the new drive
Replace USER and DOMAIN-NAME in the following with the correct info
using ssh ----> go to root directory
cd /
cp -vpr oldrive/home/USER/domains/DOMAIN-NAME/* home/USER/domains/DOMAIN-NAME
3) had to change ownership for all the files that were copied as the old HDD had the owners all mixed up...... very weird?
chown USER:USER /home/USER/domains/DOMAIN-NAME/public_html
chown USER:USER /home/USER/domains/DOMAIN-NAME/public_html/*
4) create any Mysql databases using DA
5) copy user databases to the new HDD
for each database
DO NOT just copy all the directories straight from the mysql folder
cp -vpr oldrive/var/lib/mysql/DOMAIN-NAME/*.* var/lib/mysql/DOMAIN-NAME
chown mysql:mysql - R var/lib/mysql/DOMAIN-NAME/*
(the copy comand had the owners as root)
5) Convert some of the database files from Isam to Myisam
using..... phpmyadmin as this version only supports myisam tables?
did this for every table within a query window in phpmyadmin
ALTER TABLE table_name TYPE=MyISAM ;
NOTE... after 4 hours I could not get the script to work mysql_convert_table_format
it was easier (10 minutes)
a) copy a list of tablesnames to clipboard from phpmyadmin
b) paste that to a excel speadsheet column
c) copy and paste ALTER TABLE to the column before the table names column
d) copy and paste TYPE=MyISAM ; to the column after the table names
e) saved as a text file
this way I could produce a text file to paste into the query box in phpmyadmin
ALTER TABLE table_name1 TYPE=MyISAM ;
ALTER TABLE table_name2 TYPE=MyISAM ;
ALTER TABLE table_name3 TYPE=MyISAM ;
and so on .............
6) create any POP accounts
don't bother copying the files in olddrive/var/spool/virtual
it didn't work correctly we could see the old mail but not send and recieve
7) install SSL certificates
8) kick myself about 120 times
Moral of this woeful tale
MAKE SURE Direct admin is updated
don't just assume it is...
of course you will probably tell me that the versions of DA are compatible and my hosting company was full of you know what
or there is a tool to do all this crap
BUT I did learn alot
cheeers
"Use the automatic updator to automatically get the lastest version of DirectAdmin."
does this work ?
this is what happened to me this week...
My server using DA crashed on Monday and I am still working on getting things back... today is Saturday
The box was setup in December last year
on Monday the hosting company claimed
A) SERVER WAS HACKED ??
B) They put in a new HDD... then the next day a new motherboard...... why hmmmm?
C) loaded DA but they claim the ONLY version of DA they could load was the latest version
not the version that was previously installed
D) the two versions of DA were incompatible and that I could not just copy the files from the old HDD
(we copied the files last year when a HDD failed, we had previously found a list of files to copy in these forums )
I am goint to put a detailed list here of what I did in case there is someone else pulling their hair out
Luckily ony about 25 users on the server and I had to do the following:
More than likely there is better way around this.....
1) create all users in DA
2) find and copy the users DATA files on the old HDD to the new drive
Replace USER and DOMAIN-NAME in the following with the correct info
using ssh ----> go to root directory
cd /
cp -vpr oldrive/home/USER/domains/DOMAIN-NAME/* home/USER/domains/DOMAIN-NAME
3) had to change ownership for all the files that were copied as the old HDD had the owners all mixed up...... very weird?
chown USER:USER /home/USER/domains/DOMAIN-NAME/public_html
chown USER:USER /home/USER/domains/DOMAIN-NAME/public_html/*
4) create any Mysql databases using DA
5) copy user databases to the new HDD
for each database
DO NOT just copy all the directories straight from the mysql folder
cp -vpr oldrive/var/lib/mysql/DOMAIN-NAME/*.* var/lib/mysql/DOMAIN-NAME
chown mysql:mysql - R var/lib/mysql/DOMAIN-NAME/*
(the copy comand had the owners as root)
5) Convert some of the database files from Isam to Myisam
using..... phpmyadmin as this version only supports myisam tables?
did this for every table within a query window in phpmyadmin
ALTER TABLE table_name TYPE=MyISAM ;
NOTE... after 4 hours I could not get the script to work mysql_convert_table_format
it was easier (10 minutes)
a) copy a list of tablesnames to clipboard from phpmyadmin
b) paste that to a excel speadsheet column
c) copy and paste ALTER TABLE to the column before the table names column
d) copy and paste TYPE=MyISAM ; to the column after the table names
e) saved as a text file
this way I could produce a text file to paste into the query box in phpmyadmin
ALTER TABLE table_name1 TYPE=MyISAM ;
ALTER TABLE table_name2 TYPE=MyISAM ;
ALTER TABLE table_name3 TYPE=MyISAM ;
and so on .............
6) create any POP accounts
don't bother copying the files in olddrive/var/spool/virtual
it didn't work correctly we could see the old mail but not send and recieve
7) install SSL certificates
8) kick myself about 120 times
Moral of this woeful tale
MAKE SURE Direct admin is updated
don't just assume it is...
of course you will probably tell me that the versions of DA are compatible and my hosting company was full of you know what
or there is a tool to do all this crap
BUT I did learn alot
cheeers