Do not bother renaming the file, and do not bother with /usr/local/bin. Just place laravel.phar in the folder where you are going to use it.
Then, make sure you have the PHP curl module installed. On OpenSuse: sudo zypper install php5-curl
.
Then create your new Laravel application with the following command (notice you use the php command to execute the .phar file): php laravel.phar new <project-name>
, e.g. php laravel.phar new sandbox
. A new subfolder will be created with the project-name as its name, containing the skeleton of a Laravel application.
This is happening to me now and I tried what you suggested.
$ php laravel.phar new newproject
No error, no output, no new project... nothing.
After some digging I found out that it is because I'm using suhosen. Anyone else having this problem and using suhosen would need to add:
suhosin.executor.include.whitelist = phar
to: (for Debian)
/etc/php5/cli/conf.d/suhosin.ini
or at the end of:
/etc/php5/cli/php.ini
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community