It is the correct command. Most people would build the project locally and then push it to the server to avoid this kind of problems. It might be a permission issue!
Error - Script php artisan
Hello All:
I set up my shared hosting to ssh into their box.
However, after installing composer and running the following: "php-cli composer.phar create-project laravel/laravel forum --prefer-dist", I receive the following error:
exception 'ErrorException' with message 'Invalid argument supplied for foreach()' in /../forum/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php:287 Stack trace: #0 /../forum/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php(287): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Invalid argumen...', '/../', 287, Array) #1 /../forum/vendor/symfony/console/Symfony/Component/Console/Application.php(823): Symfony\Component\Console\Input\ArgvInput->hasParameterOption(Array) #2 /../forum/vendor/symfony/console/Symfony/Component/Console/Application.php(123): Symfony\Component\Console\Application->configureIO(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /../forum/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(91): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 /../forum/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 {main} Content-type: text/html Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException] Error Output:
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
Is this a permissions issue, or is this not the correct command to run for Laravel5 install?
Thanks all!
Please or to participate in this conversation.