Click to See Complete Forum and Search --> : --with-mcrypt and PHP


sajeet
03-05-2003, 06:08 PM
Hello,

I have a dedicated server from my web host that has RedHat 7.3 installed with PHP 4.1.2, all installed from RPM. My PHP application is telling me:

In order to use crypt class you must have libmcrypt >= 2.4.x installed and PHP must be compiled with --with-mcrypt

What would be the appropriate steps to "compile" PHP with the proper directives as stated above? Also, there are no RPMs for PHP 4.2 or 4.3 available online, does anyone know how to upgrade without RPMs??

Your help is greatly appreciated!

-Sam

ftrudeau
03-05-2003, 11:08 PM
In order to use PHP 4.2 or 4.3 on your RedHat 7.2 system, with mcrypt, you will have to download the PHP 4.1.2 RPM source file, install it, replace the sources of PHP 4.1.2 in the sources directory with the sources of PHP 4.2 (or 4.3...) which you can get from PHP.net, install mcrypt from the source, add the --with-mcrypt directive to the configuration file of PHP, rebuild the RPM (cross your fingers), then install the RPM (cross your fingers again). This is no simple task, and you might have many problems during the building process.

I really suggest you build your PHP from source, and avoid RPMS as much as possible ... well, this is my philosophy, for I have require to have custom modules for my own applications and web site.

Hope this helps, if not, PM me, and we could arrange something.

sajeet
03-06-2003, 02:19 PM
Thank you very much for the detailed reply...

One question though, is it possible to install PHP from source if Apache is installed from an RPM???

Thanks!