Can't make Laravel 4 to work on localhost

前端 未结 14 1925
梦毁少年i
梦毁少年i 2020-12-01 05:18

I\'m trying Laravel for the first time after reading an announcement of the Laravel4 beta releasing.

I followed these steps I installed composer and laravel with all

相关标签:
14条回答
  • 2020-12-01 06:07

    In my case I resolved this error by modifying in file /app/config/app.php the default setting:

    'url' => 'http://localhost',
    

    to my local custom virtualhost host url:

    'url' => 'http://mydomain.local',
    

    This seemed to be THE essential change that resolved the issue (I also chmod'ed the storage folder, as suggested here)

    hope this helps some of you..

    0 讨论(0)
  • 2020-12-01 06:09

    I like this method better than changing permissions to 777. Set Apache to run as you.

    1. In terminal type id to get uid=123(Myname).

    2. Open /etc/apache2/httpd.conf and edit it to use your username.

      <IfModule unixd_module>
         User Myname
         Group staff
      </IfModule>
      
    3. Back to terminal: sudo apachectl restart

    0 讨论(0)
提交回复
热议问题