![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Server Platforms Discussion regarding any server based ubuntu release. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() |
PHP has Suhosin by default?
I just installed and configured a LAMP server on my Hardy machine (actually, using Lighttpd instead of Apache), ran phpinfo(), and it says that the "server is protected with the Suhosin Patch 0.9.6.2".
I certainly didn't install Suhosin... Code:
jeremy@rillian:~$ dpkg -s php5-suhosin Package `php5-suhosin' is not installed and no info is available. Seems like a good thing to do, but there may be compatibility issues with running non-standard versions of PHP. |
|
|
|
|
|
#2 |
|
Way Too Much Ubuntu
![]() Join Date: Jan 2008
Location: Toronto
Beans: 308
Ubuntu 7.10 Gutsy Gibbon
|
Re: PHP has Suhosin by default?
Interesting, could you ouput the phpinfo() section which relates to suhosin.
Having checked launchpad for Hardy I don't see it being listed as a compiled in option or a dependency (and there is a seperate php5-suhosin package as well). Edit: also the following may give us more information Code:
aptitude changelog php5 and aptitude changelog libapache2-mod-php5 Faulkes
__________________
Ubuntu Server Team Member && If your post was solved, please mark it [SOLVED] under Thread Tools Official Gutsy 7.10 Server Documentation || Community based Server Documentation Last edited by faulkes; February 16th, 2008 at 12:02 PM.. |
|
|
|
|
|
#3 | ||
|
A Carafe of Ubuntu
![]() |
Re: PHP has Suhosin by default?
Yeah, actually, I found it in the changelog yesterday. Here's an abridged version of the changelog entry:
Quote:
Quote:
|
||
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 1
|
Re: PHP has Suhosin by default?
Ive come up against this too. Ive installed Hardy beta and Suhosin has post.max_vars set at 200 which is the default causing problems with some scripts.
Whats the best way to change the value please? |
|
|
|
|
|
#5 |
|
Gee! These Aren't Roasted!
![]() Join Date: Feb 2008
Location: USA
Beans: 170
Ubuntu 9.10 Karmic Koala
|
Re: PHP has Suhosin by default?
This thread needs to be revived I think. Has anyone figured out how to remove the suhosin patch from the php5 standard install in Hardy?
|
|
|
|
|
|
#6 |
|
A Carafe of Ubuntu
![]() |
Re: PHP has Suhosin by default?
Let me check.
The patch is probably located in the /debian/ directory, so making a new set of debs without Suhosin should be as simple as reversing the patch. Of course, I haven't checked yet, so this may be more complicated than it seems. |
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() |
Before you get your hopes up, please be aware that I have not even tested to see if the following works. Seems likely that it will, though.
Okay, in the PHP5 source, there is a patch file in "debian/patches/suhosin.patch". To get to this source, you can do: (without sudo, please) Code:
mkdir work && cd work && apt-get source php5 && cd php5-5.2.4 Code:
sudo apt-get build-dep php5 Code:
rm debian/patches/suhosin.patch Code:
debchange -v 5.2.4-2ubuntu6~nosuhosin Code:
sudo apt-get install devscripts When you get presented with the nano text editor, just type something like "Hopefully removed Suhosin", and press Ctrl+X and Enter to save. Should be good to build now. Do this: Code:
debuild Code:
ls -l ../*.deb Code:
sudo dpkg -i ../*.deb |
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() |
Re: PHP has Suhosin by default?
Ned, you can change these things in /etc/php5/apache2/php.ini.
|
|
|
|
|
|
#9 | |
|
5 Cups of Ubuntu
![]() Join Date: Jul 2007
Beans: 33
Ubuntu 9.04 Jaunty Jackalope
|
Re: PHP has Suhosin by default?
Quote:
|
|
|
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() |
Re: PHP has Suhosin by default?
That does not give me nearly enough information to let me help you.
Can you at least post the error message with the command you typed? |
|
|
|
| Bookmarks |
| Tags |
| php5, suhosin |
| Thread Tools | |
| Display Modes | |
|
|