How to run php artisan migrate on the web server

0

I passed the Laravel 5.4 project for hosting, but now I do not know a way to use php artisan migrate to create my tables in the database.

I created a file in the public folder named installation.php with the following code:

<?php 
   // installation.php file
   echo exec('php /var/www/laravel-app/artisan migrate:install');

That way when I accessed this file my tables were automatically migrated. I got the following return:

Warning: exec(): Unable to fork [php /home/MEU_ENDEREÇO/public_html/PROJETO/artisan migrate:install] in /home/MEU_ENDEREÇO/public_html/PROJETO/public/installation.php on line 3

I would like to know the ways that I can perform such a procedure or to resolve this error.

Att. Thank you for your attention.

    
asked by anonymous 24.02.2017 / 12:59

1 answer

0

I got in touch with my hosting and enabled ssh, after that it was only necessary to run the php artisan commands that everything worked perfectly.

Thanks to all who collaborated and @Anderson Carlos Woss who commented on hosting ssh

    
02.03.2017 / 21:46