Hi Everyone,
I am looking for a way to change a default document root("%RoleRoot%\approot\") and to be operated PHP exactly.
In HWC, the document root is unchangeable, it's not able to use.
In Full IIS, the document root can be changed by <sites> on .csdef, but PHP doesn't work because of the following error.
<handler> scriptProcessor could not be found in <fastCGI> application configuration
A Handler is set up as follows.
<add name="PHP via FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="%RoleRoot%\approot\php\php-cgi. exe" resourceType="Unspecified" />
It seems to be unable to recognize "%RoleRoot%" when a webrole is worked as Full IIS.
I tried to set %RoleRoot% on an system environment variable using start-up task, but have no effect.
If those who know the solution of this problem, please advise me.
Of cource, if there is a method of changing a document root on HWC, it also no problem.
Thank you for your consideration.