Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mstdmstd's avatar

How install my local Laravel 5.4 application on AWS/ubuntu 16 hosting?

Hello,

I need to install my local Laravel 5.4 application from my local server(kubuntu 16) on my AWS hosting, based on ubuntu 16.

Have I to do it in the same way, as I did on my local comp: add line like 127.0.0.3 local-project.com in etc/hosts : and running command like a2ensite local-project.com.conf in /etc/apache2/sites-available directory?

What else have I to pay attention at?

If there is some detailed instruction for this?

0 likes
1 reply
spekkionu's avatar

If you want to use apache then this is the generally recommended way of running php.

https://www.howtoforge.com/tutorial/apache-with-php-fpm-on-ubuntu-16-04/

If you want to run the newest version of php rather than be locked into the version in your OS repository I would add a ppa for php and use that instead.

https://launchpad.net/~ondrej/+archive/ubuntu/php

PHP 7.0 will reach eol in December 2018 so you have a while but you may want to run on 7.1 now and update to 7.2 when it comes out and so on.

If you don't want to bother with any of this server admin stuff take a look at Laravel forge which will do all of this for you.

https://forge.laravel.com/

You can also help automate your deployment process with Laravel Envoyer.

https://envoyer.io/

Please or to participate in this conversation.