Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

Setup IIS 8 to run multiple websites under a different application pool with their own PHP configuration file

$
0
0

Hello to all,

I need to setup IIS and PHP to run multiple websites, each of them under a different application pool and each website must have its own configuration stored in php.ini within the private website folder. Also, I need to run IIS applications with different user credentials since the same server will host sites from different customers.

I will describe my scenario to give you more details about this request.

We have two websites hosted on the same server under C:\inetpub\wwwroot\website1 and C:\inetpub\wwwroot\website2 and each of them have their own php.ini file stored within their private folder.

I am using Windows Server 2012 with the default settings; PHP 5.4 with FastCGI and the other modules have been installed using Microsoft Web Platform Installer (WPI) and they are using the default settings too.

I ran the commands below with the parameters changed to my scenario but I have received just a list of errors:

cscript fcgiconfig.js -add -section:"PHP website1.com" -extension:php -path:<php_path> -site:<site_id>

The configuration files have been changed in Windows Server 2012 and some files are not even available anymore; for example the fcgiext.ini file was stored before in %WINDIR%\system32\inetsrv but now its content seems to be moved to applicationHost.config file located at %WINDIR%\system32\inetsrv\config

I can provide the applicationHost.config file or any other relevant information which is needed to solve this request. It will be great if you can point me to a link where I can get the commands/steps which will guide me through the entire configuration process.

 

Kind regards,

Tudor Soimusan


Viewing all articles
Browse latest Browse all 26542

Trending Articles