Author Topic: MySQL database extension in PHP 5.3.6  (Read 12426 times)

Offline ivwolferen

  • Newbie
  • *
  • Posts: 3
MySQL database extension in PHP 5.3.6
« on: April 18, 2011, 04:12:19 PM »
Hi all, I am new to this forum so I hope this question is in the right location.

I have a problem installing Roundcube, currently I am stuck on the "Check environment" page on "http://localhost/mail/installer".

I have installed a fresh apache 2.2.17 and PHP5.3.6 installation.
Inside my htdocs folder, I have put the roundcube installation and I have installed and configured mysql 5.5.11. My OS is WinXP SP3.

My problem is that the Roundcube installation does not see any extensions use MySQL. This already shows on the "Check configuration" page:

Checking available databases
Check which of the supported extensions are installed. At least one of them is required.

MySQL:  NOT AVAILABLE(Not installed)
MySQLi:  NOT AVAILABLE(Not installed)
PostgreSQL:  NOT AVAILABLE(Not installed)
SQLite (v2):  NOT AVAILABLE(Not installed)


When I search on how to enable MySQL support in PHP version 5.3 and up, it states that from version 5.3 and up a MySQL native driver is used and enabled:

PHP 5.3.0+
In PHP 5.3.0 and above the MySQL-related database extensions use the MySQL Native Driver by default. This means that the MySQL Client Library (libmysql) is no longer required in order to support connection to a MySQL database. The extensions mysql, mysqli, and PHP_PDO_MYSQL are all enabled by default in PHP 5.3.0+, and all use the MySQL Native Driver by default. In each case no further installation steps are required in order to use these extensions, although you may want to set some preferences in php.ini depending on your requirements.


Can anybody help me out on what steps to take next to continue with the Roundcube webmail installation?

Offline adjustMan

  • Full Member
  • ***
  • Posts: 61
MySQL database extension in PHP 5.3.6
« Reply #1 on: April 19, 2011, 06:15:47 PM »
no, I think you forgot to install (right)  mysql self.
That`s not automatically installed through PHP ;)
cu aM
-------
1.4.9

Offline ivwolferen

  • Newbie
  • *
  • Posts: 3
MySQL database extension in PHP 5.3.6
« Reply #2 on: April 21, 2011, 02:32:14 PM »
Quote from: adjustMan;34362
no, I think you forgot to install (right)  mysql self.
That`s not automatically installed through PHP ;)


Actually, MySQL is installed, all features that can be installed are installed.
MySQL is properly initialised by excecuting the install script using TOAD for MySQL... Can you be more precise in what should be present?

Offline ivwolferen

  • Newbie
  • *
  • Posts: 3
Fixed
« Reply #3 on: April 21, 2011, 02:52:24 PM »
After a lot of google'n & trial and error, the issue is in the configuration of PHP (PHP.ini).

If you face the same issue, this is how to fix it:

1) Inside the PHP.ini search for: '; Paths and Directories ;'
2) Remove the semicolumn before 'include_path='
(also make sure that it points to where ever PHP is installed)
3) Look for the bottom piece and also remove the semicolumn
before 'extension_dir'

; On windows:
extension_dir = "ext"

I rebooted, but not sure if this is required after you change the PHP.ini
This did the trick for me.

Offline markhumphryes

  • Newbie
  • *
  • Posts: 1
MySQL not found
« Reply #4 on: May 11, 2011, 07:39:15 AM »
I have the same problem with installing with IIS 6 on a fully patched Windows Server 2003 R2 box.

The Roundcube Installer returns:

The next couple of extensions are optional and recommended to get the best performance:
FileInfo:  NOT AVAILABLE(Could be loaded. Please add in php.ini; See PHP: Fileinfo - Manual)
Libiconv:  OK
Multibyte:  NOT AVAILABLE(Could be loaded. Please add in php.ini; See PHP: Multibyte String - Manual)
OpenSSL:  NOT AVAILABLE(Could be loaded. Please add in php.ini; See PHP: OpenSSL - Manual)
Mcrypt:  NOT AVAILABLE(See PHP: Mcrypt - Manual)
Intl:  NOT AVAILABLE(Could be loaded. Please add in php.ini; See PHP: intl - Manual)
Checking available databases

Check which of the supported extensions are installed. At least one of them is required.
MySQL:  NOT AVAILABLE(Could be loaded. Please add in php.ini)
MySQLi:  NOT AVAILABLE(Could be loaded. Please add in php.ini)
PostgreSQL:  NOT AVAILABLE(Could be loaded. Please add in php.ini)
SQLite (v2):  NOT AVAILABLE(Could be loaded. Please add in php.ini)


FileInfo IS available, so is MySQL.

All paths are set correctly.  All dlls for extensions have been copied to System32 folder, yet I still get the above.  Windows and IIS have been rebooted several times.  So far I have wasted over 1/2 day trying to resolve this.  I have looked at many posts on the net but nothing seems to overcome this issue.

What else can I try??

Mark H

Offline Julius Caesar

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 498
    • http://www.de-keizer.net/
MySQL database extension in PHP 5.3.6
« Reply #5 on: May 11, 2011, 09:46:30 AM »
You still can do several things:

- Check if there is only one php.ini
- Check if the unavailable options are enabled in the php.ini
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he