First of all, Mediawiki 1.25 is out of date and has publically known security vulnerabilities. You should upgrade.
For the error, I would start by checking $wgDBServer. If your db is on the same host as mediawiki and commandline is working, it could be something like using network vs local socket. If 'localhost' is not working try '127.0.0.1' instead (or vice versa)
Beyond that, I would look into if there is anything preventing mediawiki from talking to the db (e.g. firewall, selinux, etc)
-- bawolff
On Friday, November 17, 2017, Daryl Rose rosede12@gmail.com wrote:
Hello,
I just moved an existing environment from a SLES 11 SP4 xampp/Bitnami installation to a CentOS 7.4, Apache, MySQL, PHP environment. There were security issues with the original installation, so I had to move to something that I could upgrade components when as vulnerabilities are discovered.
According to the documentation, I should be able to export/import the database and then copy over the MediaWiki directory, and all should me good. Well, there are a couple of minor gotcha's in the doc's, but for the most part, it's pretty straight forward.
I had a few minor issues with the php, but once I got that figured out, I now get a page that tells me that the site is experiencing technical difficulties (Cannot access the database).
I've verified that the database name, user name and password are correct. From the command line, I can access the database using the database user and I can see the tables.
I'm not a DBA or a developer, so I'm not sure where to start troubleshooting. Other than verifying that the credentials are correct.
The original installation was PHP v5.6.12 and the new installation is PHP v5.6.32. Other than that, I believe everything else is the same. MediaWiki is V1.25.
Any suggestions on where to start looking?
Thanks
Daryl _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l