Install and configuration of IIS/PHP/Zend and deployment of RMC Web Sites

excitingwonderlakeInternet and Web Development

Dec 13, 2013 (3 years and 7 months ago)

169 views


1

Install and configuration o
f
IIS
/PHP/Zend and deployment of
RMC Web Sites

1.

Install IIS



Preparing OS install image (e.g Windows 2003 Enterprise Edition with SP2 CD
-

Rom)



Open 'Add/Remove Windows Components' which can be found in ‘Add /Remove
Programs' in
the 'Control Panel', then install IIS with all default installation
settings.

2.

Install FastCGI Extension for IIS



Download FastCgi (fcgisetup32.msi) from
http://www.microsoft.com/downloads




Double
-
click fcgi
setup32.msi and install FastCGI.



For IIS 6, if you check “Web Service Extensions” in IIS manager, “FastCGI
handler” can be shown in the list.

3.

Install PHP



Download PHP 5.2.X non thread safe package from
http://www.php.c
om

(e.g.
php
-
5.2.10
-
nts
-
Win32
-
VC6
-
x86.msi)



Install PHP 5.2.x to a user chosen path, make sure:



Select the “IIS FastCGI” in “Web Server Setup” page



Select to install the following two extensions in “Choose Item to Install” page




“Multi
-
Byte String”




“XSL”

4.

Configure FastCGI to work with PHP



Find and open fastcgi.ini from folder of C:
\
Windows
\
system32
\
inetsrv
\
, make
sure you have followings:

……

[Types]

php=PHP

[PHP]

ExePath=C:
\
Program Files
\
php
\
php
-
cgi.exe

InstanceMaxRequests =10000

ActivityTimeout=300

Reque
stTimeout=300

EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:C:
\
Program
Files
\
PHP
\

……

5.

Configure IIS and Test IIS/PHP integration



Open IIS Manager, right click IIS default website and select "Properties" from
the list. Then select the "Home Directory" ta
b and click on "Configuration".

2

Click “Add”, and then add “C:
\
Windows
\
system32
\
inetsrv
\
fcgiext.dll” into
Executable box. Complete other box and options as follows.






Restart IIS



Create a file named phpinfo.php with the following simple content:



<?php


phpinfo();


?>



Save the PHP page in the default web root folder (e.g. C:
\
inetput
\
wwwroot).



Open your browser and enter the following URL: http://localhost/phpinfo.php,
and you should see a webpage showing PHP Version information.

6.

Confi
gure Zend



Download ZendFramework
-
1.8.2 from
http://framework.zend.com/download/latest

(e.g. ZendFramework
-
1.8.2.zip)



Unzip it into a folder (e.g. D:
\
ZendFramework
-
1.8.2)

7.

Configure Zend and PHP



Edit

the PHP configure php.ini file in the PHP install directory, and make sure that
you have the following:

……

;Adjust your path accordingly below

include_path = ".; D:
\
ZendFramework
-
1.8.2
\
library
\
"

……

error_reporting = E_ALL & ~E_NOTICE

……

[PHP_MBSTRING]

extension=php_mbstring.dll

[PHP_XSL]

extension=php_xsl.dll

……



After the php.ini file is edited, you need to restart the IIS Server.


3

8.

Publish and Deployment of RMC Web Sites and Search the Sites



Launch RMC and publish a configuration with PHP/Lucene search c
apability to a
user chosen folder, e.g. small
-
rup



Create a Virtual directory and point it to published web site folder, please make
sure check the option of “Execute (such as ISAPI applications or CGI)” in
“Access Permission” page.



Find the “index” folder
under published website folder (e.g.
C:
\
inetpub
\
wwwroot
\
small
-
rup
\
search
\
) and give the
write

and
execute

permission to “internet guest account user. (e.g. IUSR_$HostName).



Open the browser and enter the URL:
http://localhost/small
-
rup/index.htm



Try to search for some term, and you should see a list of search results returned
promptly.