473,811 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Configuration Problems Part II

Ok, PHP starts beautifully now. But MySQL is another story. When I
restart Apache I get the following error message, which I copied from
the Apache error log:

[Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
91015) Apache 2 module - Jan 6 2005 15:25:33
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

My path is set as follows in php.ini:

extension_dir = "c:/php/ext/"

I also tried it with and without quotes and without the last / to no
avail. And php_mysql.dll does live in this directory. The original path
was "./", which worked just as well. Any clues?
Oct 12 '05 #1
3 1257
James wrote:
Ok, PHP starts beautifully now. But MySQL is another story. When I
restart Apache I get the following error message, which I copied from
the Apache error log:

[Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
91015) Apache 2 module - Jan 6 2005 15:25:33
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

My path is set as follows in php.ini:

extension_dir = "c:/php/ext/"

I also tried it with and without quotes and without the last / to no
avail. And php_mysql.dll does live in this directory. The original path
was "./", which worked just as well. Any clues?


Have you remembered to copy libmysql.dll into the Apache2\bin directory?

-david-

Oct 12 '05 #2
David Haynes wrote:
James wrote:
Ok, PHP starts beautifully now. But MySQL is another story. When I
restart Apache I get the following error message, which I copied from
the Apache error log:

[Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
91015) Apache 2 module - Jan 6 2005 15:25:33
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

My path is set as follows in php.ini:

extension_dir = "c:/php/ext/"

I also tried it with and without quotes and without the last / to no
avail. And php_mysql.dll does live in this directory. The original
path was "./", which worked just as well. Any clues?

Have you remembered to copy libmysql.dll into the Apache2\bin directory?

-david-


I did not remember that. I didn't even find it in the documentation. But
it did the trick. You are a god (small "g") to me. :-)

James
Oct 12 '05 #3
James wrote:
David Haynes wrote:
James wrote:
Ok, PHP starts beautifully now. But MySQL is another story. When I
restart Apache I get the following error message, which I copied from
the Apache error log:

[Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
91015) Apache 2 module - Jan 6 2005 15:25:33
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

My path is set as follows in php.ini:

extension_dir = "c:/php/ext/"

I also tried it with and without quotes and without the last / to no
avail. And php_mysql.dll does live in this directory. The original
path was "./", which worked just as well. Any clues?


Have you remembered to copy libmysql.dll into the Apache2\bin directory?

-david-


I did not remember that. I didn't even find it in the documentation. But
it did the trick. You are a god (small "g") to me. :-)

James

I was having the same problem - see "MYSQLi problem in PHP - earlier on
in this newsgroup.
Thanks to David's help I upgraded to Apache 2 and copied the libmysqli
into the directory and it now all works for me!
Many, many thanks.

Malcolm Wright

Oct 12 '05 #4

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

Similar topics

7
1560
by: Famille Delorme | last post by:
Sorry if this discussion are already submited, but I don't find anything really interresting for me. And sorry for my bad english, it is not my native language. I wrote a program in Python for a school project and I am in trouble. I have make a Python script called conf.py. This file contains dictionnarys for configuration like this: config_sql = { "DATABASE" : "nanana", "USERDB" : "bob",
1
1233
by: Peter Morris | last post by:
Hi, folks. I'm just learning ASP programming in C# using Borland C# Builder I'm having problems, which I think are some sort of configuration issue, with .NET framework or IIS. I'm using XP Pro on a standalone PC. I use C#Builder to create a new ASP.NET Web application. It creates various default files: Web.config, Global.asax, assemblyinfo.cs
7
6579
by: | last post by:
In the beginning we had Ini files. Later we had registery files. Now have xml files and our read-only myapp.config file. My question now, is what is the best way to store and load user and machine specific settings for a .NET program? And what classes, or code do we have to do this in C#? I don't think that using the myapp.config is the best choice to store since the file might be read-only if the program is started from a CD ROM, or...
0
5326
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is written in C#. I created a small .exe file to test that the library builds propertly from configuration and that it communicates properly. This work great in the System.Windows.Forms. However, when I use the library in a web enviroment things...
0
2339
by: matt.delvecchio | last post by:
hey all, recently i was getting this error in my apps: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
3
12065
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) ---> System.Security.SecurityException: Request for the permission of type
2
3630
by: Jan Eliasen | last post by:
Hi I am having some problems reading configuration values from a configuration file, using C# 2.0. I have programmed a Windows Service, and this part goes well - it runs nicely. Now, the Windows Service must call a Web Service every now and then. I have added the web reference, and made it dynamic, so I can change the
2
2737
by: pantagruel | last post by:
Hi, I have a Visual studio 2005 project that runs as a Windows Service. In it I have declared that I am using System.Configuration. I have set one application setting for the service using the settings panel. When I try to do the following;
3
3873
by: Robert Kochem | last post by:
Hi, I have some problems locating .NET Framework Configuration Tool for configuring an snk as fully trusted. On the PC I want to do this only the frameworks up to 3.5 were installed therefore I wanted to download the .Net SDK 2.0 - but the download page said that it is outdated , superseded by the "Windows SDK for Windows Server 2008 and .NET Framework 3.5". Therefore I downloaded the WebInstaller and installed all .Net related...
10
1144
by: =?Utf-8?B?amM=?= | last post by:
Hello, I am able to successfully compile/link/and execute my v2005 applications using v2008 (after the v2008 automatically converts the v2005 configurations settings). I created a "generic" v2008 app wizard program. I changed the configuration settings of the new v2008 to match the "generic" app wizard configuration settings. The applications compile/link OK, but the programs do not execute correctly.
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10644
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.