HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   suPHP + suEXEC (http://www.howtoforge.com/forums/showthread.php?t=48930)

u4david 21st September 2010 04:35

suPHP + suEXEC
 
I noticed that fastcgi is default in the last version of ISPC3.

That brings me to question.

What is good practice to enable" run as user" security and keep compatibility (joomla, wordpress.....)

I was thinkig that suPHP and su-exec enabled bout at the same time should work well.Or is that duplicate afford?

Also would like to custom suPHP directives under each website.

Thank you.
I'm hosting low traffic sites planing to grow up to 50 sites max.

till 21st September 2010 13:31

Suphp + suexec is a dupliacet effort. If you want to use suphp, then suexec is not needed.
If you use cgi-php or fcgi-php, then you have to activate suexec.

Starting with ISPConfig 3.0.3 Beta you will have a inpit field for custom php.ini settings in ispconfig which works also for php-cgi and php-fcgi.

u4david 21st September 2010 17:30

what do you recomend ?
 
Sugjestions?

I just installed new version of ispconfig3 on ubu 10.04 LTS

What is the best steps to have well rounded set up with broad compatibility regarding this options in ispconfig3?
The settings are a site specific so i could have one site with one set up and another with different setup.
I do like the security of run as user options and the sites are low trafic so there is no deed to keep stuf in rum constantly just load it when requested.

One thing I know that i would like to use custom directives using suPHP_ConfigPath.

All sites I host are personal or low traffic sites.

Or any guidelines when to select suphp suexec fast-cgi cgi......an others rae very apreciated?

Thank you for direction on this.

till 21st September 2010 17:38

Quote:

I just installed new version of ispconfig3 on ubu 10.04 LTS
Which exact version? The new stable version or the new beta version?

Quote:

Is each site specific so i could have one site with one set up and another with different setup.
If you installed the 3.0.3 beta, then you can set individual php settings for every website.

Quote:

One thing I know that i would like to use custom directives using suPHP_ConfigPath.
Such internal are completely handled by ispconfig, you dont have to care how it is implemented. for suphp the suPHP_ConfigPath directive is used while for fcgo and cgi php different settings in the starter scripts are used.

Quote:

Or any guidelines when to select suphp suexec fast-cgi cgi......an others?
for low traffic sites, use either:

suphp or cgi-php + suexec

for high traffic sites, use php-fcgi + suexec

u4david 21st September 2010 18:22

ispconfig3 beta -yes or no
 
Can i give it a go or should i expect to have issues?

I have the latest stable installed.
Wonder if i would benefit going beta?

Also if beta is ok where to get it from SVN?

u4david 21st September 2010 18:46

got the location but....
 
http://www.ispconfig.org/releases/is...d-for-testing/

got the beta location install info.

Still wonder what is proven to work/fail.
And if i plane to stick with ispconfig3 for looong time would i be better off having stable version that i upgrade or go ahead and use the beta?

PS:so glad for all your help it really makes my "geeky like" life better.

falko 21st September 2010 19:55

Quote:

Originally Posted by u4david (Post 239847)
And if i plane to stick with ispconfig3 for looong time would i be better off having stable version that i upgrade or go ahead and use the beta?

On production systems, always use stable versions!

u4david 25th September 2010 16:47

Somethink is up
 
Something happened with su-php enabled on all my sites.
The webmail returned error 404.
even just local access does the same.

I gonna try to start fresh and see if i can recreate the problem.

It hink it happend ufter update.
May be it was me but if someone knows anything about this I may need some light on that.

Should i expect issues with SU-php enabled and web mail access?
latest ISPC3 stable installed+ubuntu 10.04

u4david 25th September 2010 16:50

any recomendation on su-php vs CGI+suexec
 
What one is better?
low traffic sites.
Joomla,wordpress,round cube,custom php.ini per site.

What would be better choice in the long run.Save resources and get things done.

I fallowed the ubuntu 10.04 PS.did i missed hwre su-PHP gets installed or is that some sort of module for php?


Thank you

till 25th September 2010 16:59

Quote:

Originally Posted by u4david (Post 240191)
Something happened with su-php enabled on all my sites.
The webmail returned error 404.
even just local access does the same.

I gonna try to start fresh and see if i can recreate the problem.

It hink it happend ufter update.
May be it was me but if someone knows anything about this I may need some light on that.

Should i expect issues with SU-php enabled and web mail access?
latest ISPC3 stable installed+ubuntu 10.04

You can not access webmail trogh the domain of a website as webmail is installed outside of the website root directory and suexec denies access for security reasons then. Additionally, the files ahve to be owned by the website user if they shall be accessible by suphp.

The solution is to create a dedicated wenbsite for webmail, e.g. with the domain webmail.yourdomain.com and wccess webmail trough this website only.


All times are GMT +2. The time now is 09:45.

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