I think this is setup very wrong. Applications installed in /opt
-
I have been looking at upgrading one of our internal wiki sites. I did this awhile ago with another one, but this one here is confusing.
Server is Centos 6.9 running mediawiki 1.19(old, why i am upgrading). Too bad you cant do dist-upgrade in Centos.
Anyway, newer versions of mediawiki require php 5.5 and mysql 5.0.3 or higher.
I installed remi-repo, updated php to 5.6.
I then look to see what version mysql is.
Cant do it from #
find / -name mysqld
mysqld shows up in/opt/mediawiki-1.19.1-0/mysql/bin/mysqld
Why is this?
This cant be the default MW install configuration can it?
Cant update mysqld because it doesnt show as installed, probably due to it being in /opt/
How do i update it?
Why would someone have done this? -
Wait, MySQL is INSIDE the MediaWiki location? WTF
-
Yes. And now that i look php is installed there as well. In addition to being in its regular place.
-
What command did you use to install MySQL?
-
@scottalanmiller I didnt do this. this server has existed since 2012
-
@momurda said in I think this is setup very wrong. Applications installed in /opt:
@scottalanmiller I didnt do this. this server has existed since 2012
OH. Someone did something crazy They didn't use the OS to install and manage the database.
-
If this was mine, I'd build a new Fedora 26 server, do everything modern and just move the data over.
-
@scottalanmiller That is the position i want to take.
What would i need to do to get all the existing MW data and put it in a newer MW server? Just tar up the data folder and untar in new MW server? That seems too easy.
-
@momurda said in I think this is setup very wrong. Applications installed in /opt:
@scottalanmiller That is the position i want to take.
What would i need to do to get all the existing MW data and put it in a newer MW server? Just tar up the data folder and untar in new MW server? That seems too easy.
You'll want to export and import. But yeah, that's about it. MW is not complicated in any specific way. I do this with WP all the time. It's really that easy.