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.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,327
Rep:
debian php installs without mysql
I installed debian and selected the webserver option. The problem is that php is installed without mysql. I installed mysql but it did not reconfigure php with mysql. In phpinfo() it shows this configure string:
How can I reinstall it but change the --without-mysql part to with-mysql? I can't seem to find anything with this in the documentation. It simply states that everything should be working and all I have left to do is set the root password. But that's not the case since mysql_connect() and other sql functions are not even reconized.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,327
Original Poster
Rep:
How do I do that with apt-get? And if I install the php4-mysql package will it conflict with the current php4-common one? or will it automaticly just reconfigure it?
Originally posted by Red Squirrel How do I do that with apt-get? And if I install the php4-mysql package will it conflict with the current php4-common one? or will it automaticly just reconfigure it?
It should be automatically configured and the package depends on php4-common being installed so there will be no conflict.
Code:
>$ apt-cache show php4-mysql
Package: php4-mysql
Priority: optional
Section: web
Installed-Size: 76
Maintainer: Adam Conrad <adconrad@0c3.net>
Architecture: i386
Source: php4
Version: 4:4.3.10-13
Replaces: php4-cgi-mysql
Depends: libc6 (>= 2.3.2.ds1-21), libmysqlclient12, debconf (>= 0.5) | debconf-2.0, phpapi-20020918, php4-common (= 4:4.3.10-13)
Filename: pool/main/p/php4/php4-mysql_4.3.10-13_i386.deb
Size: 21280
MD5sum: d72955d515598a1d6e313d749c2058de
Description: MySQL module for php4
This package provides a module for MySQL database connections directly from
PHP scripts.
.
PHP4 is an HTML-embedded scripting language. Much of its syntax is borrowed
from C, Java and Perl with a couple of unique PHP-specific features thrown
in. The goal of the language is to allow web developers to write
dynamically generated pages quickly.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,327
Original Poster
Rep:
Turns out I had to reboot and everything works now! I usually don't forget that part, having worked with windows for so long. You plug in a different mouse and have to restart lol.
linux is quite different from Windows. You do not need to reboot at all, except you install new kernel. Simply restart some services and that is all you need to be happy with your new soft.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,327
Original Poster
Rep:
Yeah that's what I figured but for php it must of been different, since I was restarting apache and it was not working. Unless I had to restart mysql too. Either way it works now so that's good. Moving on to email, which is the harder part.
Same problem here, I also installed the php4-mysql but after that mysql still doesn't work.
Also reinstalled everything several times. but still no luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.