Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2006
    Posts
    335

    Wink I want to install PHP 5 on my Plesk server. How can I do it correctly?

    I want to install PHP 5 on my Plesk server. How can I do it correctly?

    Plesk 7.5.5 and higher versions support this version of PHP but they are not able to manage PHP4 and PHP5 at the same time only PHP4 or PHP5.

    If your Plesk version is 7.5.5 or higher you can follow these steps to install PHP5 at your server:

    1. Download PHP5 Windows Binaries www. php.net/downloads.php:

    - PHP 5.x.x zip package

    - Collection of PECL modules for PHP 5.x.x

    2. Remove current PHP4 extensions from Register Web Service Extensions in IIS Web Server:

    Open command prompt:

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

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

    3. Rename folder "%plesk_dir%Additional\Php" to "%plesk_dir%Additional\Php4"

    4. Re-register web service extensions for PHP4.

    Open command prompt:

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

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

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

    cscript c:\windows\system32\ii***t.vbs /EnFile "%plesk_dir%Additional\php4\sapi\php4isapi.dll "
    5. Unzip PHP 5.x.x package into %plesk_dir%Additional\Php.

    6. Unzip Collection of PECL modules into %plesk_dir%Additional\Php\Ext.

    7. Register PHP5 extension in IIS Web Server manually:

    Open command prompt:

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

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

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

    cscript c:\windows\system32\ii***t.vbs /EnFile "%plesk_dir%Additional\php\php5isapi.dll"
    8. Backup or rename C:\Windows\php.ini.

    9. Put attached to this article file php.ini to C:\Windows\php.ini.

    10. Configure default C:\Windows\php.ini according to Plesk configuration.

    Set parameters:

    extension_dir = "%plesk_dir%Additional\Php\ext"

    Example:

    extension_dir ="C:\Program Files\SWsoft\Plesk\Additional\Php\ext"

    11. Re-configure webmail in IIS Web Server to use PHP4 because HORDE webmail does not work on PHP5.

    IIS Management > Web Sites > webmail(default) > Properties > Home Directory tab > Configuration button > Application Extensions > edit value for `.php` extension > set to "%plesk_dir%additional\php4\php.exe"

    Edit "%plesk_vhosts%webmail\horde\php.ini"

    Change parameter:

    extension_dir = "%plesk_dir%Additional\Php4\extensions"

    Example:

    extension_dir ="C:\Program Files\SWsoft\Plesk\Additional\Php4\extensions"

    12. Make sure that PHP5 has been detected by Plesk. You can check in `Plesk > Server > Components Management > Web Scripting section` PHP should be listed there. If not, you need to check whether all the steps were done properly.

    13. Reconfigure domains web-sites in IIS Web Server to use PHP5.

    "%plesk_bin%\websrvmng.exe" --reconfigure-all
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2009
    Posts
    2

    Default

    I just finished updating to PHP 5.2.8 from PHP 4 using the guidelines in this article. Everything worked just as it said it would to an extent. I can now go and look in the Plesk CP and the new version of PHP is shown under Components Management. That is the end of the good news though.

    When I log into phpMyAdmin and click "Show PHP Information", it shows that I'm still using PHP 4.3.10 from a 2005 installation. Also, when I go to the domain that's on my server, it no longer exists (I get: "This webpage is not available"...(etc) and below it says "Error 320 (net::ERR_INVALID_RESPONSE): Unknown error."

    Is there something else that I need to do in order to get my server working again?

    I'm also wondering why it didn't require me to change the loadmodule to "LoadModule php5_module %path%/php/php5apache2.dll" in the httpd.conf file. I tried doing it and it started throwing errors and I wasn't able to log into Plesk CP any more (I've since changed it back).

    Any help would be appreciated.

  3. #3
    Join Date
    Jan 2009
    Posts
    2

    Default

    A little more info on my error. I went on the server and looked at the event log to see what the error was. Here's what it said:

    "Could not load all ISAPI filters for site/service. Therefore startup aborted."

    Any ideas?

  4. #4
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Arrow

    Hello,

    Could you please provide us with the IP address of your server?
    I'd recommend opening up a ticket with our support dept along with the access details to your server.. We'll look into it & get it sorted out quickly...

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  5. #5

    Default

    Sorry am I being really stupid here, your instructions have many "***" in them, surely Windows doesn't understand this?

    C:\WINDOWS\system32>cscript c:\windows\system32\ii***t.vbs /RmFile "%plesk_dir%Additional\php\php.exe"
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

    CScript Error: Loading script "c:\windows\system32\ii***t.vbs" failed (The filename, directory name, or volume label syntax is incorrect. ).

  6. #6

    Default

    I'm not sure what you guys are trying to do here but if you copy Parallel's articles you should make an exact duplicate. You tried to copy this:

    url=web://kb.parallels.com/en/1048]KB Parallels: [Info] How to install PHP5 with legacy Plesk versions

    you ended up spelling iisext.vbs as ii***.vbs

    Incidently I followed the instructions on Parallel's site for a very stable Plesk 8.6 server and I had a few problems because:

    1. The %plesk_bin%\websrvmng.exe" --reconfigure-all command did not reconfigure everything. I ended up doing group operations multiple times because websrvmng failed every so often.

    2. Plesk is still referring to the old version however I can get 5.2.6 working by manually specifying php-cgi.exe as an ISAPI extension.

    3. Plesk mostly refers to php.exe as the ISAPI extension and I have to change this manually.

    4. Plesk is reporting the version incorrect in components.

    5. Using %plesk_dir% failed I had to specify the exact path.

  7. #7
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Post

    Quote Originally Posted by eugenevdm View Post
    Sorry am I being really stupid here, your instructions have many "***" in them, surely Windows doesn't understand this?
    Quote Originally Posted by eugenevdm View Post
    I'm not sure what you guys are trying to do here but if you copy Parallel's articles you should make an exact duplicate. You tried to copy this:

    url=web://kb.parallels.com/en/1048]KB Parallels: [Info] How to install PHP5 with legacy Plesk versions

    you ended up spelling iisext.vbs as ii***.vbs

    Incidently I followed the instructions on Parallel's site for a very stable Plesk 8.6 server and I had a few problems because:

    1. The %plesk_bin%\websrvmng.exe" --reconfigure-all command did not reconfigure everything. I ended up doing group operations multiple times because websrvmng failed every so often.

    2. Plesk is still referring to the old version however I can get 5.2.6 working by manually specifying php-cgi.exe as an ISAPI extension.

    3. Plesk mostly refers to php.exe as the ISAPI extension and I have to change this manually.

    4. Plesk is reporting the version incorrect in components.

    5. Using %plesk_dir% failed I had to specify the exact path.
    Hi Eugene,

    Could you please open up a ticket with our Support Dept so we can take a quick look into the above mentioned problems & get them sorted ASAP..

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  8. #8

    Default

    Hey Rock I'm not your client I just posted some notes about my experience with this in your public forum. All is fine and dandy PHP5 is up and running. Good night and good luck.

  9. #9
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Quote Originally Posted by eugenevdm View Post
    Hey Rock I'm not your client I just posted some notes about my experience with this in your public forum. All is fine and dandy PHP5 is up and running. Good night and good luck.
    We're glad to hear that Eugene. Feel free to ask for any further assistance, we're ready to help

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •