Re: [PHP] Re: set up mass virtual hosting with apache/nginx and PHP ... best practice2012?

2012-08-25 Thread Matijn Woudt
On Sat, Aug 25, 2012 at 11:09 AM, Carlos Medina i...@simply-networks.de wrote:
 Hi,

 Read the Apache and PHP Documentation, if you have any questions after
 this. write again...


 Greets

 Carlos


OT:
Carlos, There's no need to write useless replies like this (also on
other topics). I'm pretty sure there's no answer to his question in
the manual. He explicitly asks for help and experiences for PHP with
~5.000 virtual hosts.
Also, you should bottom post on this, and probably any, mailing list.


 Am 22.08.2012 01:26, schrieb D. Dante Lorenso:
 All,

 I need to set up a server to enable 5,000 students to have web hosting
 provided by the school with PHP and MySQL support.  I'm trying to figure
 out what is the best way to do this.

 We have Active Directory and are using Centrify to authenticate
 usernames and passwords on our Linux servers.  I am imagining it would
 be great if we use something like ExecCGI to ensure that PHP runs as the
 user that owns the files.  We would then provide FTP access to the files
 and FTP would authenticate against Active Directory making sure to set
 the proper user/group on files when uploaded.

 I see that PHP-FPM exists: http://php-fpm.org  and it claims Ability to
 start workers with different uid/gid/chroot/environment and different
 php.ini (replaces safe_mode) which is exactly what I'm looking for.  It
 also claims PHP-FPM is now included in PHP core as of PHP 5.3.3. so
 that's good.

 I also read about the greatness that is NGinX: http://nginx.org though I
 don't know if I can use it because I think I also need to use .htaccess
 files.  I need a way for students to be able to password protect their
 directories and files.  If there's another way using NGinX or Apache,
 that's good too.  I know of no other way.

 Here is an interesting article from 2009:
 http://www.howtoforge.com/how-to-set-up-mass-virtualhosting-with-apache2-mod_rewrite-mod_userdir-mod_suexec-on-centos-5.3


 That uses mod_rewrite to attempt something like what I'm trying to do
 ... and then, Apache has mod_vhost_alias:
 http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html

 So, I see a lot of information out there.  Apache, NginX, ExecCGI,
 FastCGI, mod_vhost_alias, mod_rewrite, SuExec, mod_userdir.  I suspect
 some of these methods are old and out of date.

 In my ideal situation:

  - users would be created in AD and would exist on the OS

  - student domain names would look like:
 http://username.student.school.edu/ - OR -
 http://student.school.edu/username/

  - file directories would look like:
 /mnt/somedir/username/docroot

  - students would be able to create PHP applications executed with
 their own permissions

  - I would be able to configure all 5,000 accounts with a single
 configuration (1 virtual host rule?)

 Do you know what the best practices are for now ... here in 2012?

 -- Dante



Hi Dante,

Wouldn't it be much easier to use reseller packages like DirectAdmin
or cPanel? AFAIK it should be pretty easy to do the things above.

- Matijn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: set up mass virtual hosting with apache/nginx and PHP ... best practice2012?

2012-08-25 Thread D. Dante Lorenso

On 8/25/12 6:11 AM, Matijn Woudt wrote:

Hi Dante,

Wouldn't it be much easier to use reseller packages like DirectAdmin
or cPanel? AFAIK it should be pretty easy to do the things above.


I'm considering that as well.  In the end, I really only want 3 
features, however:


 - ftp access to files
 - mysql database
 - apache/php support

Look at DirectAdmin features:
http://www.directadmin.com/features.html

Looks like 80-90% of that is not needed.  I want to manage my users 
through Active Directory, and just enable or disable the 3 services I 
listed above.


I recently tested ISP Manager.  Their trial license couldn't even be 
installed without a public IP address!  I don't want to get into these 
games.  Just some simple, clean, open source solutions, please :-)


Also, I intend to make this solution scalable.  I have 2 HA load 
balancers that will distribute the web load across multiple web servers. 
 Licensing starts to get expensive when you begin to think clusters or 
clouds.  I want to scale without additional licensing costs.


I'll install DirectAdmin and cPanel now that you recommend them, 
however, to make sure I don't actually want them :-)


-- Dante


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php