LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble with loading MySQL module on Apache (https://www.linuxquestions.org/questions/linux-software-2/trouble-with-loading-mysql-module-on-apache-197704/)

vladimir-dk 06-25-2004 02:45 PM

Trouble with loading MySQL module on Apache
 
Im having trouble loading the MySQL module with my Apache server, these are the modules I have loadet.

mod_php4, mod_setenvif, mod_unique_id, mod_expires, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_cgi, mod_dir, mod_autoindex, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_config, mod_macro, mod_so, http_core

I have installed it with
apt-get install php4-mysql

plz help anyone...

andrewlkho 06-25-2004 02:47 PM

What's the problem? MySQL is nothing to do with apache, you just need to make sure that PHP knows where MySQL is. Does your MySQL work? What happens when you try to use PHP to connect?

vladimir-dk 06-25-2004 03:04 PM

I have a coppermine gallery and I'm using and extern MySQL database at another server. My PHP works fine (PHP Version 4.3.4) But my index.php only show a blank page and last time when I was running Fedora Core 1 as OS it worked when the MySQL module was loaded


This is where i downloaded it: http://coppermine.sourceforge.net/

It has worked fine on the server when i was running PHP3 - I think it was :/

Qzukk 06-25-2004 10:13 PM

Check whatever php script you're using and remove all the @ from before the mysql commands. This will make it tell you whatever error its getting instead of just giving you a blank page.

If you've just installed this, you probably either need to edit your php.ini file to load the mysql module, or you need to load it manually at the top of your scripts with the dl() function. This is the problem if you get unknown function errors after un-hiding the errors.


All times are GMT -5. The time now is 05:48 AM.