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

Robert-Broley's avatar

Deploying a L5 application

hello,

I am looking at testing my application on my cloud hosting.

Is it a straightforward process?

0 likes
20 replies
Robert-Broley's avatar

Right okay. Sounds good. I've seen Forge but I was just wondering if I could do it manually. As what you've said sounds straight forward. Hopefully it is.

thinkjay's avatar

@Robert-Broley I need to put mine up on a hosted server soon as well, let me know how it goes!

Robert-Broley's avatar

Ive uploaded all of my files to my cloud hosting. But I cannot view the home page. But I have put all of the files in public_html. I have also setup my MySQL database but how would I migrate the ones that come with L5 please?

vipin93's avatar

@Robert-Broley apache or nygix? which one you are using, I know that pain you are facing , becz i also faced that pain when i try to deploy my app on cloud hosting

Robert-Broley's avatar

Okay the hosting company have setup the SSH for me with

.composer folder .public_html folder - I have uploaded my entire Laravel 5 project to here .htaccess .composer.phar file .bashrc .bash_history

I am not too confident with servers you see. I am used to ftp up static websites and wordpress etc but I have never deployed an application before.

vipin93's avatar

@Robert-Broley whats the error you got , and you pointed to public folder and did you done this " sudo nano /etc/apache2/sites-available/000-default.conf" for change the document root

Robert-Broley's avatar

@vipin93

I got this error when viewing the public folder inside public_html

Parse error: syntax error, unexpected '[' in /var/sites/t/example.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 383

vipin93's avatar

@Robert-Broley if uploaded on github then clone it in your document root and then "composer update"

Robert-Broley's avatar

@vipin93 I have cloned the repository and I am just going to ssh into the server and find composer as that has been installed and I will run a composer update.

vipin93's avatar

@Robert-Broley if you cloned the repository then goto your document root and run the command "composer update" if you installed composer globally

Please or to participate in this conversation.