1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

PHP gives error how to fix it?

Discussion in 'Plesk for Windows - 8.x and Older' started by Dejin, Sep 15, 2006.

  1. Dejin

    Dejin Guest

    0
     
    There is a domain which is using Wordpress blog script.
    You can view pages, or sub menus but when you clich the topics it is giving following error:

    CGI Error
    The specified CGI application misbehaved by not returning a complete set of HTTP headers.

    If I will refresh then it says
    SERVICE UNAVAILABLE and all php scripts are not working.
    I have to restart the server to start also it made the same problem in SMF forums.

    Does anyone knows how to solve this problem?
    I have plesk 7.6.1 and Windows 2003 Server. Thanks a lot from now on.

    Also it makes the same thing with aaveradark topsites script and smf forum's if you want to update your profile....
     
  2. henry@

    henry@ Guest

    0
     
    hey, did you try to upgrade your plesk php version to the latest one? PHP 4.4.4 ? This should fix your problem.

    Henryk
     
  3. renleon

    renleon Guest

    0
     
    I can confirm this is more than likely your problem.

    I had to upgrade to version 4.4.4 from 4.4.2, accessing external urls was broken in 4.4.2. (fopen() function etc)

    The steps to upgrade to PHP 4.4.4 are:

    1. Download zip distributive of the php 4.4.4 (not binary installer)
    2. Unzip to any folder on the desktop
    3. Go to the c:\program files\swsoft\plesk\additional. There you will find the old php folder. Back it up, I copied it to the same folder and called it Php.4.4.2. After that delete the contents of the old php folder and copy/paste (not move) the content of unzipped php4.4.4 to there.
     
  4. wtwolf6

    wtwolf6 Guest

    0
     
    This did not work correctly.
    I had a website wich was working fine. I followed the directions to the step. Now the one website shows a 505 error.
    i revert back to 442 works fine. now every other website works fine this server only has 11 sites 4 of wich are mainly used. The rest are redirects mainly.
    2 are written in html with a few php line inserts. The other two are running php based sites. They show the error but when i revert back no problems whats wrong?
     
  5. renleon

    renleon Guest

    0
     
    Hi, a 505 error means "HTTP version not supported."

    http://www.checkupdown.com/status/E505.html

    The version is from the server (IIS), not PHP. It seams odd you would get it after updating PHP.

    Which web browser / version do you normally use?
     
  6. wtwolf6

    wtwolf6 Guest

    0
     
    Ok it did work I had the service error and had just restarted the app pool. It works fine after I rebooted. I am sorry for not checking completely.
     
  7. wtwolf6

    wtwolf6 Guest

    0
     
    ok nvm it still gives the error but its 500 not 505 sorry for that

    www.ladderdueling.com
    but all other sites works fine even

    but when i use 4.4.2 it works fine no problems

    what changes besides bug fixes in php?
     
  8. renleon

    renleon Guest

    0
     
    500 is an internal server error. A generic error to say somethings gone wrong on the server.

    Check the windows event viewer after vising the page anf getting the error. Its in control panel / administrative tools.

    More details on the acutal error should be there.
     
  9. wtwolf6

    wtwolf6 Guest

    0
     
    just to update it is working fine I must have gotten a corrupt download. Anyways I redownloaded the php package installed it and it worked just fine. Sorry for the misleading posts
     
  10. ikovan55

    ikovan55 Guest

    0
     
    In Plesk 7.6.1

    simply create ".php" extension mapping from IIS : right click "Web Sites" : "Home Directory" tab >Configuration>Mappings

    click "Cache ISAPI Extensions" then click "Add"

    Executable: "C:\Program Files\SWsoft\Plesk\Additional\Php\php.exe"

    Extension: .php

    Verbs: All Verbs

    so, even your PLESK will be faster and your php scripts work correctly! I tried it!
     
  11. wharfratjoe

    wharfratjoe Guest

    0
     
    This worked for me. No more cgi header errors when processing .php forms. no reboot or restarting applications pools required. Worked right away! Thank you!
     
Loading...