so this is my journey to deploy my Codeigniter Application to IIS 8.
first, install this from Windows Platform Installer :
php -> you can choose any version
mysql
Microsoft Drivers (x86 or x64 for PHP <php_version>
after install those platform, go to php.ini for my installation the file goes here C:\Program Files\PHP\v7.2\php.ini, scroll to the bottom of file and make sure the last setting like this:
for [ExtensionList] you can enable what you want and disable it by adding ; in front of extension line. In the code above I enable all extension.
you need to make sure the temp and session path goes to outside of windows folder, because it will conflict with the permission if place it on windows temporary folder, for example I will place in this folder:
next, for those who still experiencing 404 error not found, install this module, this module is important if you want to use .htaccess file to rewrite index.php, on IIS you'll be using web.config to rewrite index.php. Something like this localhost/index.php/auth to this localhost/auth:
so this is my journey to deploy my Codeigniter Application to IIS 8.
first, install this from Windows Platform Installer :
<php_version>
after install those platform, go to
php.ini
for my installation the file goes hereC:\Program Files\PHP\v7.2\php.ini
, scroll to the bottom of file and make sure the last setting like this:for
[ExtensionList]
you can enable what you want and disable it by adding;
in front of extension line. In the code above I enable all extension.you need to make sure the
temp
andsession
path goes to outside of windows folder, because it will conflict with the permission if place it onwindows temporary folder
, for example I will place in this folder:next, for those who still experiencing
404 error not found
, install this module, this module is important if you want to use.htaccess
file to rewriteindex.php
, on IIS you'll be usingweb.config
to rewriteindex.php
. Something like thislocalhost/index.php/auth
to thislocalhost/auth
:otherwise your
web.config file
won't be read by IIS source: https://stackoverflow.com/questions/14607390/iis-urlrewrite-is-not-working-for-iis-8place your
web.config
file to root directory and done.web.config
file: https://gist.github.com/rizuki-ryumada/682a3b65b6539b32264aaceb5ff92c04