Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th May 2007, 08:37
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default suPHP: apt-get or manual install

Hans has written two excelent howto's about installing and configuring suPHP for use with ISPConfig on Debian Sarge (http://www.howtoforge.com/suphp_debian_ispconfig) and Etch (http://www.howtoforge.com/suphp_debian_etch_ispconfig). Thank you for that Hans. However, an "apt-cache search suphp" on my server reveals the packages libapache2-mod-suphp (for Apache) and libapache2-mod-suphp (for Apache 2). I guess like many others, I prefer to install software from the Debian repository using aptitude, in order to keep my server easier to maintain. My question now is: is there a specific reason for (w)getting and making suPHP by hand, as instructed in Hans's howto's, or can one just as well "apt-get install" it? In the latter case it's interesting to know exactly which steps can be skipped from in the current howto's.

Last edited by pjdevries; 20th June 2007 at 14:01.
Reply With Quote
Sponsored Links
  #2  
Old 15th May 2007, 12:57
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Hi,

I am not sure, but i think that when you use apt-get or aptitude , suPHP will be installed as a module for Apache2, not as a DSO.

You can list the installed modules for Apache2 on your system with:

apache2 -l


Within my howto's, i installed suPHP as a Dynamic Shared Object (DSO), which means that it exists separately from the main httpd binary file. This is the recommended way and is mentioned also on http://www.suphp.org/

I hope that Falko and/or Till can tell you more about the different methods and their advantages/disadvantages.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 15th May 2007 at 20:12.
Reply With Quote
  #3  
Old 15th June 2007, 12:26
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default

Thanks Hans. So far no response from Falko or Till yet. I guess the guys are quite busy. Maybe this post will get their attention.

May be you, or anyone else for that matter, can also explain why one would use suPHP instead of suEXEC to run php applications? I searched around a bit but I can't find a clear and definite answer. Or should I start a separate, dedicated topic fro that?
Reply With Quote
  #4  
Old 15th June 2007, 12:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Quote:
Thanks Hans. So far no response from Falko or Till yet. I guess the guys are quite busy. Maybe this post will get their attention.
So far I did not test the debian suphp package, but I recommend that you try that first. I guess it should work as well.

Quote:
May be you, or anyone else for that matter, can also explain why one would use suPHP instead of suEXEC to run php applications? I searched around a bit but I can't find a clear and definite answer. Or should I start a separate, dedicated topic fro that?
SuPHP is better integrated in ISPConfig and you can set a custom php.ini file for every website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 15th June 2007, 14:25
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default

Thanks Till. I'll stick with the Debian package then. That will also keep my support guys happy

Better ISPConfig integration and custom php.ini per website with suPHP sounds good. So if I correctly read between the lines, there are no specific technical (dis)advantages to using one or the other?
Reply With Quote
  #6  
Old 18th June 2007, 09:09
melwood melwood is offline
Member
 
Join Date: Jun 2007
Location: Edling, Germany
Posts: 37
Thanks: 5
Thanked 1 Time in 1 Post
Default

Hi,

@till:
The latest versions of ISPConfig support suPHP, but I still have to install it manually, right? What happens when there is an update for ISPConfig? Does it affect an installation of suPHP?

@pjdevries:
Have you tested the debian pakage? Is it working?

@all:
How save is it, installing su PHP in a produtcive invironment? I can't afford it, that anything goes wrong. Will I have to change any permissions afterwards in my php projects?

Thanks for your help,

melwood
Reply With Quote
  #7  
Old 18th June 2007, 09:34
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default My experience with suPHP

@melwood,

Earlier this year, i've done a migration from phpmod to suphp on my Debian Etch server, which is a production server.
If you take exactly the steps and in the same order as described within my howto, you are able to do the same.
The link is: http://www.howtoforge.com/suphp_debian_etch_ispconfig

I did not test the suPHP by using the Debian package.
ISPConfig will automaticly detect if it runs in suPHP mode, so you don't have to worry about that when you perform an update to a new future release.

Probably when you switch to suphp, for some sites an internal server error 500 occurs, because some sites are not compatible with the suPHP mechanism.
For example: If you have a TYPO3 core installed within /var/www and the TYPO3 site itself has been installed within /var/www/webX/web/, suPHP will not work. But for such situations, there is a solution mentioned at the end within my Howto.

If you start suPHP, check if the folders within the webs has been chmod to 755 or 775, otherwise php scripts within those folders will not execute.
The php-scripts itself can be chmod to 664 or 644.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 18th June 2007 at 09:47.
Reply With Quote
The Following User Says Thank You to Hans For This Useful Post:
melwood (18th June 2007)
  #8  
Old 18th June 2007, 09:57
melwood melwood is offline
Member
 
Join Date: Jun 2007
Location: Edling, Germany
Posts: 37
Thanks: 5
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Hans
@melwood,
If you take exactly the steps and in the same order as described within my howto, you are able to do the same.
The link is: http://www.howtoforge.com/suphp_debian_etch_ispconfig
Hi Hans,

one more question:

When php scripts run under the admin user of the website instead of the system user www-data, are there any problems with a central installation of PEAR?

I have one standard installation of PEAR on my server (debia etch), that all webs can use. But will they have enough rights to still do this?

melwood
Reply With Quote
  #9  
Old 18th June 2007, 10:03
mtuser mtuser is offline
Member
 
Join Date: Jan 2006
Location: Bangkok
Posts: 40
Thanks: 19
Thanked 4 Times in 4 Posts
Send a message via ICQ to mtuser Send a message via Yahoo to mtuser Send a message via Skype™ to mtuser
Default

How can I set a custom php.ini?

Now I'm use from /etc/php5/cgi/php.ini
register global - off
php safe mode - on
for every site.
__________________
ispconfig v3 site test.
Reply With Quote
  #10  
Old 18th June 2007, 10:30
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
 
Default

Quote:
Originally Posted by melwood
Hi Hans,

one more question:

When php scripts run under the admin user of the website instead of the system user www-data, are there any problems with a central installation of PEAR?

I have one standard installation of PEAR on my server (debia etch), that all webs can use. But will they have enough rights to still do this?

melwood
I do not have experience with a central installation of PEAR in combination with suPHP.
So, i can not help you at this point.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
Reply

Bookmarks

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
problem install perl modules Cirox Installation/Configuration 10 16th May 2007 16:04
VMWare Server Free License - Invalid bardgd HOWTO-Related Questions 6 19th November 2006 17:50
install Net::DNS chrno Installation/Configuration 4 5th September 2006 17:01
suse 9.3 install: E: Couldn't find package ncftp aallen Installation/Configuration 4 26th January 2006 20:02
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 16:04


All times are GMT +2. The time now is 04:41.


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