Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
44
rated 0 times [  44] [ 0]  / answers: 1 / hits: 39155  / 3 Years ago, sun, september 5, 2021, 7:45:51

I installed a fresh Ubuntu 13.10 on my laptop. Like I usually do, I install the packages I need for Web development, which are nginx, php5-fpm, mysql, php5-mysql, php5-mcrypt and a few others.



After editing some configuration files, this usually works.



But today, since 13.10, an error appears instead of the Web page I expected.



Laravel requires the Mcrypt PHP extension. 


The package php5-mcrypt has been installed and reinstalled.



The command php -m doesn't seem to show mcrypt.



Any idea where the problem could come from? I've done this setup many times and it always worked.


More From » php

 Answers
0

I had the same problem after I upgraded to 13.10 this evening. Apparently this is a genuine Ubuntu 13.10 bug: “phpmyadmin do not recognize php5-mcrypt”. The PHP modules got moved from the conf.d directory to the mods-available directory, and the mcrypt module got left behind.



To fix it I put a symlink to the mcrypt.ini file in the PHP config.



Apache



If you use Apache (rather than php-fpm):



sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
sudo service apache2 restart


php-fpm



Or for php-fpm (rather than Apache):




  1. Make symbolic link to ini files in mods-available



    sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini

  2. Enable mods



    sudo php5enmod mcrypt

  3. Restart FPM



    sudo service php5-fpm restart





[#28959] Sunday, September 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
igeonlothe

Total Points: 370
Total Questions: 121
Total Answers: 114

Location: United States Minor Outlying Island
Member since Fri, Feb 5, 2021
3 Years ago
;