LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mediawiki - interface to MySQL on RHEL 5.4 (https://www.linuxquestions.org/questions/linux-software-2/mediawiki-interface-to-mysql-on-rhel-5-4-a-926606/)

thllgo 01-30-2012 06:46 PM

Mediawiki - interface to MySQL on RHEL 5.4
 
Do I have to install MySQL from scratch to make it work with Mediawiki on RHEL 5.4?

I have installed MySQL from a RH rpm. It works just fine. I have installed Apache and PHP. I copied the mediawiki files to /usr/local/apache2/htdocs/mediawiki. I run the index.php and when it gets to connect to the database it does not see MySQL. It sees SQLite, but no MySQL. Can I make mediawiki see my installation of MySQL? I'm guessing the files from a manual install of MySQL are in a different place. I even tried to make a link from /usr/share/mysql to /usr/local/mysql, still the mediawiki install does not see it.

Thank you

John VV 01-30-2012 07:04 PM

you are paying for red hat support and for access to RHN repo

use yum to install mysql

the entire LAMP stack is in the RHEL base repo

Now I ( my personal view ) recommend building everything from source for the first 12 or so installs
That way YOU LEARN how to set it up and configure everything


however everthing is in the repos

Quote:

I have installed MySQL from a RH rpm
is PhpMyAdmin also installed ? ( a gui front end to mysql)

did you set up the root password ?
That is change the defaults from
user= root
password = password
did you set up the database to use mediawiki

and last but not least did you search the red hat knowledge base
https://www.redhat.com/wapps/sso/log...owledgebase/en

thllgo 01-31-2012 09:38 AM

Yes I do have RH support. I was able to obtain the RH MySQL rpms and install them. MySQL works quite well and yes I have set the root password. No I can't use yum because the systems are all Gov't systems on a closed network. I have done all the steps in the mediawiki documentation on setting up MySQL. The problem is that mediawiki does not even recognize that MySQL is on the system. I'm guessing mediawiki is looking for MySQL in an area that MySQL would occupy if it were installed from scratch rather than where the RH rpms put it. In the documentation I've read, if I were to install MySQL from scratch it would install to /usr/local. The RH rpm did not install it to /usr/local but to /usr/share. My guess is that mediawiki is only looking is specific locations where it thinks MySQL should be and is not looking in /usr/share.

I was hoping that this can be fixed by setting up some environment variable for mediawiki that would tell it where MySQL is.

No PhpMyAdmin is not installed. I've been configuring MySQL via the CL according to the documentation on the mediawiki website.

John VV 01-31-2012 04:08 PM

how did you install PHP
rhel5.4 is a bit old ( the current rhel5 is rhel5.7
and the php & php-mysql installed in 5 and last updated for 5.7 is php-5.1.6-27.el5_7.4.i386.rpm
and "php-mysql-5.1.6-27.el5_7.4.i386.rpm"
the MediaWiki install docs state to use 5.2.3 or newer except for "PHP 5.3.1 is incompatible with MediaWiki due to a bug."

http://www.mediawiki.org/wiki/Installation

Quote:

I'm guessing mediawiki is looking for MySQL in an area that MySQL would occupy if it were installed from scratch
no i am guessing apache is not set up for php5 and not connecting to mysql

are the document roots all set ?

Quote:

/usr/local/apache2/htdocs/
seeing as this is NOT the default location you MUST set everything

the folder location for " apache2" is normally /var/www/apache
with musql & php in the standard " /usr " install location



you might want to build from scratch EVERYTHING
or use yum and "localinstall" to install the rhn rpm's you download and transfer to this machine

off line installing of a Server stack is a VERY BIG pain in the " ??? "
and is very difficult .

thllgo 01-31-2012 04:56 PM

I installed PHP manually. I downloaded it from their website, compiled, and did a configure; make; make test; then make install. I notice that when I start the mediawiki config it does an environmental check and says that PHP 5.3.9 is installed. At the end of the environment check it says "The environment has been checked. You can install MediaWiki"

I just found a document that may be my problem. While Apache and Mediawiki seem to like my PHP I do not remember compiling PHP with the option "--with-mysql=[DIR]" and after 5.2 MySQL is no longer enabled by default and the client libraries are no longer bundled.

I will do a recompile of PHP and see what happens.

Thank you

John VV 01-31-2012 05:48 PM

with installing it off line you might want to think of this project like a class

read , reread, and re-reread the documentation
Take notes
Write an "install outline"
and a point by point procedure

then the install and the wiki IS The Final Exam and it is a pass/fail a 4.0 or a 1.0


All times are GMT -5. The time now is 10:47 AM.