Ok,
it's not too easy but possible. I don't know how the contract with your provider looks like but manually compiling stuff on your server might cause troubles regarding future provider support. Did you already ask your provider if they can add the missing extensions to the server ?
First of all make sure that neccessary packages are installed. Execute the following command
rpm --query <packagename>
for each of the following packages:
ImageMagick, gd, gd-devel, libpng, libpng-devel, libtiff, libtiff-devel, libjpeg, libjpeg-devel, freetype, freetype-devel, curl, curl-devel
If any of these packages are missing then download and install the most recent versions of that packages.
Install: rpm -Uvh <rpmfiles>
If rpm displays any unresolved dependencies then download and install those packages, too.
Is gcc installed on the system ? You can check that by executing the command:
gcc --version
If gcc is not installed then download and install the gcc package (and any dependencies).
If the packages are installed then the next step will be compiling the extensions you need.
Download and extract the source tarball of php 4.4.2.
Then do the following for each extension:
- cd to <phpsource>/ext/<extension>
- /usr/local/bin/phpize
- ./configure --help (to see if phpize worked and which switches you need)
- ./configure --with-php-config=/usr/local/bin/php-config <additional_switches>
where <additional_switches> differs from extension to extension (like e.g. --with-curl=/usr)
- make
- make install
./configure --help in step 3. displays all switches available for the given extension.
make install should display the location of the extension directory. You need to add that directory to the "extension_dir" line in php.ini. Additionally you need to enable each extension in php.ini by adding an extension=<sofile> line (like e.g. extension=curl.so).
Thomas