Here is the error I am getting:
Script php artisan optimize handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
up
I believe this error results from not being able to find mcrypt
.
Script php artisan optimize handling the post-update-cmd event returned with an error
Apparently it is not quite that easy to install mcrypt
.
Install the php5-mcrypt
package, or verify that it has been installed correctly.
sudo apt-get install php5-mcrypt
Check whether mcrypt
has been installed and enabled for PHP:
php --ri mcrypt
You're done if it says:
mcrypt support => enabled
Otherwise, continue if it says:
Extension 'mcrypt' not present.
Verify that mcrypt.ini
is present in PHP's mods-available
directory.
ls /etc/php5/mods-available/mcrypt.ini
If it says No such file or directory
, create a symbolic link from mcrypt.ini
to PHP's mods-available
directory.
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
Enable the mod.
sudo php5enmod mcrypt
Restart apache.
sudo service apache2 restart
Check again whether mcrypt
is enabled.
php --ri mcrypt
The final steps were inspired by Vuk Stanković.