From version 10.30 of NetHelpDesk onwards, the NetHelpDesk web portal now uses PHP for some of the features, such as rich text on the web portal, the service catalogue and knowledgebase articles. This guide outlines the steps required to enable these features.
On the server which hosts the NetHelpDesk web portal, open up IIS. Select the site for the NetHelpDesk portal, and select Handler Mappings.
Select Add Module Mapping from the right-hand menu.
Add the module mapping as follows:
Request Path: *.php
Executable: *Path to NetHelpDesk Web folder*\RichText\PHP\php-cgi.exe (by default C:\NetHelpDesk\Web\RichText\PHP\php-cgi.exe)
Name: Fast PHP
Then select Request Restrictions and ensure File or Folder is selected.
Save the handler mapping, and if prompted for FASTCGI application creation, click YES.
Back in IIS, select MIME Types.
Click add, and set as follows:
Click OK to create the new MIME type.
If you do not have it installed already, please install Microsoft ODBC driver 11 for SQL Server. This is used to connect to the database.
These can be installed from https://www.microsoft.com/en-gb/download/details.aspx?id=36434.
To confirm PHP is now working, in windows explorer browser to
“*Path to NetHelpDesk Web folder*\RichText\PHP”
Go to File > Open Command Prompt, and type “php-cgi.exe”. If there are no errors then PHP CGI is now working.
One common cause of errors is not having the latest Visual C++ Redistributable for Visual Studio DLLs installed. These are included in the NetHelpDesk\Win\Password Reset, 32/64 bit folder, and can be copied to the RichText\PHP folder.
We now need to configure a connection to the NetHelpDesk database.
In the RichText folder, there is a file called “config_EDIT_ME.php”. Make a copy of this file and rename it “config.php”.
Open the “config.php” file. In there will be variables for host, database name, username and password.
If you need to change these from the default, these can be altered here. When done, save this file and all php related features will use this connection to the NetHelpDesk database.
PLEASE NOTE: if you are using a version before 10.65, the config php file will not exist. You will need to enter the connection details at the top of each PHP file instead.
If you have any further question, please contact the NetHelpDesk support team at www.nethelpdesk.com/support.
NetHelpDesk is available on a range of devices with industry-leading functionality available throughout.