Answer the question
In order to leave comments, you need to log in
How to install Laravel on a regular hosting server?
Hello. I recently started learning Laravel, deciding that it would be better than working with WordPress. Installed it on my computer, used OpenServer. But now I decided that it's time to move on and need to install it on my hosting. That's just how to do it? Do you need a composer or something else? Well, all these stray from the local server. I would be grateful for the manual. Thanks :)
Answer the question
In order to leave comments, you need to log in
But now I decided that it's time to move on and need to install it on my hosting. That's just how to do it? Do you need a composer or something else?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
You need a console to perform an application upgrade procedure, such as running migrations.
Good hosts usually provide access to ssh, choose those.
But the composer is not needed - the assembly of PHP dependencies, JS and CSS, you run the tests locally, and then copy them to the host.
Everything is very simple! Install laravel on the local, then archive the folder, send it via ftp to the hosting, and then unzip it. This is the fastest and easiest way for me.
You copy completely all files (absolutely all folders and files, as you have on the local server) to the hosting. You change .env (connection to the database) and in the app folder you change the database.php file (connection to the database). Everything!
Then you put putty and already there you work with artisan migrate to push all the tables into the database. Well, that's another question.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question