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:
1 |
sudo apt-get install php5-mcrypt |
Enable Mcrypt:
1 2 |
sudo php5enmod mcrypt service php5-fpm restart |
Restart nginx server:
1 |
service nginx restart |
Another issue is the public folder. In order to hide it create a .htaccess file with the following content:
1 2 3 4 5 |
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> |
Now you are able to deploy Laravel sites.