Current time: 12-23-2024, 10:55 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Changed MySQL root password and can't update ispcp
Author Message
sintax Offline


Posts: 4
Joined: Nov 2009
Reputation: 0
Post: #1
[SOLVED] Changed MySQL root password and can't update ispcp
Hi,

I needed to change the MySQL root password due to a hack attempt. After this I tried updating ISPCP and it gives an error:
Update ispCP database schema: [failed]

How can I tell ISPCP what the new root password is WITHOUT having to reinstall ISPCP and all my domains??

Thanks,
Sintax
(This post was last modified: 03-09-2010 10:21 AM by gOOvER.)
03-09-2010 10:05 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: Changed MySQL root password and can't update ispcp
http://www.isp-control.net/documentation...ge_db_pass

For the Future: First take a look into teh Docu, then Open a Thread Wink
03-09-2010 10:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sintax Offline


Posts: 4
Joined: Nov 2009
Reputation: 0
Post: #3
RE: Changed MySQL root password and can't update ispcp
(03-09-2010 10:21 AM)gOOvER Wrote:  http://www.isp-control.net/documentation...ge_db_pass

For the Future: First take a look into teh Docu, then Open a Thread Wink

Here's my problem:
I had to change the root password for mysql AND then started the update process to 1.0.4. During this the updater complained about the database not being updatable. SO I followed the doc to reset the pass:
edited the /etc/ispcp/ispcp.conf by removing the DATABASE_PASSWORD = contents. Then ran the ispcp-db-passwd. Set it to the actual root password.

Then I checked the conf file and it updated with the proper pass.

Now here's the weird thing:
After this I ran the ispcp-updater again and it STILL complained about the password AND the /etc/ispcp/ispcp.conf REVERTED the DATABASE_PASSWORD to the old HASH.

The services were stopped before this started. It looks like it is STILL remembering the old pass and replacing it during the update. Is there any other place the old pass might've been stored? I also updated /tmp/ispcp/etc/ispcp/ispcp.conf but no luck.

Getting:
Stopping Services:......... [done]

ispCP main configuration file
Loading old ispCP configuration file: [done]
Update ispCP configuration file: [done]
Check ispCP configuration file: [done]

ispCP database
Update ispCP database schema: [failed]


FATAL: An error was occured during update process!
Correct it and re-run this program.

You can find help at http://isp-control.net/forum

Any ideas?
(This post was last modified: 03-09-2010 10:59 AM by sintax.)
03-09-2010 10:47 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: [SOLVED] Changed MySQL root password and can't update ispcp
As the update process regenerates your /etc/ispcp/ispcp.conf file, it is moved to /etc/ispcp/ispcp.old.conf first, and the update process uses this one instead. Therefore, you just have to follow the change password procedure again, and then *manually* replace the "hash" (it's not a hash, but your password encrypted) in /etc/ispcp/ispcp.old.conf with the one that has been put in /etc/ispcp/ispcp.conf by the password changer. Then re-reun ispcp-update and everything will be ok.
03-09-2010 07:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)