Support the ongoing development of Laravel.io →
posted 11 years ago
Installation

Hello!

I'm currently trying to get started with developing using Laravel, and settled on Linode as a suitable host, however I've run into a few issues with the installation process.

I currently have a funcitoning LAMP stack, built using the Linode documentation here: -basic setup -LAMP setup

If I create a new laravel project using the composer.phar install method the following error shows up at the end of the instal sequence in the terminal:

Generating autoload files
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-install-cmd event returned with an error



  [RuntimeException]
  Error Output:

If I attempt to create a project using laravel.phar it initially throws an error that I need to have the php curl extension installed. Once installing that, the laravel.phar installation method appears to install without any issues.

Using either of these methods the project files appear to be created, and I am able to setup an apache virtualhost to direct to their public directory just fine.

The default index.php page generated using either of these methods serves only the text 'Mcrypt PHP extension required.'.

my phpinfo() page lists mcrypt under the module authors section. I also tried to find a way to install mcrypt php extension, thus far what i've found was to use the following command:

apt-get install php5-json

which tells me the most recent version is already installed. I've also tried:

apt-get install phpt-mcrypt

which appears to install mcrypt, however rebooting apache still get me only the 'Mcrypt PHP extension required.' message. I've also tried forcing a clean reinstall of both packages using the --reinstall flag.

Any help is appreciated!

Last updated 3 years ago.
0

Just to followup: php -v shows 5.5.9-1ubuntu4 and this linode is running Ubuntu 14.04LTS.

Last updated 3 years ago.
0
sudo php5enmod mcrypt

Hope it will help.

Last updated 3 years ago.
0

chamnan said:

sudo php5enmod mcrypt

Hope it will help.

Thanks for that!

Last updated 3 years ago.
0

If you try this

sudo php5enmod mcrypt

and get the following error:

  • Module mcrypt ini file doesn't exist under /etc/php5/mods-available

Then try creating the following file:

\etc\php5\mods-available\mcrypt.ini

Put the following into that file and save it.

; configuration for php MCrypt module
extension=mcrypt.so

and then restart your web server and run this again

sudo php5enmod mcrypt
Last updated 9 years ago.
0

Check if you have hosted your Laravel app on Linode correctly. Follow this tutorial to deploy the app again: https://www.cloudways.com/blog/host-laravel-on-linode/ . This method of deploying on Linode is by far the easiest and quickest I have seen.

0

This guide might be helpful to you for installing Laravel on Cloud server: https://dev.to/rizwan_saquib/how-to-create-lamp-stack-with-laravel-on-digital-ocean-server

If manually configuring is complicated and difficult for you, then you may try out a managed hosting platform like Cloudways for that. Here is an example of how easy it is to hosting laravel on Linode: https://www.cloudways.com/blog/host-laravel-on-linode/

0

Sign in to participate in this thread!

Eventy

Your banner here too?

natzapo natzapo Joined 5 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.