Installing mhash on fedora 1 already running php5 and apache2
| From: | Thulani Maphosa | Date: | Sat, 18 Sep 2004 16:56:51 +0000 |
| Subject: | Installing mhash on fedora 1 already running php5 and apache2 | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-33435@lists.php.net to get a copy of this message | ||
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 ..
2. cd php-5.01
./configure --with-mhash
make clean
make
make install
cd..
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