473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.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?

Thanks
Dec 3 '07 #1
15 3654
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mb****@phys.ksu.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
Dec 3 '07 #2
On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ksu.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_sybase_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.comwrote:
>On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ksu.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_sybase_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*******@attglobal.net
==================

Dec 3 '07 #4
On Dec 3, 2:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
pdhb_1 wrote:
On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ksu.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_sybase_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...@attglobal.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...@attglobal.netwrote:
>pdhb_1 wrote:
>>On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ksu.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_sybase_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...@attglobal.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*******@attglobal.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.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/
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*******@freemail.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_sybase_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
Add
LoadFile path/to/SyBaseSharedDlls

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_filter.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*******@freemail.ru>

Dec 5 '07 #8
pdhb_1 wrote:
On Dec 3, 2:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>pdhb_1 wrote:
>>On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ksu.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_sybase_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...@attglobal.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_<machinename>
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_sybase_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"

Add
LoadFile path/to/SyBaseSharedDlls

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*******@attglobal.net
==================

Dec 5 '07 #10
Greetings, Jerry Stuckle.
In reply to Your message dated Wednesday, December 5, 2007, 23:40:35,
>>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_sybase_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"

Add
LoadFile path/to/SyBaseSharedDlls

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.
But it is the best way I found to ensure I have PROPER versions of DLL's
loaded into workspace. And shared database libraries are for sure used by
apache module - PHP handler. Through their extensions, of course, but again,
You have too few variants to do the job.

1. Place DLL's into shared folder, i.e. %SystemRoot%. Was recommended (place
php#ts.dll into C:/Windows directory), but WORST solution.

2. Add PHP location to %PATH% environment variable. Good enough but what if
You want to use more than one PHP version? I have time while I have shared
hosting with PHP4 and my local projects was written mainly in PHP5.
What if You have many versions of the required DLL? I have MySQL installed
along with PHP and they both have LibMySQL.dll in distro. Apache and PHP both
have OpenSSL libraries in distro. Which one will be loaded into process?
Highly depends on situation, but this ambiguity is unwanted and inappropriate.

3. Load libraries directly ensure that You have loaded what You need exactly.
Wasting server config but looks less ambigous for me.

The PHP extension will call for them to be loaded.
And in some cases failed with that task... LoadFile is intended to solve such
issues.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Dec 8 '07 #11
AnrDaemon wrote:
Greetings, Jerry Stuckle.
In reply to Your message dated Wednesday, December 5, 2007, 23:40:35,
>>>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_sybase_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
Add
LoadFile path/to/SyBaseSharedDlls

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.

But it is the best way I found to ensure I have PROPER versions of DLL's
loaded into workspace. And shared database libraries are for sure used by
apache module - PHP handler. Through their extensions, of course, but again,
You have too few variants to do the job.
Again - they are not used by Apache. They are used by the extensions.
A VERY BIG difference.
1. Place DLL's into shared folder, i.e. %SystemRoot%. Was recommended (place
php#ts.dll into C:/Windows directory), but WORST solution.
A VERY BAD solution.
2. Add PHP location to %PATH% environment variable. Good enough but what if
You want to use more than one PHP version? I have time while I have shared
hosting with PHP4 and my local projects was written mainly in PHP5.
What if You have many versions of the required DLL? I have MySQL installed
along with PHP and they both have LibMySQL.dll in distro. Apache and PHP both
have OpenSSL libraries in distro. Which one will be loaded into process?
Highly depends on situation, but this ambiguity is unwanted and inappropriate.
Another VERY BAD solution.
3. Load libraries directly ensure that You have loaded what You need exactly.
Wasting server config but looks less ambigous for me.
A third VERY BAD solution.
>
>The PHP extension will call for them to be loaded.

And in some cases failed with that task... LoadFile is intended to solve such
issues.
LoadFile does nothing to resolve problems caused by extensions. And, in
fact, it can cause more problems.

Third part libraries need to be available when they are needed. That
means they need to be available to the OS. The way to do this is to
include THOSE LIBRARIES in the Windows PATH (that's what it's there
for). For instance, if you want to use MySQL, then the MySQL bin
directory should be in the path. This makes it available to PHP,
command line utilities and even compiled programs which require it. And
no LoadFile command is needed.

You really need to learn how to *correctly* configure a system, instead
of taking the *expedient* way of doing things.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 8 '07 #12
Greetings, Jerry Stuckle.
In reply to Your message dated Saturday, December 8, 2007, 05:59: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_sybase_ct.dll' - The specified module could not be found.\r
\n in Unknown on line 0"
Add
LoadFile path/to/SyBaseSharedDlls

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.

But it is the best way I found to ensure I have PROPER versions of DLL's
loaded into workspace. And shared database libraries are for sure used by
apache module - PHP handler. Through their extensions, of course, but again,
You have too few variants to do the job.
Again - they are not used by Apache. They are used by the extensions.
A VERY BIG difference.
/picking a magnifying glass
Please show me it in close - I can't see.
>2. Add PHP location to %PATH% environment variable. Good enough but what if
You want to use more than one PHP version? I have time while I have shared
hosting with PHP4 and my local projects was written mainly in PHP5.
What if You have many versions of the required DLL? I have MySQL installed
along with PHP and they both have LibMySQL.dll in distro. Apache and PHP both
have OpenSSL libraries in distro. Which one will be loaded into process?
Highly depends on situation, but this ambiguity is unwanted and inappropriate.
Another VERY BAD solution.
^^^^^^^^^^^^^^^^^^^ (1)
The way to do this is to include THOSE LIBRARIES in the Windows PATH (that's
what it's there for).
^^^^^^^^^^^^^^^^^^^^^^ (2)

Please decide, what was right statement - (1) or (2)
They are completely opposite.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Dec 8 '07 #13
AnrDaemon wrote:
Greetings, Jerry Stuckle.
In reply to Your message dated Saturday, December 8, 2007, 05:59: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_sybase_ct.dll' - The specified module could not be found.\r
>\n in Unknown on line 0"
Add
LoadFile path/to/SyBaseSharedDlls
>
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.
But it is the best way I found to ensure I have PROPER versions of DLL's
loaded into workspace. And shared database libraries are for sure used by
apache module - PHP handler. Through their extensions, of course, but again,
You have too few variants to do the job.
>Again - they are not used by Apache. They are used by the extensions.
A VERY BIG difference.

/picking a magnifying glass
Please show me it in close - I can't see.
Open your eyes. Learn what you're talking about. Then come back when
you have a clue.

I'm not about to give you a complete course on Apache configuration and
everything else you have no idea what you're talking about. This is not
the newsgroup - and it's way too long for a newsgroup, anyway.
>>2. Add PHP location to %PATH% environment variable. Good enough but what if
You want to use more than one PHP version? I have time while I have shared
hosting with PHP4 and my local projects was written mainly in PHP5.
What if You have many versions of the required DLL? I have MySQL installed
along with PHP and they both have LibMySQL.dll in distro. Apache and PHP both
have OpenSSL libraries in distro. Which one will be loaded into process?
Highly depends on situation, but this ambiguity is unwanted and inappropriate.
>Another VERY BAD solution.

^^^^^^^^^^^^^^^^^^^ (1)
>The way to do this is to include THOSE LIBRARIES in the Windows PATH (that's
what it's there for).

^^^^^^^^^^^^^^^^^^^^^^ (2)

Please decide, what was right statement - (1) or (2)
They are completely opposite.

No, they aren't. They are completely accurate.

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

Dec 8 '07 #14
Greetings, Jerry Stuckle.
In reply to Your message dated Saturday, December 8, 2007, 07:32:02,
AnrDaemon wrote:
>Greetings, Jerry Stuckle.
In reply to Your message dated Saturday, December 8, 2007, 05:59: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_sybase_ct.dll' - The specified module could not be found.\r
>>\n in Unknown on line 0"
>Add
>LoadFile path/to/SyBaseSharedDlls
>>
>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.
But it is the best way I found to ensure I have PROPER versions of DLL's
loaded into workspace. And shared database libraries are for sure used by
apache module - PHP handler. Through their extensions, of course, but again,
You have too few variants to do the job.
>>Again - they are not used by Apache. They are used by the extensions.
A VERY BIG difference.

/picking a magnifying glass
Please show me it in close - I can't see.
Open your eyes. Learn what you're talking about. Then come back when
you have a clue.
I'm not about to give you a complete course on Apache configuration and
everything else you have no idea what you're talking about. This is not
the newsgroup - and it's way too long for a newsgroup, anyway.
>>>2. Add PHP location to %PATH% environment variable. Good enough but what if
You want to use more than one PHP version? I have time while I have shared
hosting with PHP4 and my local projects was written mainly in PHP5.
What if You have many versions of the required DLL? I have MySQL installed
along with PHP and they both have LibMySQL.dll in distro. Apache and PHP both
have OpenSSL libraries in distro. Which one will be loaded into process?
Highly depends on situation, but this ambiguity is unwanted and inappropriate.
>>Another VERY BAD solution.

^^^^^^^^^^^^^^^^^^^ (1)
>>The way to do this is to include THOSE LIBRARIES in the Windows PATH (that's
what it's there for).

^^^^^^^^^^^^^^^^^^^^^^ (2)

Please decide, what was right statement - (1) or (2)
They are completely opposite.

No, they aren't. They are completely accurate.
So, according to Your solutions, I should add PHP directory in path, but it
is a very bad solution and i shouldn't do it...
Hmm... I'm stuck. Can You please solve this for me?
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Dec 10 '07 #15
AnrDaemon wrote:
Greetings, Jerry Stuckle.
In reply to Your message dated Saturday, December 8, 2007, 07:32:02,
>AnrDaemon wrote:
>>Greetings, Jerry Stuckle.
In reply to Your message dated Saturday, December 8, 2007, 05:59: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_sybase_ct.dll' - The specified module could not be found.\r
>>>\n in Unknown on line 0"
>>Add
>>LoadFile path/to/SyBaseSharedDlls
>>>
>>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.
But it is the best way I found to ensure I have PROPER versions of DLL's
loaded into workspace. And shared database libraries are for sure used by
apache module - PHP handler. Through their extensions, of course, but again,
You have too few variants to do the job.
>
Again - they are not used by Apache. They are used by the extensions.
A VERY BIG difference.
/picking a magnifying glass
Please show me it in close - I can't see.
>Open your eyes. Learn what you're talking about. Then come back when
you have a clue.
>I'm not about to give you a complete course on Apache configuration and
everything else you have no idea what you're talking about. This is not
the newsgroup - and it's way too long for a newsgroup, anyway.
>>>>2. Add PHP location to %PATH% environment variable. Good enough but what if
You want to use more than one PHP version? I have time while I have shared
hosting with PHP4 and my local projects was written mainly in PHP5.
What if You have many versions of the required DLL? I have MySQL installed
along with PHP and they both have LibMySQL.dll in distro. Apache and PHP both
have OpenSSL libraries in distro. Which one will be loaded into process?
Highly depends on situation, but this ambiguity is unwanted and inappropriate.
>
Another VERY BAD solution.
^^^^^^^^^^^^^^^^^^^ (1)

The way to do this is to include THOSE LIBRARIES in the Windows PATH (that's
what it's there for).
^^^^^^^^^^^^^^^^^^^^^^ (2)

Please decide, what was right statement - (1) or (2)
They are completely opposite.

>No, they aren't. They are completely accurate.

So, according to Your solutions, I should add PHP directory in path, but it
is a very bad solution and i shouldn't do it...
Hmm... I'm stuck. Can You please solve this for me?

Nope. Learn to read. Then learn how to do things correctly before
suggesting others screw up their systems like you have yours.

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

Dec 10 '07 #16

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

Similar topics

1
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...
1
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:...
1
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. ...
1
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...
5
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...
2
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...
5
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,...
11
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...
8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.