Laravel setup with Ubuntu Parallels Plesk 12 server1 min read

If you own a Ubuntu server with Parallels Plesk 12, then you will realise that Laravel framework will not work with the default setup.

You will get the following error "Laravel requires the Mcrypt PHP extension." Indicating that Mcrypt library is not installed on the server.

Install Mcrypt as follow:

Enable Mcrypt:

Restart nginx server:

 

Another issue is the public folder. In order to hide it create a .htaccess file with the following content:

Now you are able to deploy Laravel sites.