I have determined path to php folder and trying to run some php file and getting this message from command line.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:UsersU1>php
Failed loading usrlocalphp5extphp_xdebug-2.2.0-5.3-vc9.dll
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_curl.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/ext
php_curl.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_gd2
.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_gd
2.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_mbstring.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_mb
string.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_mysql.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_my
sql.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_mys
qli.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_my
sqli.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_pdo
_mysql.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_pd
o_mysql.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_pdo
_sqlite.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_pd
o_sqlite.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_sql
ite.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_sq
lite.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_soa
p.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_so
ap.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_sql
ite3.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_sq
lite3.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>PHP Wa
rning: PHP Startup: Unable to load dynamic library '/usr/local/php5/extphp_xsl
.dll' - The specified module could not be found.
in Unknown on line 0
<!--error-->
Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/ext
php_xsl.dll' - The specified module could not be found.
in Unknown on line 0
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>
^A
All libraries are open on php.ini file. I have checked them all. I am wondering why command line tries to run library in incorrect path like
'/usr/local/php5/extphp_xsl.dll'
Does it should be like
'/usr/local/php5/ext/php_xsl.dll'
?
asked Aug 20, 2014 at 22:14
1
Open your php.ini
file and set the following setting to a Windows file path:
extension_dir = "X:/path/to/your/php/ext"
On Windows, paths that point to something on a normal hard drive have to start with a letter and then a colon, like «C:
«. Paths that start with a forward slash, /
, are Unix-like paths, and will not work on Windows.
answered Aug 20, 2014 at 23:16
Sverri M. OlsenSverri M. Olsen
12.9k3 gold badges35 silver badges51 bronze badges
1
Adjust the following value in php.ini:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:path to extension directory"
answered Aug 20, 2014 at 22:29
NoDataFoundNoDataFound
11k32 silver badges59 bronze badges
0
You can also specify the extensions directory without using the full path if it’s in the same folder, at least in PHP 7.2.5 (have not tested other versions).
Example:
extension_dir = "ext"
Where ext
is your extensions directory.
answered May 22, 2018 at 14:46
OptimaeOptimae
9321 gold badge12 silver badges23 bronze badges
Check the dll / library path from the error and make sure it’s correct.
Updating /php.ini-> extension_dir to the correct path solves my problem.
answered Aug 31, 2021 at 6:15
1
I have 7.4 php version. I solved this by uncommenting the following line by removing ; inside the php.ini file.
extension_dir = "ext"
Note that initially, if you won’t have php.ini file you should first copy and paste php.ini-development file and rename it as php.ini.
answered Dec 28, 2022 at 13:22
oybekoybek
111 bronze badge
guys, i already install this driver before, and worked very well, but this time, i upgraded my windows to 10, then i reinstalled my Vagrant and virtualbox again, now… when i try install the drivers at step 3.
i got the error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/pdo_sqlsrv.so' - /usr/lib/php/20160303/pdo_sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/sqlsrv.so' - /usr/lib/php/20160303/sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
ubuntu 16.04
my output of odbcinst -j:
unixODBC 2.3.1
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /home/vagrant/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
output of odbcinst -q -d -n "ODBC Driver 13 for SQL Server"
:
[ODBC Driver 13 for SQL Server]
Description=Microsoft ODBC Driver 13 for SQL Server
Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.9.1
UsageCount=1
my output of php -m
:
[PHP Modules]
bcmath
blackfire
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imap
intl
json
libxml
mbstring
mcrypt
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
blackfire
Note: when i type php -v
i got the same error above of the version.
my php version:
PHP 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Dec 14 2017 15:37:13) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.12-3+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
with blackfire v1.18.0~linux-x64-non_zts71, https://blackfire.io, by SensioLabs
How to resolve warning messages when loading dynamic libraries (DLL) (a.k.a extensions) under PHP on Windows.
Problem
When running PHP on Windows XP/2000/2003, you may encounter the following errors that appear in dialog boxes. Additional errors may be printed when running PHP CLI on the command line.
- php.exe — Unable To Locate Component
This application has failed to start because php_mbstring.dll was not found. Re-installing the application may fix this problem. - Warning
PHP Startup: Unable to load dynamic library ‘c:Program FilesPHPextphp_exif.dll’ — The specified module could not be found. - php.exe — Entry Point Not Found
The procedure entry point _ZOOM_scanset_display_term@16 could not be located in the dynamic link library yaz.dll.
Causes
The most common cause may be a misconfigured extension_dir
setting in your php.ini.
You may also encounter the above errors if you enable all the extensions in PHP. The errors are generally caused by misconfigured extensions. Some extensions (e.g. Oracle) require additional setup, software, and support DLLs, which come from outside the main PHP installer.
You may have out-of-date extension DLLs in your extensions directory.
Some extensions may also have bugs that are causing warnings.
The PATH environment variable does not contain the PHP base install location.
IIS may not have been restarted since changes were made to php.ini.
You did not install the correct build of PHP.
The DLL is listed more than once in the php.ini file. (This may be caused by using the MSI installer.)
Solutions
You must configure extension_dir
correctly to point to the folder with the DLL files. This setting is edited in your php.ini file. (How to find your php.ini)
Disable all unused DLLs. You can easily disable an extension by commenting-out the corresponding line from your php.ini file. (How to find your php.ini) Comment-out lines by placing a semi-colon at the beginning of the line.
Remove duplicate references to DLLs from your php.ini file.
Make sure you installed the correct version of PHP for your server configuration.
Visit the PHP For Windows Download Page and download the correct ZIP package by following the instructions on the PHP Windows Mannual Installation Steps page under «Selecting and downloading the PHP distribution package». Unzip the file into your PHP installation directory. For example, for PHP 5.2.x + IIS 6 + Windows Server 2003, you need to use the VC6 non-thread safe build. If you get the standard build from the main PHP download page, you will get errors.
If your DLLs versions are out-of-date or mismatched, make sure to download and install the latest Windows binary zip packages as described above.
These errors may also occur if you do not have the Windows PATH environment variable pointing to your base PHP install.
In particular, for php_curl.dll, the Windows PATH environment variable must contain the location of the files libeay32.dll and ssleay32.dll. Furthermore, adequate permissions must be granted to those files (usually read permissions to IUSR_MachineName).
Try restarting IIS if you have made changes to php.ini.
If there are still warnings, then you must read the documentation for each enabled extension, and install and configure any necessary third-party software. For example, many database extensions, such as ODBC and Oracle, require third-party software. Look in the «Installation» section of the PHP documentation for the specific extension.
If that fails, try searching for bugs in bugs.php.net for the error message you encounter.
Notes
The MSI installer that comes with PHP 5.2.0 makes it very easy to configure PHP to load all the extensions. This means it is more likely for people to encounter the above issue.
Where is my PHP.ini file?
Go to «Start > Run…», type in cmd
and press «OK». Type php --ini
and press «Enter». Look for the following line:
Loaded Configuration File: C:Program FilesPHPphp.ini
The «Loaded Configuration File» setting tells you which php.ini file PHP is loading. php.ini is generally located in c:program filesphp
, c:windows
, or c:php
.
Links
- Bug #34398 some PHP extension fail to load…
- Bug #28137 about half the extensions don’t load
Error Output of php.exe
The following was captured by running PHP CLI with «php -v >out.txt 2<&1» from a Windows XP SP2 command line. This is with all extensions enabled even though most are not used or configured properly.
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_exif.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_exif.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_ifx.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_ifx.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_oci8.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_oci8.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_pdo_oci.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_pdo_oci.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_pdo_oci8.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_pdo_oci8.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_pspell.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_pspell.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_sybase_ct.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_sybase_ct.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_ibm_db2.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_ibm_db2.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_imagick.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_imagick.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_ingres.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_ingres.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_netools.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_netools.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_oracle.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_oracle.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_svn.dll’ — The specified module could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_svn.dll’ — The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_yaz.dll’ — The specified procedure could not be found.
in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘C:Program FilesPHPextphp_yaz.dll’ — The specified procedure could not be found.
in Unknown on line 0
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
PHP Notice: Constant XML_ELEMENT_NODE already defined in Unknown on line 0Notice: Constant XML_ELEMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_TEXT_NODE already defined in Unknown on line 0Notice: Constant XML_TEXT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0Notice: Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0Notice: Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ENTITY_NODE already defined in Unknown on line 0Notice: Constant XML_ENTITY_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_PI_NODE already defined in Unknown on line 0Notice: Constant XML_PI_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_COMMENT_NODE already defined in Unknown on line 0Notice: Constant XML_COMMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DOCUMENT_NODE already defined in Unknown on line 0Notice: Constant XML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0Notice: Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0Notice: Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_NOTATION_NODE already defined in Unknown on line 0Notice: Constant XML_NOTATION_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_DTD_NODE already defined in Unknown on line 0Notice: Constant XML_DTD_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0Notice: Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0Notice: Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0
PHP Notice: Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0Notice: Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on line 0
PHP Notice: Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0Notice: Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0
Normal output is below.
PHP 5.2.0 (cli) (built: Nov 2 2006 11:57:36)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
php.ini Loaded Extensions
Below shows relevant portions of php.ini from version 5.2.0.
; Directory in which the loadable extensions (modules) reside. extension_dir = C:Program FilesPHPext error_reporting = E_ALL display_startup_errors = On [PHP_BZ2] extension=php_bz2.dll [PHP_CURL] extension=php_curl.dll [PHP_DBA] extension=php_dba.dll [PHP_DBASE] extension=php_dbase.dll [PHP_EXIF] extension=php_exif.dll [PHP_FDF] extension=php_fdf.dll [PHP_GD2] extension=php_gd2.dll [PHP_GETTEXT] extension=php_gettext.dll [PHP_GMP] extension=php_gmp.dll [PHP_IFX] extension=php_ifx.dll [PHP_IMAP] extension=php_imap.dll [PHP_INTERBASE] extension=php_interbase.dll [PHP_LDAP] extension=php_ldap.dll [PHP_MBSTRING] extension=php_mbstring.dll [PHP_MCRYPT] extension=php_mcrypt.dll [PHP_MHASH] extension=php_mhash.dll [PHP_MIME_MAGIC] extension=php_mime_magic.dll [PHP_MING] extension=php_ming.dll [PHP_MSQL] extension=php_msql.dll [PHP_MSSQL] extension=php_mssql.dll [PHP_MYSQL] extension=php_mysql.dll [PHP_MYSQLI] extension=php_mysqli.dll [PHP_OCI8] extension=php_oci8.dll [PHP_OPENSSL] extension=php_openssl.dll [PHP_PDO] extension=php_pdo.dll [PHP_PDO_FIREBIRD] extension=php_pdo_firebird.dll [PHP_PDO_MSSQL] extension=php_pdo_mssql.dll [PHP_PDO_MYSQL] extension=php_pdo_mysql.dll [PHP_PDO_OCI] extension=php_pdo_oci.dll [PHP_PDO_OCI8] extension=php_pdo_oci8.dll [PHP_PDO_ODBC] extension=php_pdo_odbc.dll [PHP_PDO_PGSQL] extension=php_pdo_pgsql.dll [PHP_PDO_SQLITE] extension=php_pdo_sqlite.dll [PHP_PGSQL] extension=php_pgsql.dll [PHP_PSPELL] extension=php_pspell.dll [PHP_SHMOP] extension=php_shmop.dll [PHP_SNMP] extension=php_snmp.dll [PHP_SOAP] extension=php_soap.dll [PHP_SOCKETS] extension=php_sockets.dll [PHP_SQLITE] extension=php_sqlite.dll [PHP_SYBASE_CT] extension=php_sybase_ct.dll [PHP_TIDY] extension=php_tidy.dll [PHP_XMLRPC] extension=php_xmlrpc.dll [PHP_XSL] extension=php_xsl.dll [PHP_ZIP] extension=php_zip.dll [PHP_APD] extension=php_apd.dll [PHP_BCOMPILER] extension=php_bcompiler.dll [PHP_BITSET] extension=php_bitset.dll [PHP_BLENC] extension=php_blenc.dll [PHP_BZ2_FILTER] extension=php_bz2_filter.dll [PHP_CLASSKIT] extension=php_classkit.dll [PHP_CPDF] extension=php_cpdf.dll [PHP_CRACK] extension=php_crack.dll [PHP_CVSCLIENT] extension=php_cvsclient.dll [PHP_DB] extension=php_db.dll [PHP_DBX] extension=php_dbx.dll [PHP_DIO] extension=php_dio.dll [PHP_DOCBLOCK] extension=php_docblock.dll [PHP_DOMXML] extension=php_domxml.dll [PHP_EVENT] extension=php_event.dll [PHP_FILEINFO] extension=php_fileinfo.dll [PHP_FILEPRO] extension=php_filepro.dll [PHP_FRIBIDI] extension=php_fribidi.dll [PHP_GOPHER] extension=php_gopher.dll [PHP_HTTP] extension=php_http.dll [PHP_HYPERWAVE] extension=php_hyperwave.dll [PHP_IBM_DB2] extension=php_ibm_db2.dll [PHP_ID3] extension=php_id3.dll [PHP_IISFUNC] extension=php_iisfunc.dll [PHP_IMAGICK] extension=php_imagick.dll [PHP_INGRES] extension=php_ingres.dll [PHP_JAVA] extension=php_java.dll [PHP_LZF] extension=php_lzf.dll [PHP_MAILPARSE] extension=php_mailparse.dll [PHP_MCRYPT_FILTER] extension=php_mcrypt_filter.dll [PHP_MEMCACHE] extension=php_memcache.dll [PHP_NETOOLS] extension=php_netools.dll [PHP_NTUSER] extension=php_ntuser.dll [PHP_OGGVORBIS] extension=php_oggvorbis.dll [PHP_OPERATOR] extension=php_operator.dll [PHP_ORACLE] extension=php_oracle.dll [PHP_PARSEKIT] extension=php_parsekit.dll [PHP_PDF] extension=php_pdf.dll [PHP_PHAR] extension=php_phar.dll [PHP_PHPDOC] extension=php_phpdoc.dll [PHP_POP3] extension=php_pop3.dll [PHP_PRINTER] extension=php_printer.dll [PHP_RADIUS] extension=php_radius.dll [PHP_RAR] extension=php_rar.dll [PHP_SDO] extension=php_sdo.dll [PHP_SMTP] extension=php_smtp.dll [PHP_SSH2] extension=php_ssh2.dll [PHP_STATS] extension=php_stats.dll [PHP_STEM] extension=php_stem.dll [PHP_SVN] extension=php_svn.dll [PHP_SWISH] extension=php_swish.dll [PHP_THREADS] extension=php_threads.dll [PHP_TIMEZONEDB] extension=php_timezonedb.dll [PHP_TRANSLIT] extension=php_translit.dll [PHP_WIN32PS] extension=php_win32ps.dll [PHP_WIN32SCHEDULER] extension=php_win32scheduler.dll [PHP_WIN32SERVICE] extension=php_win32service.dll [PHP_WIN32STD] extension=php_win32std.dll [PHP_YAZ] extension=php_yaz.dll [PHP_ZLIB_FILTER] extension=php_zlib_filter.dll
Created 2006-11-06, Last Modified 2011-07-24, © Shailesh N. Humbad
Disclaimer: This content is provided as-is. The information may be incorrect.
Если при запуске PHP приложения в ОС Windows выдается сообщение типа «PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_sqlite’ (tried: C:phpextpdo_sqlite (The specified module could not be found.), C:phpextphp_pdo_sqlite.dll (The specified module could not be found.)) in Unknown on line 0» это означает, что PHP Не смог найти библиотеку sqlite.
Путь к библиотекам и то, какие библиотеки должны быть подключены, прописано в файле php.ini. Я рекомендую его размещать в той же директории, где размещены файлы PHP.
Чтобы искать расширения в нужной папке, а не в той, которую PHP считает папкой по умолчанию, нужно раскомментировать строку с параметром extension_dir и установить ей путь к расширениям:
extension_dir = «C:usrbinphp7ext»
Также нужно проверить, включено ли расширение sqlite для PHP или нет. В файле php.ini это блок extension, нужно в нем раскомментировать pdo_sqlite:
extension=pdo_sqlite
Также надо убедиться, что файлы в папке «C:usrbinphp7ext» (или той, которую указали в extension_dir) есть библиотеки расширений для PHP.
I am using Apache 2.2 server, PHP 5.3.6 on a Windows 7 OS running on a 64-bit system.
On starting Apache server, this error appears in the apache error log-
PHP Warning: PHP Startup: Unable to load dynamic library ‘D:php5extphp_curl.dll’ — The specified module could not be found.rn in Unknown on line 0
Following are the other extensions mentioned in the php.ini file —
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_xsl.dll
extension=php_memcache.dll
Echoing phpinfo()
does not show the curl extension loaded, but the others are loaded.
The php_curl.dll
file is however present in the correct location along with the others —
D:php5extphp_curl.dll
phpinfo()
shows that
extension_dir = D:php5ext
So, that also is correct.
Some more details
I am a new member in this team and I had setup Apache, PHP separately on this Windows 7 system and everything was working fine.
Our project needed a lots of httpd conf changes, so I was asked to simply overwrite the httpd conf file with the team’s current version. I did the same and just changed the ServerName, ServerAdmin etc. I also copied their PHP installation directory.
Everything other than this extension is working fine.
Bug #76888 | PHP Startup: Unable to load dynamic library ‘php_curl.dll’ | |||
---|---|---|---|---|
Submitted: | 2018-09-16 13:33 UTC | Modified: | 2018-10-06 14:52 UTC | |
From: | masterwto at 163 dot com | Assigned: | ||
Status: | Not a bug | Package: | cURL related | |
PHP Version: | 7.3.0RC1 | OS: | Windows 7 64bit | |
Private report: | No | CVE-ID: | None |
[2018-09-16 13:33 UTC] masterwto at 163 dot com
Description: ------------ My Apache24 httpd.conf: LoadModule php7_module "D:/Program Files/PHP7/php7apache2_4.dll" PHPIniDir "D:/Program Files/PHP7" My PHP7.3 php.ini: ; On windows: extension_dir = "D:/Program Files/PHP7/ext" extension=php_curl.dll When Apache2.4 Windows service is started, I got the error: PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried: D:/Program Files/PHP7/ext\php_curl.dll (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3), D:/Program Files/PHP7/ext\php_php_curl.dll.dll (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3)) in Unknown on line 0 [Sun Sep 16 20:59:25.428390 2018] [mpm_winnt:notice] [pid 2992:tid 508] AH00455: Apache/2.4.34 (Win64) PHP/7.3.0RC1 configured -- resuming normal operations [Sun Sep 16 20:59:25.428390 2018] [mpm_winnt:notice] [pid 2992:tid 508] AH00456: Apache Lounge VC15 Server built: Aug 15 2018 11:38:51 [Sun Sep 16 20:59:25.428390 2018] [core:notice] [pid 2992:tid 508] AH00094: Command line: 'D:\Program Files\Apache24\bin\httpd.exe -d D:/Program Files/Apache24' [Sun Sep 16 20:59:25.428390 2018] [mpm_winnt:notice] [pid 2992:tid 508] AH00418: Parent: Created child process 6548 PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried: D:/Program Files/PHP7/ext\php_curl.dll (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3), D:/Program Files/PHP7/ext\php_php_curl.dll.dll (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3)) in Unknown on line 0 [Sun Sep 16 20:59:26.364392 2018] [mpm_winnt:notice] [pid 6548:tid 456] AH00354: Child: Starting 64 worker threads. When I changed the php.ini file to: extension=curl I got error like this: PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: D:/Program Files/PHP7/ext\curl (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3), D:/Program Files/PHP7/ext\php_curl.dll (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3)) in Unknown on line 0 [Sun Sep 16 21:31:27.302425 2018] [mpm_winnt:notice] [pid 6800:tid 508] AH00455: Apache/2.4.34 (Win64) PHP/7.3.0RC1 configured -- resuming normal operations [Sun Sep 16 21:31:27.302425 2018] [mpm_winnt:notice] [pid 6800:tid 508] AH00456: Apache Lounge VC15 Server built: Aug 15 2018 11:38:51 [Sun Sep 16 21:31:27.302425 2018] [core:notice] [pid 6800:tid 508] AH00094: Command line: 'D:\Program Files\Apache24\bin\httpd.exe -d D:/Program Files/Apache24' [Sun Sep 16 21:31:27.302425 2018] [mpm_winnt:notice] [pid 6800:tid 508] AH00418: Parent: Created child process 2524 PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: D:/Program Files/PHP7/ext\curl (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3), D:/Program Files/PHP7/ext\php_curl.dll (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3)) in Unknown on line 0 [Sun Sep 16 21:31:27.879626 2018] [mpm_winnt:notice] [pid 2524:tid 456] AH00354: Child: Starting 64 worker threads. Test script: --------------- no need php file at all.
Patches
Add a Patch
Pull Requests
Add a Pull Request
History
AllCommentsChangesGit/SVN commitsRelated reports
[2018-09-17 08:54 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2018-09-17 08:54 UTC] ab@php.net
Thanks for the report. The curl extension has several dependency DLL which are contained in the PHP ditribution. Please ensure the PHP root dir is on the path, when the PHP module is being loaded into Apache. Note, the DBCS encoded error messages are a separate topic. Thanks.
[2018-09-17 13:17 UTC] masterwto at 163 dot com
1. The PHP7.3 root directory is on my PATH environment. 2. The PHP module is loaded into Apache, and PHP scripts can be executed correctly (no cURL functions). 3. PHP 7.1 & 7.2 is working OK. What dependency DLLs contained in the PHP ditribution is used by cURL? Do I need to copy those files to Apachebin dir?
[2018-10-06 14:47 UTC] pmmaga@php.net
-Status: Not a bug
+Status: Closed
[2018-10-06 14:52 UTC] nikic@php.net
-Status: Closed
+Status: Not a bug
[2018-10-06 14:52 UTC] nikic@php.net
Reverting spurious change due to incorrect bug ID referenced in commit message.
Страницы 1 2 Далее
Чтобы отправить ответ, вы должны войти или зарегистрироваться
Лента темы в RSS
Сообщения с 1 по 25 из 31
1 2011-08-25 21:15:34
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Тема: Php не видит модули
переустановил сервер перестал работать sqlite смотрю в логи php, а там
[25-Aug-2011 21:11:56] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:56] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_bz2.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:56] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_curl.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:56] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_imap.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:56] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_interbase.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_mhash.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_oci8.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_firebird.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_mssql.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_mysql.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_oci.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_oci8.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_odbc.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_pgsql.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_sqlite.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_sqlite_external.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pspell.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_soap.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_sqlite.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_sybase_ct.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_xmlrpc.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_xsl.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:57] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_exif.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_bz2.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_curl.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_imap.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_interbase.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_mhash.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_oci8.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_firebird.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_mssql.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_mysql.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_oci.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_oci8.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_odbc.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_pgsql.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_sqlite.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pdo_sqlite_external.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_pspell.dll' - Не найден указанный модуль.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_soap.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_sqlite.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_sybase_ct.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_xmlrpc.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_xsl.dll' - Не найдена указанная процедура.
in Unknown on line 0
[25-Aug-2011 21:11:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:WebServerphpextphp_exif.dll' - Не найдена указанная процедура.
in Unknown on line 0
перепроверил все пути вконфиге вроди все правильно.
прошу помощи, да вот еще, mysql работает и phpinfo пишет что sqlite подключен
2 Ответ от Hanut 2011-08-25 21:56:35
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Проверьте, чтобы корень PHP находился в PATH. Если не сможете разобраться, то вышлите конфигурационные файлы на hanut@php-myadmin.ru со ссылкой на данную тему.
3 Ответ от ozzon91 2011-08-25 22:25:52
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
с переменными среды все ок пути проверил дважды, очень благодарен что отозвались конфиг выслал
4 Ответ от Hanut 2011-08-25 23:50:32
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Не смог найти ошибок, вроде все нормально. Попробуйте установить PHP не из самораспаковывающегося, а из обычного архива и вручную настройте php.ini. Если ошибки будут появляться, то можно пробовать убрать их методом исключения, постепенно отодвигая изменения к исходному конфигурационному файлу.
5 Ответ от ozzon91 2011-08-26 00:58:03
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
переделал но проблема не исчезла, я не пойму phpinfo() показывает что библиотеки подключены а в логе пишет что не может их найти, мускул работает, а sqlite нет
6 Ответ от Hanut 2011-08-26 11:02:09
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Эту строку лучше закомментировать.
sqlite3.extension_dir = «C:/WebServer/php/ext»
Здесь должен быть указан каталог с расширениями sqlite, а не PHP.
Укажите установленные версии PHP и Apache, лучше приведите ссылки на дистрибутивы.
7 Ответ от ozzon91 2011-08-26 17:42:53 (изменено: ozzon91, 2011-08-26 17:45:07)
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
http://windows.php.net/downloads/releas … C6-x86.zip php-5.2.17-Win32-VC6-x86
на этот апач ссылку не нашел на официальном сайте
apache 2.2.14 VC6
8 Ответ от Hanut 2011-08-26 17:59:23
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Вроде все в порядке, эти версии собраны под VC6 и вполне совместимы.
Попробуйте посмотреть в phpinfo какой конфигурационный файл загружается (Loaded configuration file). Больше пока помочь ничем не могу.
9 Ответ от ozzon91 2011-08-26 18:55:21
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
попробовал запустить php.exe, пишет Приложению не удалось запуститься, поскольку OCI.dll не был найден
10 Ответ от Hanut 2011-08-26 19:28:06
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Отключите все библиотеки и если ошибок Apache писать не будет, то подключайте модули последовательно, проверяя работу. Похоже какие-то модули конфликтуют.
11 Ответ от ozzon91 2011-08-26 21:20:55
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
наконец то хоть какой то сдвиг, закомментировал все модули и php.exe заработал, потом раскоментировал
extension=php_pdo.dll и extension=php_sqlite.dll запустил через консоль скрипт со следующим содержимым
if ($db = @sqlite_open('quotes.db', 0666, $error)) {
echo 'Соединение с базой данных.';
sqlite_close($db);
} else {
echo 'Соединение не удалось: '.htmlspecialchars($error);
}
файл quote.db создался, а при запуске через хост наотрез отказывается работать
12 Ответ от Hanut 2011-08-27 10:04:04
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Эту строку тоже закомментируйте, пока данное расширение не используете.
extension=php_pdo.dll
Смотрите логи ошибок Apache. Надо за что-то зацепиться.
13 Ответ от ozzon91 2011-08-27 17:34:13
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
лог апача чист вроде
[Sat Aug 27 17:32:14 2011] [notice] Apache/2.2.19 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Sat Aug 27 17:32:14 2011] [notice] Server built: May 20 2011 17:39:35
[Sat Aug 27 17:32:14 2011] [notice] Parent: Created child process 5344
[Sat Aug 27 17:32:14 2011] [notice] Child 5344: Child process is running
[Sat Aug 27 17:32:14 2011] [notice] Child 5344: Acquired the start mutex.
[Sat Aug 27 17:32:14 2011] [notice] Child 5344: Starting 150 worker threads.
[Sat Aug 27 17:32:14 2011] [notice] Child 5344: Starting thread to listen on port 80.
14 Ответ от Hanut 2011-08-27 20:23:27
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Смотрите логи хоста. Если запускаете с localhost, то файл журналов будет C:apachelocalhosterror.log
15 Ответ от ozzon91 2011-08-27 20:41:54
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
лог ошибок хоста пуст, я просто в тупике
16 Ответ от Hanut 2011-08-27 22:52:56
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Hanut сказал:
Попробуйте посмотреть в phpinfo какой конфигурационный файл загружается (Loaded configuration file).
Пока только это посоветую. Посмотрите что там.
17 Ответ от ozzon91 2011-08-27 23:05:56
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
да все правильно там
18 Ответ от ozzon91 2011-08-27 23:07:57
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
19 Ответ от Hanut 2011-08-27 23:09:59
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Нет, не верно.
В httpd.conf поправьте строку:
PHPIniDir "C:/WebServer/php"
20 Ответ от ozzon91 2011-08-27 23:12:18
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
что в ней поправить
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/WebServer/php/"
LoadModule php5_module "C:/WebServer/php/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
21 Ответ от Hanut 2011-08-27 23:18:29
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
Здесь все правильно. Не могу понять почему phpinfo() выглядит так странно. И к тому же это не PHP 5.2.17, ссылку на который вы давали выше.
22 Ответ от ozzon91 2011-08-27 23:21:06
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
хм… я ставил его из того архива что дал ссылку
23 Ответ от ozzon91 2011-08-27 23:22:21 (изменено: ozzon91, 2011-08-27 23:33:52)
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
может посоветуете другой дистрибутив php
ставлю 5,2,17 пишет что 5,2,0
24 Ответ от Hanut 2011-08-28 10:08:27
- Hanut
- Модератор
- Неактивен
- Откуда: Рига, Латвия
- Зарегистрирован: 2006-07-02
- Сообщений: 9,722
Re: Php не видит модули
ozzon91 сказал:
может посоветуете другой дистрибутив php
ставлю 5,2,17 пишет что 5,2,0
Теперь хоть что-то становится понятно. Посмотрите что у вас в PATH, нет ли там пути к другому дистрибутиву PHP. И обязательно попробуйте перезагрузить компьютер.
25 Ответ от ozzon91 2011-08-28 11:47:35
- ozzon91
- Редкий гость
- Неактивен
- Зарегистрирован: 2010-02-25
- Сообщений: 20
Re: Php не видит модули
исключено я ставлю php всегда в одну и туже директорию, выже видите path в phpinfo()
Страницы 1 2 Далее
Чтобы отправить ответ, вы должны войти или зарегистрироваться