SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Firstly, my system consists of
Slack 10
Apache 2.0.50
Mysql 4.0.20
php-apache2 4.3.8 (from linuxpackages.net)
Everything used to work on my system, untill i tried upgrading to php 5, then downgrading back to php 4.3.8., where mysql doesn't want to work anymore from php. (eg, phpbb). After checking around, i noticed mysql is not showing in phpinfo() (see for yourself if you want at http://xushi.co.uk/test.php ).
After reading some of the threads in LQ (especially the ones which tell of the difference between php4 and php5) it just confused me a bit more... Does anyone know how to just allow apache<>php to interact with mysql again? or to load the mysql module once more?
On a side note, someone suggested to revert back to apache 1.3, because 2 is still experimental, or something like that... Do you all recommend to roll back, or to stick to the current versions i have?
Frankly, I would recommend you to use mysql, php, apache from official slackware packages, they are stable and can be used in a production environment.
Specially for servers, I always use official packages for my part and I installed one time Apache 2 proprely, compiling it myself with good options, and I noticed no additional performances so I use Apache 1.3 from official package for now.
Mysql is installed and running, if i
ps -ef, its there (10 of them)
00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/xushi.pid --skip-locking --port=3306 --socket=/tmp/mysql.sock
as well as
00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/xushi.pid
I don't know what i'm missing.. but it seems like its something small and very irritating. Any help is appreciated.
Just wanted to add something I discovered the last days which is a quite similar problem.
I had a fresh install of Slackware 10 with precompiled Apache 1.3.31 and PHP 4.3.7 (added those packages during installation). I dowloaded the MySQL binaries and started Apache and the MySQL server. The settings xushi postet were set exactly that way. Even though phpinfo() doesn't show MySQL. The problem was that the precompiled PHP used static libraries while the MySQL binaries used dynamic ones. The solution was to download the MySQL sources, ./configure with --enable-shared and compile. Works great then...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.