Hi
I know it sounds silly but i need to know how to install PHP Modules on my server. Im running PHP 4. Its probably very simple but then so am I .
Any help is much appreciated.
Chriz
Hi
I know it sounds silly but i need to know how to install PHP Modules on my server. Im running PHP 4. Its probably very simple but then so am I .
Any help is much appreciated.
Chriz
Moved to the Install forum.
To install PHP modules, you simply need to:
Edit your php.ini file and make sure that the "extension_dir" is set to the correct directory (e.g. c:\php\extensions).
Search the php.ini file for "Dynamic Extensions". In this section, you'll see a list of extensions that have been commented out with semicolons. To enable a certain extension, simply remove the semicolon in front of that line to uncomment it.
NOTE: Some extensions require extra DLLs in order to load. To ensure that all extensions will work properly, I would recommend following the instructions found on the manual page [man]install.windows.extensions[/man] that I have quoted here:
Some of the extensions need extra DLLs to work. Couple of them can be found in the distribution package, in the C:\php\dlls\ folder in PHP 4 or in the main folder in PHP 5, but some, for example Oracle (php_oci8.dll) require DLLs which are not bundled with the distribution package. If you are installing PHP 4, copy the bundled DLLs from C:\php\dlls folder to the main C:\php folder. Don't forget to include C:\php in the system PATH (this process is explained in a separate FAQ entry).
Hi
Im trying to install them on my Linux server, not windows. Do i need to just remove the semicolon? I thought you had to recompile php?
Cheers
Chriz
Woops! That's what I get for assuming.
I believe it depends on which modules you want to enable. Certain ones like MySQL... yes, you have to recompile with "--with-mysql" and whatnot.
ok, so what command from the shell do i use to recompile? and will it require a reboot?
Cheers
Unfortunately, my knowledge of Unix is... somewhat lacking. Hopefully someone else can come along and explain the process in more detail.
In the meantime, you might try searching this board for keywords like: compile, recompile, recompiling PHP, etc.