Mysql_connect PHPMyadmin

Questions & Problems about Installing or Upgrading Version 2 phpList
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Mysql_connect PHPMyadmin

Postby ricp » 11:49pm, Wed 14 Sep, 2005

Attempting to install and I get the following error:

Fatal Error: Mysql is not supported in your PHP, recompile and try again


However, I Installed PHPMyAdmin and is functioning properly.

TIA
ricp
phpList newbie
 
Posts: 1
Joined: 11:43pm, Wed 14 Sep, 2005

any resolution or reply?

Postby ubiquitous » 6:13pm, Sat 05 Nov, 2005

Hello. I am experiencing the same problem with the same error message:
"Fatal Error: Mysql is not supported in your PHP, recompile and try again."

Have you been able to resolve it?
ubiquitous
phpLister
 
Posts: 8
Joined: 11:42pm, Wed 06 Apr, 2005

Postby winged1 » 7:58pm, Sat 05 Nov, 2005

winged1
PL Geek
 
Posts: 110
Joined: 7:58pm, Mon 24 Jan, 2005

still get message, even though PHP and MySQL are working

Postby ubiquitous » 9:25pm, Thu 01 Dec, 2005

Thanks, for the link. I checked all that out, but unfortunately it has to be another issue. PHP and MySQL are working fine and taking to one another. I ahve PHPMyAdmin running on the domain just fine. Is there another reason I would get this message:
"Fatal Error: Mysql is not supported in your PHP, recompile and try again."

I'm stumped.

Thanks in advance to anyone who can help.
ubiquitous
phpLister
 
Posts: 8
Joined: 11:42pm, Wed 06 Apr, 2005

Same problem

Postby topramen » 5:45am, Thu 09 Nov, 2006

Hey folks,

I've set up phpmyadmin just fine. I checked through the command line that database phplistdb could be accessed by user phplist, and configured /var/www/lists/config/config.php with the database, username, and password. Yet, I'm getting the error:

Fatal Error: Mysql is not supported in your PHP, recompile and try again.

Any clues?
topramen
phpList newbie
 
Posts: 2
Joined: 5:42am, Thu 09 Nov, 2006

Solution found

Postby topramen » 5:55am, Thu 09 Nov, 2006

Hi folks,

I am using Ubuntu dapper, and this solved the problem:

apt-get install php5-mysqli

This may have been overkill, but at least one of the packages php5-mysqli depended on enabled php to access mysql from the command line, probably php5-cli

Good luck finding a similar solution in other distros.
topramen
phpList newbie
 
Posts: 2
Joined: 5:42am, Thu 09 Nov, 2006

Postby mathurin » 4:54pm, Fri 15 Jun, 2007

Hi,

I had the same problem when trying to send newsletter with the command-line (Ubuntu server 6.06, apache2, php5, phplist2.10.4)

In /etc/php5/apache2/php.ini :
extension=mysqli.so
extension=gd.so
extension=mysql.so
extension=mcrypt.so
extension=sqlite.so
extension=xsl.so

In /etc/php5/cli/php.ini :
extension=mcrypt.so
extension=sqlite.so
extension=xsl.so

Adding the missing extensions for the cli solved the problem.
mathurin
phpList newbie
 
Posts: 1
Joined: 4:47pm, Fri 15 Jun, 2007

Similar Problem with PHP and MySql

Postby highoctane » 4:47pm, Fri 05 Oct, 2007

I have a similar problem...

It is setup like this:

Ubuntu Feisty Fawn
Ubuntu LAMP server installed from synaptic package
phpMyAdmin installed and working
phplist installed - getting the error "Fatal Error: Mysql is not supported in your PHP, recompile and try again."


What should I try? When I navigate to http://localhost/lists/admin I get the error "Fatal Error: Mysql is not supported in your PHP, recompile and try again."

I know mysql is working with php or phpMyAdmin wouldn't work. What am I missing?
highoctane
phpList newbie
 
Posts: 1
Joined: 4:34pm, Fri 05 Oct, 2007

The problem may be selinux

Postby argos » 4:26am, Thu 24 Jul, 2008

To see if selinux is the cause of the problem disable it, restart your webserver and try again.

# to disable selinux
echo 0 >/selinux/enforce

restart httpd

# to enable selinux
echo 1 >/selinux/enforce

At least for me this was the root cause. Now I still need to find time to better understand selinux and how it might be configured to work with phplist.
argos
phpList newbie
 
Posts: 1
Joined: 11:55pm, Wed 23 Jul, 2008

Re: Mysql_connect PHPMyadmin

Postby bgprocessing » 8:57pm, Sun 23 Dec, 2012

I found that the /usr/local/php5.3/etc/extensions.ini file had mysqli enabled, but not mysql.
That apparently allowed phpMyAdmin to work, but not phpList.
ymmv

Bruce
bgprocessing
phpList newbie
 
Posts: 1
Joined: 8:49pm, Sun 23 Dec, 2012


Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 0 guests

cron