Daniel
07-08-2001, 06:51 PM
I have a customer who needs mhash included in the php build. When I ordered the server at burst I told them to include it in the origanal build but they didn't do it. Now they want to charge me 65.00 to rebuild php. :bawling: I need to know what I need to do to add it myself.:)
freakysid
07-09-2001, 01:35 AM
http://www.zend.com/manual/ref.mhash.php
Do you know how to build php in general? If you are running php as a dynamic apache module you will need a configure command that also has --with-apxs=/path/to/apache/bin/apxs
If you don't there are plenty of tutorials online about how to build php. The tricky thing is that they differ in how they integrate php and apache. Some show you how to compile php into Apache, but for ease of maintenance (and being able to recompile php to add libraries as you are doing here) then building php as a dynamic module (DSO) is the best way to go.
1. gunzip php-x.x.x.tar.gz
2. tar xvf php-x.x.x.tar
3. cd ../php-x.x.x
4. ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-gd=../gd-1.8.4 --with-jpeg-dir=/usr/local --with-xpm-dir=/usr/X11R6 --with-mcrypt --with-mysql --enable-track-vars --with-zlib --with-mhash
5. make
6. make install
7. cd ../php-x.x.x
8. cp php.ini-dist /usr/local/lib/php.ini
I found this at php.net. Is this all I need to do I'm running cpanel. What will I need to backup to be able to return to the working php in case all goes wrong.;)