I just finished installed Apache2.4.2 and pHp5.4.5
Now when is stated server i get PHP startup error “Unable to load dynamic library xyz.dll for about 12 extensions. Now when I copy files from pHp directory to system32, many of these errors get removed, but I’ve heard of environment variables and I want to use environment variables instead of copying every file to system32.
Thanks
Varun Agrawal
(Presuming Apache is running as Windows Service)
The following, from Search Order for Desktop Applications, describes the search order used to to locate a DLL:
GetSystemDirectory()function to get the path of this directory.GetWindowsDirectory()function to get the path of this directory.PATHenvironment variable. Note that this does not include the per-application path specified by theApp Pathsregistry key. TheApp Pathskey is not used when computing the DLL search path.By modifying the
PATHenvironment variable to contain the directory in which your DLLs reside would allow them to be found. However, as Apache is running as a Windows Service not only would Apache require a restart, but the Services Control Manager would require a restart. The only way (that I know of) to restart the Services Control Manager is to reboot the machine.To edit the system
PATHenvironment variable (on XP anyway):My Computerand selectPropertiesAdvancedtab in theSystem Propertiesdialog that appearsEnvironment VariablesbuttonPATHin theSystem variableslistEditand add your directory