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:
../configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php4/apache2' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-exec-dir=/usr/lib/php4/libexec' '--without-mm' '--without-mysql' '--without-sybase-ct' 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. |
|
Hello.
Code:
./configure --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sockets Code:
./configure --help |
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?
|
Quote:
Code:
>$ apt-cache show php4-mysql |
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.
|
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.
|
I'm having the very same problem. I've installed at least the following packages with apt-get:
apache2 mysql-server-4.1 php4 libapache2-mod-php4 php4-mysql It must be something very simple. Any ideas? |
This is solved now. It turned out that I had edited the php.ini for apache, while it should've been php.ini for apache2.
|
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. Can anyone help me. |
All times are GMT -5. The time now is 03:46 AM. |