Extension files not loading
Extension files not loading
am 03.12.2007 19:46:25 von pdhb_1
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
Re: Extension files not loading
am 03.12.2007 19:51:48 von luiheidsgoeroe
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 wrote:
> 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=3D"C:/PHP/ext"
>
> and
>
> extension_dir=3D./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
Re: Extension files not loading
am 03.12.2007 22:15:38 von pdhb_1
On Dec 3, 10:51 am, "Rik Wasmus" wrote:
> On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 wrote:
> > 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"
Re: Extension files not loading
am 03.12.2007 23:50:51 von Jerry Stuckle
pdhb_1 wrote:
> On Dec 3, 10:51 am, "Rik Wasmus" wrote:
>> On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 wrote:
>>> 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.
jstucklex@attglobal.net
==================
Re: Extension files not loading
am 05.12.2007 00:27:05 von pdhb_1
On Dec 3, 2:50 pm, Jerry Stuckle wrote:
> pdhb_1 wrote:
> > On Dec 3, 10:51 am, "Rik Wasmus" wrote:
> >> On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 wrote:
> >>> 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.
Re: Extension files not loading
am 05.12.2007 02:52:23 von Jerry Stuckle
pdhb_1 wrote:
> On Dec 3, 2:50 pm, Jerry Stuckle wrote:
>> pdhb_1 wrote:
>>> On Dec 3, 10:51 am, "Rik Wasmus" wrote:
>>>> On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 wrote:
>>>>> 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.
jstucklex@attglobal.net
==================
Re: Extension files not loading
am 05.12.2007 16:39:32 von AnrDaemon
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
Re: Extension files not loading
am 05.12.2007 16:43:03 von AnrDaemon
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"
php_admin_value extension_dir "C:/usr/sbin/php-5.2.2-Win32/ext"
PHPIniDir "C:/usr/sbin/php-5.2.2-Win32"
--
Sincerely Yours, AnrDaemon
Re: Extension files not loading
am 05.12.2007 17:51:10 von Erwin Moller
pdhb_1 wrote:
> On Dec 3, 2:50 pm, Jerry Stuckle wrote:
>> pdhb_1 wrote:
>>> On Dec 3, 10:51 am, "Rik Wasmus" wrote:
>>>> On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 wrote:
>>>>> 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_
Apache -> nobody or apache or www-data (check which one first of course)
Regards,
Erwin Moller
Re: Extension files not loading
am 05.12.2007 21:40:35 von Jerry Stuckle
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.
jstucklex@attglobal.net
==================