Shared hosting run php artisan command, php id хостинг.

shared hosting run php artisan command

Hello, I upload my laravel project to a shared hosting and I wonder if I can run php artisan commands from local? Or what is the easiest way of running those commands in shared hosting?

ralphmorris

Do you have ssh access?

alihuseyin

@ralphmorris I cant see it now. I will ask my shared hosting firm for it. Do we have another way?

Your first mistake is using shared hosting. It’s much better to run Laravel on a VPS or a dedicated box.

I have a number of tiny projects that run on shared hosting and I build a local copy and run all commands there, then FTP the project folder to the shared host.

The sites I have that are on dedicated hosts are much easier to manage but it is possible to use shared hosting.

alihuseyin

@snapey have u ever tried to set up ssh acces in ur shared hosting and run commands there?

Its down to the provider whether they allow SSH or not.

One provider gave ‘restricted’ SSH access but then it would only run php 5.4 from the command line even though the website itself was on php 7.0

Please sign in or create an account to participate in this conversation.

Choose a Filter

Popular This Week

  • Popular All Time

  • Or Pick a Channel

    my registration Proccess is HACKED! (how?) (L5.1 version)

    Save Image/file naming

    [Package Development] Why is Post Route in a Package thrown an exception without a message?

    Use UUID field instead of ID field to update User Profile

    Beginner Q: Overwriting/changing Bootstrap 4 default colors.

    Installing the Laravel New Project error ecountered

    how to display articles in an order without duplications

    function not defined

    2 Middlewares in group isn't working.

    How to create a new table and desired attributes and 'model for that table' only through code not by using terminal in laravel.

    The most concise screencasts for the working developer, updated daily.

    Want us to email you occasionally with Laracasts news?

    Lots of your peers think Laracasts is one of the best things ever. So buy Jeffrey lunch once a month, see for yourself, and massively level up your skills in the process.