Uninstall suhosin-patch while ispconfig installed

Discussion in 'Installation/Configuration' started by tiamsanit, Dec 24, 2008.

  1. tiamsanit

    tiamsanit New Member

    Hi, guy
    My blacklisted problem going to cause me more problem. I am decided to uninstall suhosin patch that come win php5. I figured out that suhosin is not a .so module but complied to php5.

    My questions are:
    1. How do I uninstall suhosin. (Some says that I have to download the source, removing suhosin then recompile php5)
    2. If I recompile php5, will it cause a problem with running ispconfig?
    3. Do I have to reinstall ispconfig after that?

    Thanks in advance:)
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Which distribution are you using?
     
  3. tiamsanit

    tiamsanit New Member

    Ubuntu 8.04 server

    Thanks:)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Yes, thats most likely the case.
    2) No.ISPCOnfig has its own php and does not need the php from ubuntu.
    3) No.
     
  5. steve51184

    steve51184 New Member

    i also want to uninstall the suhosin patch can i just install a .deb file from an older php version? what was the last php version not to have suhosin patch?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    If you installed suhosin with apt, you can uninstall it with apt. Just use apt-get remove instead of apt-get install.
     
  7. steve51184

    steve51184 New Member

    that's my problem suhosin patch somes with php5 and it's causing me A LOT of problems and i need it removing but i can't do it with apt-get
     
  8. jcombs_31

    jcombs_31 New Member

    What kind of problems is it causing? Can't you just change some of the default settings in your php.ini?
     
  9. steve51184

    steve51184 New Member

    causing some problems with a script i use
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Take a look at your php.ini and the files included in it. I guess you can comment out the suhosin extension somewhere. Restart Apache afterwards.
     
  11. steve51184

    steve51184 New Member

    there is no info for suhosin in my php.ini
     
  12. falko

    falko Super Moderator Howtoforge Staff

    And in the included files? Which distribution are you using?
     
  13. steve51184

    steve51184 New Member

    what do you mean by included files?

    also i use ubuntu 8.1 server
     
  14. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /etc/php5/conf.d/
    ?
     
  15. steve51184

    steve51184 New Member

    here it is:
     
  16. jcombs_31

    jcombs_31 New Member

    Open the suhosin.ini and comment out the extension, then restart apache.
     
  17. steve51184

    steve51184 New Member

    done that but it's still on

     
  18. jcombs_31

    jcombs_31 New Member

    Have you looked at the config page?

    http://www.hardened-php.net/suhosin/configuration.html

    There is an option for simulation mode which will only log events and not prevent them. This should help you find any problems with your script. Otherwise, suhosin is two parts, and patch and extension, sounds like the patch is applied to your php install so the easiest fix I think would be to at least try the simulation mode and see what happens.

    You'll have to add the option to your php.ini.

     
  19. steve51184

    steve51184 New Member

    so what do i need to add just suhosin.simulation ?
     
  20. falko

    falko Super Moderator Howtoforge Staff

    Add
    Code:
    suhosin.simulation = On
    to the suhosin.ini fine and restart Apache.
     

Share This Page