logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



The LoadFile directive

 
Post new topic   Reply to topic    Apache Forum Index -> How-to's & Documentation & Tips



View previous topic :: View next topic  
Author Message
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 610
Location: Milford, MA, USA

PostPosted: Fri 11 May '07 4:05    Post subject: The LoadFile directive Reply with quote

Many of the questions in these forums concern non-Apache .dll files, and where to put them.

An Apache directive I like is LoadFile.

This directive loads any .dll into the Apache process.
It works best when used just before a LoadModule to control exactly which additional .dll's the module uses.

For example:
Code:
LoadFile "C:/work/SpecialTest/libeay32.dll"
LoadFile "C:/work/SpecialTest/ssleay32.dll"
LoadModule ssl_module modules/mod_ssl.so

This will load the OpenSSL libraries from C:\work\SpecialTest\, ignoring any OpenSSL .dll's which are in the Apache \bin directory or in your PATH.

Since ssleay32.dll depends on libeay32.dll, it is best to always load them in this order: libeay32 first.

Another combination I often use is:
Code:
LoadFile "C:/MySQL/bin/libmysql.dll"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"

This ensures that PHP uses the MySQL client library in C:\MySQL\bin\ and no other.
No need to copy libmysql.dll into the Apache \bin directory (or even worse - copy it into System32 which IMHO is an evil practice!)

Finally, if you ever want to examine a running Apache httpd process and see exactly which .dll files it is using
- the Microsoft Process Explorer utility is worth knowing about.

-tom-
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Fri 11 May '07 7:41    Post subject: Reply with quote

Tom you made a good catch with that! The idea to load the right libmysql.dll for php is great. I only loaded libxml2.dll for mod proxy html.

A+ for that idea
Back to top


Post new topic   Reply to topic    Apache Forum Index -> How-to's & Documentation & Tips
Page 1 of 1