#27495 [Bgs->Csd]: Ignore extension_dir in the php.ini
| From: | Alex_Diedler at gmx dot de | Date: | Fri, 05 Mar 2004 07:04:16 +0000 |
| Subject: | #27495 [Bgs->Csd]: Ignore extension_dir in the php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55939@lists.php.net to get a copy of this message | ||
ID: 27495
User updated by: Alex_Diedler at gmx dot de
Reported By: Alex_Diedler at gmx dot de
-Status: Bogus
+Status: Closed
Bug Type: *Configuration Issues
Operating System: Win2k SP4 German
PHP Version: 4.3.4
New Comment:
Hello,
Yes that´s it!
But where can I change the location of the php.ini? Should it ever be
at c:\winnt?
Thread can be closed.
Thanks for your help!
Greetings
Alex D.
Previous Comments:
------------------------------------------------------------------------
[2004-03-04 10:23:24] edink@php.net
You probably forgot to put php.ini in c:\winnt (or whatever is your
windows directory).
You can see on the top of phpinfo page which php.ini was read.
------------------------------------------------------------------------
[2004-03-04 09:39:06] Alex_Diedler at gmx dot de
Description:
------------
Following problem:
The installation of Apache 1.3.29 and PHP 4.3.4 finished without
problems. Now I enable all extension in the php_ini and add the path to
the System_environment. I copy the 2 dll files to the system32
directory.
But the function ldap_connect() doesn´t work.
So I am looking to phpinfo(). There is the path extension_dir shown to
c:\php4 but in my php.ini there is the path setting to
C:\php\extensions. I tried with or without "" oder \ / nothing
changes.
Why the phpinfo() show me the wrong path and doesn´t work?
Many restarts of the server takes no effect on it.
The Browser throws exception:
Fatal error: Call to undefined function: ldap_connect() in
c:\programme\apache group\apache\htdocs\php_tut\ldap_test2.php on line
15
on Line 15 is:
$ldapConn = ldap_connect($ldapServer);
Reproduce code:
---------------
My php.ini: located at C:\winnt\system32
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than
IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =
; Directory in which the loadable extensions (modules) reside.
extension_dir = C:\php\extensions
Expected result:
----------------
I expect the correct directory and that the apache find the extension
modules and it should work fine.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27495&edit=1