Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[solved]how to add mysql to php5 connectivity issues
Hi,
I have php5, mysql5, and apache2 installed on Suse 10 and need to figure out how to get the mysql extension into whatever file I need it entered into in php5 so that I can access mysql with php.
My php.info page does not show any mysql support in the text so that means that I have to add it. I have been looking for a week now at every forum I can think of and found that adding "--with mysql=Path/to/mysql"
I can't find anything about where to add it or to what file to add it to.
Can anyone tell me where I need to put mysql support info for PHP. I mean, do I need to put it in some php file or a apache file or what??
Distribution: Slackware, Mandriva, and Fedora when I must
Posts: 27
Rep:
You either need to recompile PHP or find a precompiled binary somewhere that has MySQL support compiled in. The "--with-mysql=path" bit is an argument to the ./configure command when recompiling PHP. (Small note, if you do recompile PHP make sure to add "--with-apxs=pathtoapxs", too.)
Distribution: Slackware, Mandriva, and Fedora when I must
Posts: 27
Rep:
Unfortunately, recompilation is the only way. I find it easiest to compile PHP and Apache myself, and use the binary off MySQL's official site, because of things like this, though there shouldn't be anything wrong with using the Apache and MySQL packages for your distro unless they're outdated or something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.