473,586 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extension files not loading

I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,

"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ct.d ll' - The specified module could not be found.\r\n in
Unknown on line 0"

I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:

extension_dir=" C:/PHP/ext"

and

extension_dir=./ext/

I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.

How do I get php to find these files?

Thanks
Dec 3 '07 #1
15 3677
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mb****@phys.ks u.eduwrote:
I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,

"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ct.d ll' - The specified module could not be found.\r\n in
Unknown on line 0"

I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:

extension_dir=" C:/PHP/ext"

and

extension_dir=./ext/

I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.

How do I get php to find these files?

Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup....)
--
Rik Wasmus
Dec 3 '07 #2
On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ks u.eduwrote:
I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ct.d ll' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:
extension_dir=" C:/PHP/ext"
and
extension_dir=./ext/
I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.
How do I get php to find these files?

Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup....)

--
Rik Wasmus- Hide quoted text -

- Show quoted text -
Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir=" C:\PHP\ext"

results in lines of the form:

"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\
\ext\\php_sybas e_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
Dec 3 '07 #3
pdhb_1 wrote:
On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
>On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ks u.eduwrote:
>>I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ct .dll' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:
extension_dir ="C:/PHP/ext"
and
extension_dir =./ext/
I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.
How do I get php to find these files?
Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup....)

--
Rik Wasmus- Hide quoted text -

- Show quoted text -

Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir=" C:\PHP\ext"

results in lines of the form:

"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\
\ext\\php_sybas e_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
This can also occur if one of the DLL's required by the PHP SyBase DLL
can't be found. Do you have the SyBase libs installed and available for
loading (i.e. in your PATH environment)?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Dec 3 '07 #4
On Dec 3, 2:50 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
pdhb_1 wrote:
On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ks u.eduwrote:
I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ct. dll' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:
extension_dir= "C:/PHP/ext"
and
extension_dir= ./ext/
I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.
How do I get php to find these files?
Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup....)
--
Rik Wasmus- Hide quoted text -
- Show quoted text -
Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir=" C:\PHP\ext"
results in lines of the form:
"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\
\ext\\php_sybas e_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"

This can also occur if one of the DLL's required by the PHP SyBase DLL
can't be found. Do you have the SyBase libs installed and available for
loading (i.e. in your PATH environment)?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===- Hide quoted text -

- Show quoted text -
It's not just 'php_sybase_ct. dll' that isn't loading. It's a long list
of libraries that are present in the ext directory that aren't being
found no matter what I do. There are about 17 that aren't loading. it
could be that they all are failing to find external dependencies.

My issue is that php scripts are not being recognized. I believed that
it was because some of these include files were not being found, but
perhaps it is more of an issue with how I have apache configured.
Dec 4 '07 #5
pdhb_1 wrote:
On Dec 3, 2:50 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>pdhb_1 wrote:
>>On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ks u.eduwrote:
I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ ct.dll' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:
extension_d ir="C:/PHP/ext"
and
extension_d ir=./ext/
I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.
How do I get php to find these files?
Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup... .)
--
Rik Wasmus- Hide quoted text -
- Show quoted text -
Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir ="C:\PHP\ext "
results in lines of the form:
"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\
\ext\\php_syb ase_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
This can also occur if one of the DLL's required by the PHP SyBase DLL
can't be found. Do you have the SyBase libs installed and available for
loading (i.e. in your PATH environment)?

--
============== ====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attg lobal.net
============== ====- Hide quoted text -

- Show quoted text -

It's not just 'php_sybase_ct. dll' that isn't loading. It's a long list
of libraries that are present in the ext directory that aren't being
found no matter what I do. There are about 17 that aren't loading. it
could be that they all are failing to find external dependencies.

My issue is that php scripts are not being recognized. I believed that
it was because some of these include files were not being found, but
perhaps it is more of an issue with how I have apache configured.
Yes, if you can't load all of those extensions, you have a problem.

First of all, get rid of the extensions and get phpinfo() to work.
Verify you're working with the correct php.ini file and the proper
extension directory. Then try loading your extensions one at a time.

Remember you have to completely stop and start Apache after changing the
php.ini file. You cannot just restart it.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Dec 5 '07 #6
Greetings, pdhb_1.
In reply to Your message dated Monday, December 3, 2007, 21:46:25,
I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ct.d ll' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:
extension_dir=" C:/PHP/ext"
and
extension_dir=./ext/
First of all, extension_dir should be an ABSOLUTE path to where extension
libraries are stored.
I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.
Check the phpinfo() output to see the actual value of that variable for Your
scripting environment.
--
Sincerely Yours, AnrDaemon <an*******@free mail.ru>

Dec 5 '07 #7
Greetings, pdhb_1.
In reply to Your message dated Tuesday, December 4, 2007, 00:15:38,
Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir=" C:\PHP\ext"
results in lines of the form:
"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\
\ext\\php_sybas e_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
Add
LoadFile path/to/SyBaseSharedDll s

into Your httpd.conf before

LoadModule php5_module

Example:

LoadFile C:/usr/sbin/php-5.2.2-Win32/libeay32.dll
LoadFile C:/usr/sbin/php-5.2.2-Win32/ssleay32.dll

LoadFile C:/usr/sbin/php-5.2.2-Win32/libmysql.dll

LoadFile C:/usr/sbin/php-5.2.2-Win32/php5ts.dll
# LoadFile C:/usr/sbin/php-5.2.2-Win32/dlls/iconv.dll

LoadModule php5_module "C:/usr/sbin/php-5.2.2-Win32/php5apache2_2_f ilter.dll"

<IfModule php5_module>
php_admin_value extension_dir "C:/usr/sbin/php-5.2.2-Win32/ext"
PHPIniDir "C:/usr/sbin/php-5.2.2-Win32"
</IfModule>

--
Sincerely Yours, AnrDaemon <an*******@free mail.ru>

Dec 5 '07 #8
pdhb_1 wrote:
On Dec 3, 2:50 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>pdhb_1 wrote:
>>On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ks u.eduwrote:
I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ ct.dll' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the "extension_ dir" line in the php.ini file every way
I can think of, including the original:
extension_d ir="C:/PHP/ext"
and
extension_d ir=./ext/
I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.
How do I get php to find these files?
Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup... .)
--
Rik Wasmus- Hide quoted text -
- Show quoted text -
Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir ="C:\PHP\ext "
results in lines of the form:
"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\
\ext\\php_syb ase_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
This can also occur if one of the DLL's required by the PHP SyBase DLL
can't be found. Do you have the SyBase libs installed and available for
loading (i.e. in your PATH environment)?

--
============== ====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attg lobal.net
============== ====- Hide quoted text -

- Show quoted text -

It's not just 'php_sybase_ct. dll' that isn't loading. It's a long list
of libraries that are present in the ext directory that aren't being
found no matter what I do. There are about 17 that aren't loading. it
could be that they all are failing to find external dependencies.

My issue is that php scripts are not being recognized. I believed that
it was because some of these include files were not being found, but
perhaps it is more of an issue with how I have apache configured.
Hi,

Did you check filepermissions ?
Can PHP actually read these files? (I don't think it needs more than
read permissions)
IIS -IUSR_<machinena me>
Apache -nobody or apache or www-data (check which one first of course)

Regards,
Erwin Moller
Dec 5 '07 #9
AnrDaemon wrote:
Greetings, pdhb_1.
In reply to Your message dated Tuesday, December 4, 2007, 00:15:38,
>Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir= "C:\PHP\ext "
>results in lines of the form:
>"PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\
\ext\\php_syba se_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"

Add
LoadFile path/to/SyBaseSharedDll s

into Your httpd.conf before

LoadModule php5_module
If an Apache module doesn't use those files it is not necessary to load
them in the Apache configuration. The PHP extension will call for them
to be loaded.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Dec 5 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1705
by: Andy G | last post by:
I hate to post just a general error like this but one of my clients that coded this system is getting an error when loading a page. I know that you can't point out the specific problem so forget about what is behind this error. Just wondering is someone can read into this error and point me the right way. Error Loading...
1
5489
by: snapcount | last post by:
Hi, I need some help with this. I've enabled php_gd2.dll and php_mbstring.dll in the php.ini file and they're loading ok but the php_mysql.dll is not getting loaded. Apache's error.log reports: PHP Warning: PHP Startup: Unable to load dynamic library 'c:/program files/php/ext/php_mysql.dll' - The specified module could not be found.\r\n...
1
2106
by: tyler | last post by:
I've written a small python extension but I'm having difficulty loading it at runtime. The source for my extension is a module which is a member of a package is organized as follows. test/setup.py test/myutils/__init__.py test/myutils/netmodule.c my setup.py file for building / installing looks like this
1
2309
by: Jarle Aase | last post by:
Hi, I wrote a multilanguage cms system a few years ago. Different languages are handled by loading php-files where each language-specific string is assigned to a normal php-variable ($LNG array). This loading takes place for each request. Now I'm developing a backend server in C++ that will allow some better security-checking, session...
5
2022
by: malkarouri | last post by:
Hi everyone, Is it possible to write a Python extension that uses the Boehm garbage collector? I have a C library written that makes use of boehm-gc for memory management. To use that, I have to call GC_INIT() at the start of the program that uses the library. Now I want to encapsulate the library as a CPython extension. The question is...
2
2717
by: msch.prv | last post by:
I have been experimenting with VWD Express Extension 3.5 and noticed that quite often it takes up to 1..2 min to load external js or css files. This occurs often after rebuilding the site. The problem seems to be linked to retrieving small ( approx 200 bytes) graphics files, as evidenced in Firefox' Firebug tracing graphics. Currently, the...
5
7942
by: Chuck Anderson | last post by:
I run Apache 2.0.55, and Php (both 4.4.1 and 5.2.5) on my home PC (Windows XP). One of the scripts that I run daily needs to access a secure URL (https://..............). When I am running Php4, it can open the file. However, when I run Php5 I (now) get this error message: "Unable to find the wrapper "https" - did you forget to enable it...
11
3356
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
With Apache's mod_rewrite module I can keep *.php files and load them as *.html files: # Make http//example.com/foo/bar.html load /home/site/foo/bar.php RewriteEngine On RewriteRule ^(.*)\.html$ $1.php But, is there any elegant way to prevent direct access to "http//example.com/foo/bar.php"? No matter the "L" flag, all *.html requests...
8
7457
by: Ron | last post by:
I am building a dynamic image loading class. I have a list of properties that have associated images in a specified directory. The problem they are multiple formats which are not known at runtime...and to make matters worse users are allowed to use images in any format...so long as they have the filename that matches the property name. My...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.