Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th March 2010, 23:37
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default Help with Suhosin patch for php5

When following the tutorial "Perfect Server Fedora 10" I wanted to harden my php5 with suhosin.
So I used this tutorial "How To Harden PHP5 With Suhosin On Fedora 7".

I needed to login as compileuser to run the command rpm -ivh php5.3.0.src.rpm.

When running rpmbuild -ba php.spec I get the following error:

1 out of 1 hunk FAILED -- saving rejects to file main/php_logos.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.QTU1TU (%prep)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.QTU1TU (%prep)

Any help would be apreciated
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
Sponsored Links
  #2  
Old 9th March 2010, 16:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Did you download the correct Suhosin patch ( http://download.suhosin.org/suhosin-...0.9.8.patch.gz )?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th March 2010, 17:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

BTW, for Fedora 12, there's a Suhosin package. You can install it as follows:
Code:
yum install php-suhosin
Restart Apache afterwards.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 10th March 2010, 02:19
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

Ofcourse I noticed the tut. "Perfect server fedora 12 with ISPConfig 3x" but I did not read it because I think it is for 64bit machine's only.

Can I use this tut. for my 32bit machine ?
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
  #5  
Old 10th March 2010, 02:29
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
Did you download the correct Suhosin patch ( http://download.suhosin.org/suhosin-...0.9.8.patch.gz )?
To be honest, I tried a lot yesterday and I'm not shure but I think that I first tried the patch for php 5.2.10 ( that was installed on my server ) and later I tried php 5.3 so I would end up with an updated php and an patched php.

Because my server is not a bussiness server ( only me ) I ended with format C:\ and today I started with Debian Lenny
and so far I like it; memcached/memcache, suhosin are allready included, installing ioncube and zend and mod_geoip was easy.

So THANK YOU for an other great tutorial
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
  #6  
Old 12th March 2010, 00:06
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
 
Default

@ Falko, Today I installed Fedora 12 and ISPConfig 3.0.2.

yum install php-suhosin installed the suhosin extension but did not patch php, so I think I give it an other try to pacht it myself.
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
Reply

Bookmarks

Tags
fedora 10, php5, suhosin patch

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error To Harden PHP5 With Suhosin On CentOS 5.0 jegavelan Installation/Configuration 5 6th May 2009 11:57
Suhosin Patch jcombs_31 General 0 8th February 2009 23:08
I Fail at installing ispconfig where did I go wrong? stocker741 Installation/Configuration 14 30th October 2008 15:12
Limit mysql database size ddelbia Feature Requests 14 25th April 2006 22:42
[2.2.0] My patch for more secure passwords bjmg General 3 28th March 2006 17:05


All times are GMT +2. The time now is 05:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.