Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you very much for your tutorial! I’m starting to get into Laravel, just made a new droplet, and this tutorial worked flawlessly. Big thanks and happy coding!
Great tutorial, but can someone change the serverblock. In order to make pagination or other GET variables to work this should be changed
location / { try_files $uri $uri/ /index.html /index.php; }
to
location / {
try_files $uri $uri/ /index.php?$query_string;
}
Hi, great tutorial. I can get through it all with not problem until the last step of installing laravel. After working for a while, I get the following message:
Writing lock file Generating autoload files Mcrypt PHP extension required. Script php artisan optimize handling the post-install-cmd event returned with anerror
[RuntimeException] Error Output:
create-project [-s|–stability=“…”] [–prefer-source] [–prefer-dist] [–repostory-url=“…”] [–dev] [–no-dev] [–no-plugins] [–no-custom-installers] [–noscripts] [–no-progress] [–keep-vcs] [–no-install] [package] [directory] [verson]
Any ideas? Thanks in advance.
@karan: Install php5-mcrypt: <pre>sudo apt-get install php5-mcrypt</pre>.
@Kamal dit that. But I seem to have solved that issue. I needed to enable mcrypt with
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available sudo php5enmod mcrypt
and then restart nginx and php with:
service php5-fpm restart service nginx restart
Also, this tutorial is missing the php json module installation step:
sudo apt-get install php5-json
This worked for me. Hope this helps others as well.
@karan: Apparently things have changed in newer versions of Ubuntu. Glad you managed to fix it! :]
Having a lot of trouble setting up non-www to www redirect.
This is within the sites-available/default
location / { try_files $uri $uri/ /index.php$is_args$args; if ($http_host ~ “example.com”){ rewrite ^(.*)$ http://www.example.com$1 redirect; } }
@Zebhdiyah: Delete the if block and create a new virtualhost as follows: <a href=“https://p.kk7.me/jahubefefi.nginx”>https://p.kk7.me/jahubefefi.nginx</a>
Or this if you want non-www->www: <a href=“https://p.kk7.me/kesenunisa.avrasm”>https://p.kk7.me/kesenunisa.avrasm</a>