|
Download the PHP.ZIP File. It is listed at the bottom of the article under "Attachments" Extract PHP.ZIP file to c:\ Grant HelmWebusers and IIS_WPG permissions to c:\php Note: If you do not create your domain in IIS using Helm you will need to grant the anonymous user for that site permissions to this folder.

Add C:\PHP to Path
Right-click on My Computer, choose Properties. Flip to the Advanced tab.

Click the Environment Variables button. Double-click the Path variable in the list of System variables.

Either add "C:\PHP;" to the beginning or ";C:\PHP" to the end (sans quotes, not both).

Import C:\php\Phpinipath.Reg file in c:\php Re-boot the server for it to take effect
Add PHP Web Service Extention in IIS
When you open IIS Manager, it should connect to the local computer automatically. Expand the local computer in the left pane Click on "Web Service Extensions" in the left pane. In the right pane, click the blue underlined text, "Add a new Web service extension..."

Enter "PHP ISAPI Extension" as the "Extension name" Click the "Add..." button and browse to the php5isapi.dll file in your PHP install directory Check the "Set extension status to Allowed" checkbox and click "OK"

Configure PHP in Helm.
Click on System Settings > Servers > ServerName Open up the default Web Service Set the Default PHP Version to 5 Set the PHP 5 App Path to C:\php\php5isapi.dll

Go to Home > Reseller Plans > Main Reseller Plan > Plan Resources > Web Resources and set PHP 5 installs to 1000

Go to Home > Users > RSRESELLER > Hosting Plans > Main Hosting Plan > Plan Resources > Web Resources and set PHP 5 installs to 1000
Enable PHP for Any domain in the web site settings.

Cut and paste the code below into a php file and place it in the web root to test.
<?php session_start(); ?> <html> <head> <title>PHP Test</title> </head> <body> <!-- testing sessions --> <!-- testing browscap.ini --> <?php echo $_SERVER['HTTP_USER_AGENT'] . "<br/><br/>"; $browser = get_browser(null, true); print_r($browser); echo "<br/><br/>"; ?> <!-- a general PHP test --> <?php phpinfo(); ?> </body>
|