jeudi 25 février 2016

How can I setup an Laravel project on IIS 7.5?

I have a php application that I write using Laravel framework. I developed it using XAMPP server which was running fine.

I want to move it to a production server where I can use IIS 7.5 to manage my applications.

Here is what I have done

  1. Created a folder called laravel in C:\inetpub\wwwroot
  2. Using PHP Manager I changed the PHP version to 5.6.18
  3. In my php.ini of the version 5.6.18 I enabled the following lines
extension_dir = "ext"
cgi.force_redirect = 0
cgi.fix_pathinfo = 1
fastcgi.impersonate = 1
fastcgi.logging = 0
extension=php_mbstring.dll
extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
date.timezone = "ENTER YOUR TIMEZONE HERE"
session.entropy_length = 32

  1. I installed composer with php 5.6.18
  2. I imported the .httaccess file located in the publich folder using URL Rewrite Model in IIS which created a web.config file. then I moved it to the public folder.
  3. I converted Laravel to Application in IIS
  4. I added phpinfo.php file in the root of my laravel all and I was able to see it via the browser.

But I can't access my laravel app.

When I go to http://localhost/laravel/public/index.php I get an error

HTTP 500 Internal error

I following the blogs below to get where I am at now

http://ift.tt/10asknp

http://ift.tt/1Unjvzj

How can I fix this issue?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire