473,320 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Building PHP with mysql support on CentOS

Can someone please help me build php with mysql support on CentOS. Have
installed MySql and that works okay. I have downloaded the latest version of
php and tried to build it but I keep getting errors about missing function
mysql_connect(). This appears to be caused by not having extensions=mysql in
the php.ini file. However when I build php it does not make a mysql.so file,
where does this come from? I have tried using the configure --with-mysql but
it still does not generate it. I have managed to get it from another
distribution but it does not work correctly due to incorrect versions of
shared libraries.
How do you build the mysql.so file?

Thanks

Jon
Mar 13 '06 #1
3 2668
John Smith wrote:
Can someone please help me build php with mysql support on CentOS. Have
installed MySql and that works okay. I have downloaded the latest version of
php and tried to build it but I keep getting errors about missing function
mysql_connect(). This appears to be caused by not having extensions=mysql in
the php.ini file. However when I build php it does not make a mysql.so file,
where does this come from? I have tried using the configure --with-mysql but
it still does not generate it. I have managed to get it from another
distribution but it does not work correctly due to incorrect versions of
shared libraries.
How do you build the mysql.so file?

Thanks

Jon


Disclaimer: I use Fedora Core 4

With Fedora, the --with-mysql (or --with-mysqli) needs to point to the
mysql_config program (typically in the bin directory of mysql).
So, my directive is:
--with-mysqli=/opt/local/mysql/bin/mysql_config

-david-

Mar 13 '06 #2
Thanks for this, i have tried this with the same outcome, we seem to be
missing mysql.so

Thanks

Jon
"David Haynes" <da***********@sympatico.ca> wrote in message
news:iI*******************@fe13.usenetserver.com.. .
John Smith wrote:
Can someone please help me build php with mysql support on CentOS. Have
installed MySql and that works okay. I have downloaded the latest version
of php and tried to build it but I keep getting errors about missing
function mysql_connect(). This appears to be caused by not having
extensions=mysql in the php.ini file. However when I build php it does
not make a mysql.so file, where does this come from? I have tried using
the configure --with-mysql but it still does not generate it. I have
managed to get it from another distribution but it does not work
correctly due to incorrect versions of shared libraries.
How do you build the mysql.so file?

Thanks

Jon


Disclaimer: I use Fedora Core 4

With Fedora, the --with-mysql (or --with-mysqli) needs to point to the
mysql_config program (typically in the bin directory of mysql).
So, my directive is:
--with-mysqli=/opt/local/mysql/bin/mysql_config

-david-

Mar 13 '06 #3
John Smith wrote:
Thanks for this, i have tried this with the same outcome, we seem to be
missing mysql.so


Are you using a pre-packaged mysql or one you have built yourself?
If you are building it yourself, you should find the libraries in lib/mysql/

-david-

Mar 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard Petty | last post by:
Today I began preparations for upgrading MySQL. I downloaded the binary RPMs for Red Hat Enterprise 4 (we're running CentOS, a clone) for MySQL 5.0.13 from the MySQL AB web site. Running a test, I...
0
by: Darrell D. Mobley | last post by:
I am working on setting up a new server. It is running PHP v4.4.1, CentOS 4.3 i686 - WHM X v3.1.0, Cpanel WHM 10.8.0 cPanel 10.8.2-R83, MySQL 4.1.18-standard, Apache 1.3.34 (Unix), Kernel...
1
by: edfialk | last post by:
Hi all, I'm desperately trying to get a simple mysql connection working in php 4.3.9 and I think I have a doozy for you guys. First of all, I didn't set up ANY of this system, I'm just working...
3
by: drblitzkrieg | last post by:
Hi, A bit of a newbie as far as mysql and php adminning I am; I upgraded php to version 4.4.6, and mysql to 4.1.22, following the instructions in the "INSTALL" files of each (I also have the...
3
by: brock797 | last post by:
hey im just starting to learn php and mysql, i am using CentOS 5 and have all the neccisary programs compiled correctly (apache, php, mysql, etc) i can use mysql from the command line with no flaws,...
1
by: mdburton | last post by:
Right now I am in a VPS server, mysql constantly will run at 18% usage and slows the site down. I was wondering what you guys think about a INTEL P4 3.0GHz HT 1024MB DDR RAM 120GB...
3
by: Alexandre Gillet | last post by:
Hi, I am trying to build python-2.4.5 on Centos 5.1, which is a virtual machine running with xen. I am not able to build python. The compilation crash with the following: gcc -pthread -c ...
0
by: Alexandre Gillet | last post by:
Thanks for your answers. I did solve my problem. I upgraded my glibc libraries and it seems to solve the problem. I was able to build python-2.4.5 using gcc 4.1.2 (glibc-2.5-18.el5_1.1) Alex ...
3
by: Gordon | last post by:
Has anybody had any success compiling a PHP build for Leopard, specifically for Leopard running on a 64 bit Intel architecture? I have been using the Entropy builds up to now but there has been a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.