473,385 Members | 1,973 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,385 software developers and data experts.

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

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
9 4574


"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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Nancy | last post by:
Hi, When I start my PC(winXP Pro), it always says: Unknown(): Unable toload dynamic library './php_msql.dll' - The specified module could not be found. Then my Apache servre starts, load php...
2
by: R | last post by:
Hi. I have just reintalled my computer and with that; PHP. But.. I keep getting the error: PHP Startup: Unable to load dynamic library 'C:\PHP\modules\php_mysql.dll' - The specified module...
7
by: ccp999 | last post by:
I keep getting this: "PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified module could not be found." when I tried to load the php_mysql.dll...
3
by: Nikola Skoric | last post by:
Hi there, When I try to connect to mysql, I get: Fatal error: Call to undefined function mysql_connect() in D:\www\kviz \scripts\data_connect.php on line 3 PHP Warning: PHP Startup: Unable to...
2
by: MS | last post by:
Why do I keep getting this error mesgage on my phpinfo() page trying to get PHP and MySQL to communicate? I am running this in IIS. Here's what I have - My php.ini resides in my C:\WINNT...
0
by: redally | last post by:
Hi, Can anyone help me out? I run Windows ME and WinMySQLadmin 1.4 and it sees the database OK but. PHP Warning: PHP Startup: Unable to load dynamic library 'D:\php\ext\php_mysql.dll' a device...
0
by: redally | last post by:
Hi, Can anyone help me out? I run Windows ME and I put D:\php into my autoexec.bat, yet I still have to put php.ini into C:\windows to get it read. Then it gives me the message below. I run...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.