LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-30-2012, 06:46 PM   #1
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 257

Rep: Reputation: 31
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
 
Old 01-30-2012, 07:04 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,694

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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
 
Old 01-31-2012, 09:38 AM   #3
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 257

Original Poster
Rep: Reputation: 31
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.
 
Old 01-31-2012, 04:08 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,694

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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 .

Last edited by John VV; 01-31-2012 at 04:12 PM.
 
Old 01-31-2012, 04:56 PM   #5
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 257

Original Poster
Rep: Reputation: 31
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
 
Old 01-31-2012, 05:48 PM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 12,694

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to find out primary interface on RHEL Linux linux_user2011 Linux - Newbie 3 04-15-2011 12:24 AM
Dynamic IP Address on Virtual Interface in RHEL-5 saraswat Linux - Networking 5 11-04-2009 07:32 AM
Standby Ethernet Interface in RHEL cluster aix_tiger Linux - Enterprise 5 05-08-2007 03:11 PM
user interface in RHEL 4 somsahi Linux - Software 5 09-11-2006 03:52 PM
Mediawiki issue with php and mysql Skip-DMP Linux - Software 3 08-03-2006 02:33 PM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration