note 120363 deleted from ssdeep.installation by cmb
| From: | cmb@php.net | Date: | Wed, 21 Dec 2016 14:17:01 +0000 |
| Subject: | note 120363 deleted from ssdeep.installation by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208685@lists.php.net to get a copy of this message | ||
Note Submitter: hassan at w3 dot zone
----
How to install ssdeep in php 7 :-
# installing ssdeep
wget http://downloads.sourceforge.net/project/ssdeep/ssdeep-2.13/ssdeep-2.13.tar.gz
tar zxvf ssdeep-2.13.tar.gz
cd ssdeep-2.13
./configure
make
sudo make install
ssdeep -h # test
#installing ssdeep_php
wget https://pecl.php.net/get/ssdeep-1.0.4.tgz
tar -zxvpf ssdeep-1.0.4.tgz
cd ssdeep-1.0.4/
nano ssdeep.c
# search for this two lines "RETURN_STRING(hash, 0);"
# and replace the two lines by "RETURN_STRING(hash);"
# just remove the second parameter
phpize
./configure
make
sudo make install
sudo echo "extension=ssdeep.so" > /etc/php/7.0/mods-available/ssdeep.ini
phpenmod ssdeep
service apache2 restart