Can't make Laravel 4 to work on localhost

前端 未结 14 1924
梦毁少年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 05:44

    I had the same problem, here is how I solve it: In your httpd-vhosts.conf files you need to add the configurations to your folders, this is what I have in mine

    <VirtualHost *:80>
        ServerAdmin your@mail.com
        DocumentRoot "/home/carlospublic_html"
        ServerName carlos.local
        <Directory "/home/carlos/public_html">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
        </Directory>
    </VirtualHost>>
    
    0 讨论(0)
  • 2020-12-01 05:44

    Checking on the Requirement for the LR4, your local server must have these: PHP >= 5.3.7 MCrypt PHP Extension

    Otherwise, will fail. I am facing this trouble also and now looking for an updated PHP and its extension for my XAMPP.

    0 讨论(0)
  • 2020-12-01 05:50

    You need to add: Options +FollowSymLinks

    <IfModule mod_rewrite.c> 
    RewriteEngine on 
    Options +FollowSymLinks
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php/$1 [L] 
    </IfModule>
    
    0 讨论(0)
  • 2020-12-01 05:50

    You need to read the installation documentation:

    http://laravel.com/docs/installation#configuration

    Pay attention to the bit here:

    Laravel requires one set of permissions to be configured - folders within app/storage require write access by the web server.
    

    There is also other stuff thats useful in that document, so make sure you read it all.

    0 讨论(0)
  • 2020-12-01 05:50

    First, this answer here will help you with permissions. Second, you may need to add RewriteBase ~/carlo/public_html/laravel-develop to your .htaccess since you're running it out of a home directory.

    0 讨论(0)
  • 2020-12-01 05:51

    Try to change the folder permissions for the storage folder using the terminal:

    chmod -R 777 storage

    More info on this matter can be found here.

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