How to Upgrade PHP on Plesk

Plesk is an operating system for servers that allows system administrators to change and optimize the configurations and settings on the server. The Hypertex Preprocessor (PHP) on your computer is used for general-purpose scripting on the server. If you would like to upgrade the PHP on your Plesk server, you can do it yourself with little hassle and just a few keystrokes.

Instructions

    • 1

      Press the "Windows" key and the "R" key together to bring up the "Run" button. Type "mstsc" into the "Run" box and then press the "Enter" button.

    • 2

      Enter your Plesk server's IP Address into the server field. Your provider will be able to give you the IP Address for your Plesk server. Click the "Connect" button to connect to the Plesk server.

    • 3

      Enter your "user name" and "password" into the field that appears on the screen and then click the "OK" button to log into the server as an administrator.

    • 4

      Click on the "Start" button and then click the "Run" button on the control panel. Type "cmd.exe" to bring up the "Command Prompt" with administration permissions.

    • 5

      Remove the current PHP settings with the following command:

      cscript c:\windows\system32\iisext.vbs /RmFile "%plesk_dir%\Additional\php\php.exe"

      cscript c:\windows\system32\iisext.vbs /RmFile "%plesk_dir%\Additional\php\sapi\php4isapi.dll"

    • 6

      Click the "Start" button and then click on the "Computer" icon. Type "%plesk_dir%\Additional" into the location bar at the top of the menu. Press the "Enter" button and then type "%plesk_dir%" to bring up the variable.

    • 7

      Right click on the "PHP" icon and then click the "Rename" icon. Change the name to "PHPPR" for PHP Previous.

    • 8

      Open your Command Prompt from the control panel task bar and then register your old PHP settings as such:

      cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php4\php.exe" 0 PHP 1 "PHP Extensions"

      cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php4\sapi\php4isapi.dll" 0 PHP 1 "PHP Extensions"

      cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php4\php.exe"

      cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php4\sapi\php4isapi.dll"

    • 9

      Open your browser and download the latest version of the PHP software (see Resources). Open your Plesk control panel and click on the "Additional" icon. Right-click on the empty space inside the folder and then click the "New" icon. Click "Folder." Name the folder "PHP."

    • 10

      Access the new PHP software and then open your command prompt again to register the new version of the software with the following command:

      cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php\php-cgi.exe" 0 PHP 1 "PHP Extensions"

      cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php\php5isapi.dll" 0 PHP 1 "PHP Extensions"

      cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php\php-cgi.exe"

      cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php\php5isapi.dll".

Related Searches:

References

Resources

Comments

Related Ads

Featured