Vinodh_Kumar
December 8th, 2014, 04:49 PM
Dear Team,
I have tried all the things available in the internet but I am not able to fix this. Please help.
I have done the following:
sudo apt-get install mcrypt
sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/fpm/conf.d/20-mcrypt.ini /etc/php5/mods-available/mcrypt.ini
sudo php5enmod mcrypt
I then have restarted php-fpm (and actually restarted nginx as well, just in case)
When i go to the page with the mcrypt functions i get the following in the log:
2014/12/08 15:12:24 [error] 10779#0: *3 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function mcrypt_module_open() in /mnt/persistent1/mcrypttest/mcrypttesting.php on line 5" while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /dbtest/a.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost"
phpinfo shows the authors of mcrypt, but that's the only entry
Also:
$ php5-fpm -m|grep mcrypt
mcrypt
$ sudo apt-cache policy php5-mcrypt
php5-mcrypt:
Installed: 5.4.6-0ubuntu5
Candidate: 5.4.6-0ubuntu5
Version table:
*** 5.4.6-0ubuntu5 0
500 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
So it's there, but just doesn't do anything.
Thank you
I have tried all the things available in the internet but I am not able to fix this. Please help.
I have done the following:
sudo apt-get install mcrypt
sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/fpm/conf.d/20-mcrypt.ini /etc/php5/mods-available/mcrypt.ini
sudo php5enmod mcrypt
I then have restarted php-fpm (and actually restarted nginx as well, just in case)
When i go to the page with the mcrypt functions i get the following in the log:
2014/12/08 15:12:24 [error] 10779#0: *3 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function mcrypt_module_open() in /mnt/persistent1/mcrypttest/mcrypttesting.php on line 5" while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /dbtest/a.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost"
phpinfo shows the authors of mcrypt, but that's the only entry
Also:
$ php5-fpm -m|grep mcrypt
mcrypt
$ sudo apt-cache policy php5-mcrypt
php5-mcrypt:
Installed: 5.4.6-0ubuntu5
Candidate: 5.4.6-0ubuntu5
Version table:
*** 5.4.6-0ubuntu5 0
500 http://ru.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
So it's there, but just doesn't do anything.
Thank you