From 25caf94056d8ce8fa7d2db8debfb35e25c12671f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 27 Apr 2016 10:21:48 +0200 Subject: [PATCH] Document possible problems with php.ini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- doc/faq.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/faq.rst b/doc/faq.rst index 9848fb8ecb..14a10f4297 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -242,6 +242,26 @@ or something similar. There are currently two interfaces PHP provides as MySQL extensions - ``mysql`` 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: + +.. code-block:: ini + + [PHP] + + ; Directory in which the loadable extensions (modules) reside. + 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: + +.. code-block:: apache + + PHPIniDir "C:/php_50104" + .. _faq1_21: 1.21 I am running the CGI version of PHP under Unix, and I cannot log in using cookie auth.