By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,883 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,883 IT Pros & Developers. It's quick & easy.

Unable to load dynamic link library php_mysql.dll - Apache 2.2.6/PHP 5.2.6

P: n/a
Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web server
instance that is loaded on a Windows 2003 server operating system (R2 SP2).
I have a third party application that will reside within the Apache instance
that requires PHP 5.2.6 loaded with MySql support.

The installation of PHP succedded without incident (it was done manually)
and I can run phpinfo() to get information about the installation. However,
when attempting to load the php_mysql.dll extension I recieve the following
error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n
in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir = "C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber
Oct 14 '08 #1
Share this Question
Share on Google+
9 Replies


P: n/a


"Christopher Koeber" <c[NO_SPAM]koeber@[NO_SPAM]gmail.comha scritto nel
messaggio news:%I******************@fe09.news.easynews.com.. .
Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating system
(R2 SP2). I have a third party application that will reside within the
Apache instance that requires PHP 5.2.6 loaded with MySql support.

The installation of PHP succedded without incident (it was done manually)
and I can run phpinfo() to get information about the installation.
However, when attempting to load the php_mysql.dll extension I recieve the
following error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir = "C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber

Make sure that php reads the correct php.ini.
Try to set display_startup_errors = On in the php.ini to track possible
problems at startup.
Oct 15 '08 #2

P: n/a
Christopher Koeber wrote:
Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web server
instance that is loaded on a Windows 2003 server operating system (R2 SP2).
I have a third party application that will reside within the Apache instance
that requires PHP 5.2.6 loaded with MySql support.

The installation of PHP succedded without incident (it was done manually)
and I can run phpinfo() to get information about the installation. However,
when attempting to load the php_mysql.dll extension I recieve the following
error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n
in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir = "C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber
Do you have the MySQL client libraries installed, and are they
accessible to PHP (i.e. in your PATH statement)?

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

Oct 15 '08 #3

P: n/a
Jerry Stuckle wrote:
Christopher Koeber wrote:
>Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating
system (R2 SP2). I have a third party application that will reside
within the Apache instance that requires PHP 5.2.6 loaded with MySql
support.

The installation of PHP succedded without incident (it was done
manually) and I can run phpinfo() to get information about the
installation. However, when attempting to load the php_mysql.dll
extension I recieve the following error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir =
"C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber


Do you have the MySQL client libraries installed, and are they
accessible to PHP (i.e. in your PATH statement)?
Yes, make sure libmysql.dll is in a directory accessible in the system
PATH environment variable, or the PATH that Apache uses. Restart
Apache after making the changes.

--
Curtis
Oct 16 '08 #4

P: n/a
Thank you for the answer. I have created or set any other php.ini file other
than the default php.ini file that resides in the directory containing the
core php executables: "C:\php\"

Also, I have set display_startup_erros = on but did not find anything
different so far.

Anything else?

Thanks for the time.

"J2Be.com" <l.********@virgilio.itwrote in message
news:48**********************@reader2.news.tin.it. ..
>

"Christopher Koeber" <c[NO_SPAM]koeber@[NO_SPAM]gmail.comha scritto nel
messaggio news:%I******************@fe09.news.easynews.com.. .
>Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating system
(R2 SP2). I have a third party application that will reside within the
Apache instance that requires PHP 5.2.6 loaded with MySql support.

The installation of PHP succedded without incident (it was done manually)
and I can run phpinfo() to get information about the installation.
However, when attempting to load the php_mysql.dll extension I recieve
the following error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir = "C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber


Make sure that php reads the correct php.ini.
Try to set display_startup_errors = On in the php.ini to track possible
problems at startup.


Oct 17 '08 #5

P: n/a
The system does have MySQL installed and there is a client access library
assessable to PHP directly inside of the core executable directory of PHP:
"C:\php\".

The library I am referencing is libmysql.dll.

Anything else may cause this?

Thanks for the time.

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:gd**********@registered.motzarella.org...
Christopher Koeber wrote:
>Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating system
(R2 SP2). I have a third party application that will reside within the
Apache instance that requires PHP 5.2.6 loaded with MySql support.

The installation of PHP succedded without incident (it was done manually)
and I can run phpinfo() to get information about the installation.
However, when attempting to load the php_mysql.dll extension I recieve
the following error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir =
"C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber

Do you have the MySQL client libraries installed, and are they accessible
to PHP (i.e. in your PATH statement)?

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

Oct 17 '08 #6

P: n/a
The libmysql.dll file is directly in the C:\php\ directory. (This
configuration came with the extraction process; I never moved the file).

Any other causes?

Thanks for the time.

"Curtis" <dy****@gmail.comwrote in message
news:PP***************@nwrddc01.gnilink.net...
Jerry Stuckle wrote:
>Christopher Koeber wrote:
>>Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating system
(R2 SP2). I have a third party application that will reside within the
Apache instance that requires PHP 5.2.6 loaded with MySql support.

The installation of PHP succedded without incident (it was done
manually) and I can run phpinfo() to get information about the
installation. However, when attempting to load the php_mysql.dll
extension I recieve the following error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir =
"C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber


Do you have the MySQL client libraries installed, and are they accessible
to PHP (i.e. in your PATH statement)?

Yes, make sure libmysql.dll is in a directory accessible in the system
PATH environment variable, or the PATH that Apache uses. Restart Apache
after making the changes.

--
Curtis

Oct 17 '08 #7

P: n/a
Christopher Kurtis Koeber wrote:
The system does have MySQL installed and there is a client access library
assessable to PHP directly inside of the core executable directory of PHP:
"C:\php\".

The library I am referencing is libmysql.dll.

Anything else may cause this?

Thanks for the time.

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:gd**********@registered.motzarella.org...
>Christopher Koeber wrote:
>>Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating system
(R2 SP2). I have a third party application that will reside within the
Apache instance that requires PHP 5.2.6 loaded with MySql support.

The installation of PHP succedded without incident (it was done manually)
and I can run phpinfo() to get information about the installation.
However, when attempting to load the php_mysql.dll extension I recieve
the following error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir =
"C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber
Do you have the MySQL client libraries installed, and are they accessible
to PHP (i.e. in your PATH statement)?

Is c:\php in your PATH statement?

Also, ensure you are changing the correct php.ini file - use phpinfo()
to find out exactly which one you are using.

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

Oct 17 '08 #8

P: n/a
Thanks for the reply. the PATH variable was the issue! I have successfully
loaded the library now!

Thanks for letting me know about it. I thought I completed all of the
required steps but I didn't...

Regards,
Christopher Koeber

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:gd**********@registered.motzarella.org...
Christopher Kurtis Koeber wrote:
>The system does have MySQL installed and there is a client access library
assessable to PHP directly inside of the core executable directory of
PHP: "C:\php\".

The library I am referencing is libmysql.dll.

Anything else may cause this?

Thanks for the time.

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:gd**********@registered.motzarella.org...
>>Christopher Koeber wrote:
Hello,

I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating
system (R2 SP2). I have a third party application that will reside
within the Apache instance that requires PHP 5.2.6 loaded with MySql
support.

The installation of PHP succedded without incident (it was done
manually) and I can run phpinfo() to get information about the
installation. However, when attempting to load the php_mysql.dll
extension I recieve the following error message:

-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------

I have verified the following:

1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir =
"C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps

Is there anything else that I need to do?

Thanks for your time.

Regards,
Christopher Koeber
Do you have the MySQL client libraries installed, and are they
accessible to PHP (i.e. in your PATH statement)?


Is c:\php in your PATH statement?

Also, ensure you are changing the correct php.ini file - use phpinfo() to
find out exactly which one you are using.

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

Oct 17 '08 #9

P: n/a
Christopher Kurtis Koeber wrote:
>
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:gd**********@registered.motzarella.org...
>Christopher Kurtis Koeber wrote:
>>The system does have MySQL installed and there is a client access library
assessable to PHP directly inside of the core executable directory of
PHP: "C:\php\".

The library I am referencing is libmysql.dll.

Anything else may cause this?

Thanks for the time.

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:gd**********@registered.motzarella.org...
Christopher Koeber wrote:
Hello,
>
I am attempting to perform a PHP installation on an Apache 2.2.6 web
server instance that is loaded on a Windows 2003 server operating
system (R2 SP2). I have a third party application that will reside
within the Apache instance that requires PHP 5.2.6 loaded with MySql
support.
>
The installation of PHP succedded without incident (it was done
manually) and I can run phpinfo() to get information about the
installation. However, when attempting to load the php_mysql.dll
extension I recieve the following error message:
>
-------------
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\ext\\php_mysql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
-------------
>
I have verified the following:
>
1. That I have set up the php.ini file (which resides in C:\php.
Specifically, I have set up the following as it regards to loading the
php_mysql.dll extension
- Set up the extension_dir variable: extension_dir =
"C:\php\ext\"
- Uncommented the line that relates to the php_mysql.dll file"
extension=php_mysql.dll
2. That I have set up the http.conf file for Apache:
- The following lines were added:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php .php3 .htm .html
AddType application/x-httpd-php-source .phps
>
Is there anything else that I need to do?
>
Thanks for your time.
>
Regards,
Christopher Koeber
Do you have the MySQL client libraries installed, and are they
accessible to PHP (i.e. in your PATH statement)?

Is c:\php in your PATH statement?

Also, ensure you are changing the correct php.ini file - use phpinfo() to
find out exactly which one you are using.
Thanks for the reply. the PATH variable was the issue! I have
successfully loaded the library now!

Thanks for letting me know about it. I thought I completed all of the
required steps but I didn't...

Regards,
Christopher Koeber
(Top posting fixed)

Glad to be of help.

P.S. Please don't top post. Thanks.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 17 '08 #10

This discussion thread is closed

Replies have been disabled for this discussion.