suphp and mcrypt

June 6, 2014 6.1k views
Trying to setup a server to test a magento shopping cart. I thought I had everything setup but apparently not. When I try to configure a new magento cart I get this warning: PHP extension "mcrypt" must be loaded. I'm unable to continue because of this. My droplet is ubuntu 14.04 apt-get install apache2 php5 php5-mcrypt php5-gd php5-curl libapache2-mod-php5 mysql-server mysql-client php5-mysql libapache2-mod-suphp vftpd my suphp.conf reads like this # # SetHandler application/x-httpd-suphp # AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml suPHP_AddHandler application/x-httpd-suphp suPHP_Engine on This droplet is replacing an old server that was configured a couple of years back. I always had permission problems until someone installed suphp for me. Although suphp wasn't installed till quit some time after the previous server was provisioned so not sure if I should just temporarily disable suphp just to proceed and then enable it after, or if I'm just not configured properly.
1 Answer
Make sure php5-mcrypt is enabled:

sudo php5enmod mcrypt
sudo service apache2 restart
  • Thanks but I didnt notice your response until now. When you run the php5enmod utility would that be the same as manually adding to php.ini? extension=/usr/lib/php5/20121212/
  • Yes:
    # cat /etc/php5/mods-available/mcrypt.ini 
    ; configuration for php MCrypt module
Have another answer? Share your knowledge.