LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2011, 05:34 PM   #1
Dizieze
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
Unhappy Using PHP with MySQL


I am trying to migrate a Mediawiki from one server to another. And apparently part of this process is to get PHP to work with MySQL. Everywhere I look for help it says something along the lines of:

"For the MySQL functions to be available, you must compile PHP with MySQL support.

For compiling, use --with-mysql=DIR (the optional DIR points to the MySQL directory)."

But I have no idea what this means or how I perform this. Any help?
 
Old 10-26-2011, 06:27 PM   #2
Toggan
Member
 
Registered: Oct 2011
Distribution: CentOS 5.9
Posts: 39

Rep: Reputation: 6
Based on your question, I'm going to go out on a limb here and assume you purchased hosting instead of running your own in house server. Since most companies set you up with an entire LAMP (Linux, Apache, MySQL, PHP) stack when you purchase it, you may not need to do anything.

The first thing I would do is upload a php info script. This will tell you if PHP is already configured to have MySQL support. If this is the case, there's no sense in reinventing the wheel.

You can do this with something as simple as:

Code:
<?php

phpinfo();

?>
 
Old 10-27-2011, 08:45 AM   #3
Dizieze
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Na, its my server I installed LAMP myself; I just don't know anything about PHP and I'm kind of on a time crunch to get everything migrated to this server, including our mediawiki.
 
Old 10-27-2011, 11:25 AM   #4
Dizieze
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
I still don't know a whole lot about PHP, BUT I figured out my problem!
I uninstalled these two: php-mysql php-gd and re installed them. Restarted Apache and I'm good to go... =)
 
  


Reply



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
GameCP, MySQL, PHP Connect PHP to MySQL? armsman Linux - Software 1 09-15-2011 10:22 AM
PHP 5.1.6 & MySQL 5.0.34 connectivity test, php-mysql & libmysqlclient_15 kapshure Linux - Newbie 1 08-05-2010 07:11 PM
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 08:54 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration