From 829ad2cac008b6db0efae86d23ea96ef56d32674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 27 Apr 2016 10:29:32 +0200 Subject: [PATCH] Update FAQ based on wiki content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- doc/faq.rst | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/doc/faq.rst b/doc/faq.rst index 14a10f4297..7db18bef5c 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -245,7 +245,10 @@ and ``mysqli``. The ``mysqli`` is tried first, because it's the best one. This problem can be also caused by wrong paths in the :file:`php.ini` or using wrong :file:`php.ini`. -First check if your :file:`php.ini` contains correct path to PHP extensions: +Make sure that the extension files do exist in the folder which the +``extension_dir`` points to and that the corresponding lines in your +:file:`php.ini` are not commented out (you can use ``phpinfo()`` to check +current setup): .. code-block:: ini @@ -255,12 +258,24 @@ First check if your :file:`php.ini` contains correct path to PHP extensions: extension_dir = "C:/Apache2/modules/php/ext" The :file:`php.ini` can be loaded from several locations (especially on -Windows), so please check you're updating the correct one. If using Apache, -you can tell it to use specific path for this file: +Windows), so please check you're updating the correct one. If using Apache, you +can tell it to use specific path for this file using ``PHPIniDir`` directive: .. code-block:: apache - PHPIniDir "C:/php_50104" + LoadFile "C:/php/php5ts.dll" + LoadModule php5_module "C:/php/php5apache2_2.dll" + +     PHPIniDir "C:/PHP" +     +        AddType text/html .php +        AddHandler application/x-httpd-php .php +     + + +In some rare cases this problem can be also caused by other extensions loaded +in PHP which prevent MySQL extensions to be loaded. If anything else fails, you +can try commenting out extensions for other databses from :file:`php.ini`. .. _faq1_21: