Another_Omeka_User
Basic Pleskian
Hi, I have checked the forums and posted to Twitter, but no luck yet.
I am the main admin for a VPS with CentOS 7 + Plesk 12.5. So far, it's still very much out of the box, I haven't made too many modifications. We have one domain on there right now that I'm trying to set up. I exported the old server's database contents via phpMyAdmin and reimported with no errors into the current one. I uploaded the old files into the new directory.
It's a very standard Omeka installation (https://omeka.org/codex/Installation) and something I've installed numerous times on servers before. The php files connect to the database in the main directory via a very, very simple db.ini file that requires all I do is replace the database username and password. (I can provide a sample file if you need to see what I mean). So I created a new mysql user in phpMyAdmin, gave it a new password and global privileges (which is fine because it's the only site and I'm the only admin), and tried it out but no matter what I got the Access denied @ localhost error. So I logged in via ssh at command line, plesk db, and set the password directly via command line. (I also noticed that the phpMyAdmin encrypts the passwords funny so that it does not look the same as what I entered in phpMyAdmin.) Anyways, suddenly everything worked, no more access denied, and all the content I imported looked the same as the old server.
Everything fine, right? So it seemed, yes... for about a week or two. But now something happened -- maybe an update to the server? -- because it was working until this week and now it's not working again. I am getting the same 'access denied 'new_user'@'localhost' ' error as before. I logged in via command line and, sure enough, my password for that new user has been reset back to something different (not what I manually set it to before). And now nothing I do to reset the password seems to be working, even using that same script.
I'm very frustrated because I have never experienced this error on any of the other three servers I've run Omeka on before -- then again, I'm usually in charge of setting everything up myself through phpMyAdmin and mysql at command line and not going through a web panel like Plesk... there's something odd happening when I try to add a user. It simply won't connect that user to the database I need it to connect to.
Please help. Am I missing some crucial step or is there something wrong with the Plesk mysql password generator?
So what am I doing wrong? What do I need to do?
I am the main admin for a VPS with CentOS 7 + Plesk 12.5. So far, it's still very much out of the box, I haven't made too many modifications. We have one domain on there right now that I'm trying to set up. I exported the old server's database contents via phpMyAdmin and reimported with no errors into the current one. I uploaded the old files into the new directory.
It's a very standard Omeka installation (https://omeka.org/codex/Installation) and something I've installed numerous times on servers before. The php files connect to the database in the main directory via a very, very simple db.ini file that requires all I do is replace the database username and password. (I can provide a sample file if you need to see what I mean). So I created a new mysql user in phpMyAdmin, gave it a new password and global privileges (which is fine because it's the only site and I'm the only admin), and tried it out but no matter what I got the Access denied @ localhost error. So I logged in via ssh at command line, plesk db, and set the password directly via command line. (I also noticed that the phpMyAdmin encrypts the passwords funny so that it does not look the same as what I entered in phpMyAdmin.) Anyways, suddenly everything worked, no more access denied, and all the content I imported looked the same as the old server.
Everything fine, right? So it seemed, yes... for about a week or two. But now something happened -- maybe an update to the server? -- because it was working until this week and now it's not working again. I am getting the same 'access denied 'new_user'@'localhost' ' error as before. I logged in via command line and, sure enough, my password for that new user has been reset back to something different (not what I manually set it to before). And now nothing I do to reset the password seems to be working, even using that same script.
I'm very frustrated because I have never experienced this error on any of the other three servers I've run Omeka on before -- then again, I'm usually in charge of setting everything up myself through phpMyAdmin and mysql at command line and not going through a web panel like Plesk... there's something odd happening when I try to add a user. It simply won't connect that user to the database I need it to connect to.
Please help. Am I missing some crucial step or is there something wrong with the Plesk mysql password generator?
So what am I doing wrong? What do I need to do?