Re: Installing mhash on fedora 1 already running php5 and apache2

From: Date: Sat, 18 Sep 2004 17:00:18 +0000
Subject: Re: Installing mhash on fedora 1 already running php5 and apache2
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33436@lists.php.net to get a copy of this message
Thulani Maphosa wrote:
Hi, My server is already running php5 and apache2 I want to install mhash. This is what I did; 0. service httpd stop 1. tar -pxzf mhash-0.9.1.tar.gz cd mhash-0.9.1 ./configure make make install cd ..
You have to run phpize before you run ./configure. Also, edit your php.ini to activate the mhash extension. (you may need to add the full path to the installed extension for this to work)
2. cd php-5.01 ./configure --with-mhash make clean make make install cd.. Either --with-mhash or build the extension, but I don't think you can do both.
3. cd httpd-2.0.51 ./configure make clean make make install cd .. 4. service httpd start 5. run www..../mhashtest.php Fatal error: Call to undefined function: mhash() in /var/www/html/mhashtest.php on line 3 mhshtest.php <?php $input = "what do ya want for nothing?"; $hash = mhash(MHASH_MD5, $input); echo "The hash is " . bin2hex($hash) . "<br />\n"; $hash = mhash(MHASH_MD5, $input, "Jefe"); echo "The hmac is " . bin2hex($hash) . "<br />\n"; ?> : Can you guys please assist on how to get the mhash to work


« previous php.pear.dev (#33436) next »