简体   繁体   中英

Laravel 4 not working on apache2 localhost

I've followed this post but it's still not working for me.

I have PHP 5.4.26 and mcrypt installed and enabled. I have given 777 permissions to the app/storage folder.

I uploaded my laravel installation (which was working inside another folder, using the built-in laravel development server) to www/laravel/ . When I visit localhost/laravel it gives the laravel root directory listing, rather than running the application.

If I visit localhost/laravel/public I just get a blank page.

Can anyone help me to get apache to run the public/index.php file?

您需要更新httpd.conf文件中的DocumentRoot指令以指向www/laravel而不只是www

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM