Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anon26889's avatar

Problem creating / setting up Laravel Project (Laravel Newbie)

Hi All,

I've started playing around with Laravel and have run into problems almost immediately and wondered if anyone had the same issues.

I've installed composer and tried setting up a new laravel project using

"composer create-project laravel/laravel --prefer-dist"

It looks like it starts to work then when I get to "Installing dependencies, Installing vlucas/phpdotenv (v1.1.1)" it quits with an error saying segmentation fault.

I subsequently downloaded a laravel base project from the laravel git hub and tried installing with "composer install" but got the same issue.

Lastly i tried installing composer directly to the project directory using the curl command "curl -sS https://getcomposer.org/installer | php" and then using the command "php compser.phar install" but again with the same issue.

Not sure where to go next so any help would be appreciated!

0 likes
7 replies
mstnorris's avatar

Try running

composer dump-autoload -o
composer update
rokkan's avatar

Make sure your system meets the php requirements and the required php extensions are on.

rokkan's avatar

in terminal you can run "php -v" to see your php version number

Snapey's avatar

Something is wrong in your php setup. revert back to the default php.ini if you have changed this before, or re-install php.

anon26889's avatar
anon26889
OP
Best Answer
Level 1

Hi all, thanks for the replies. I've managed to get round it by setting up a homestead dev box, so much simpler. Thanks for taking the time to try and help.

Please or to participate in this conversation.