Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8094051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:40:13+00:00 2026-06-05T20:40:13+00:00

I am experiencing a fatal error while using artisan on the (fantastic) Laravel PHP

  • 0

I am experiencing a fatal error while using artisan on the (fantastic) Laravel PHP framework.

I recently downloaded v3.2.1 of Laravel, and I tried running the following command line from within the directory that artisan resides:

php artisan key:generate

This should create a random key for me in my applications/application.php file. (Please see http://laravel.com/docs/artisan/commands for a specific reference to this command.)

However, when I run this command from the shell I receive the following error:

Warning: chdir(): No such file or directory (errno 2) in /home/[USERNAME REMOVED]/websites/[DIRECTORY REMOVED]/htdocs/dev/sb4/paths.php on line 62                                                                                                       

Parse error: syntax error, unexpected T_STRING in /home/[USERNAME REMOVED]/websites/[DIRECTORY REMOVED]/htdocs/dev/sb4/laravel/core.php on line 1  

This is what’s on line 62 of paths.php:

chdir(__DIR__);

This is what’s on line 1 of core.php:

<?php namespace Laravel;

My question is this: Are there any specific environment, directory, or other permissions that I should modify to get artisan up and running.

A little background:

  • I installed Laravel 3.2.1 yesterday for the first time
  • I can run a simple web application successfully on my system (i.e. I can route a request to a controller and load up the associated blade properly)
  • I simply downloaded the Laravel 3.2.1 (laravel-laravel-v3.2.1-8-gaae8b62.zip) from GitHub and extracted it on my server

My environment:

  • PHP 5.3.13 on a shared host at Dreamhost
  • FireSSH to run the commands

My root directory: (permissions in parenthesis)

  • /application (775)
  • /bundles (775)
  • /laravel (775)
  • /public (775)
  • /storage (775)
  • /artisan (664)
  • /paths.php (777)

Please let me know if there are any other details about my setup that relevant. I’m really not sure what will help in troubleshooting this issue.

—

UPDATE: I also posted this issue to Laravel’s GitHub issue tracker. (https://github.com/laravel/laravel/issues/820)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:40:15+00:00Added an answer on June 5, 2026 at 8:40 pm

    First off, thanks @KingCrunch, your first response led me down the correct path toward resolving this issue. Additionally, I received an excellent response from Dreamhost technical support (specifically Gary S), who gave me the concise answer I was looking for.

    The issue was: I was running PHP 5.2.17 at the CLI, whereas my web server was running PHP 5.3.13.

    The resolution is: Use

    /usr/local/php53/bin/php artisan <command>
    

    when running artisan commands at the CLI. This will ensure that all of my artisan commands are run using PHP 5.3 and above, which satisfies Laravel’s PHP 5.3+ requirements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am experiencing following error while trying to run application on heroku 2011-06-03T11:24:25-07:00 heroku[nginx]:
I'm using redis with php (predis at http://github.com/nrk/predis/ ) and am experiencing frequent timeout.
I'm currently experiencing the following exception when my spring application starts: 2012-04-27 17:42:51,021 ERROR
i am experiencing some weird behaviour here. i am using the following code to
Is anybody experiencing extreme slowness when using Visual Studio 2008? I have a fairly
I'm experiencing a memory leak when using WMI from Delphi 7 to query a
I have a website running on a Windows 2008 R2 server, using a SQL
I've been experiencing segfaults when running some C++ code. I've isolated the problem to
I've resolved an error some of my users were experiencing whenever my app loads
Experiencing an issue with an Ubercart 2 store that is now running on nginx.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.