Difference between revisions of "Talk:Shared webhosting"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(Proxying)
(MySQL Socket Sharing)
Line 22: Line 22:
  
 
I would suggest using [http://www.apsis.ch/pound/ Pound] as the Proxy Server running on your Frontend VE. Its a pretty lightweight and _fast_ Proxy. Besides proxying it does also support load balancing, failover and SSL.  I've been using it for various projects over the past few years, its proven to be pretty stable and reliable. --[[User:Torsten|Torsten]] 14:51, 9th Nov 2006 (CST)
 
I would suggest using [http://www.apsis.ch/pound/ Pound] as the Proxy Server running on your Frontend VE. Its a pretty lightweight and _fast_ Proxy. Besides proxying it does also support load balancing, failover and SSL.  I've been using it for various projects over the past few years, its proven to be pretty stable and reliable. --[[User:Torsten|Torsten]] 14:51, 9th Nov 2006 (CST)
 +
 +
== MySQL Socket Sharing ==
 +
 +
I found it was a good idea sharing the MySQL Socket instead of using TCP/IP. (which is also <b>ALOT</b> faster)
 +
 +
<pre>
 +
# 101 is the MySQL Server VEx (debian 4.0)
 +
# 102 Another VEx (opensuse 10.0)
 +
ln /var/lib/vz/private/101/var/run/mysqld/mysqld.sock /var/lib/vz/private/102/var/run/mysqld/mysqld.sock
 +
</pre>
 +
 +
The result
 +
<pre>
 +
opensuse:/ # mysql -u root -p -S /var/run/mysqld/mysqld.sock
 +
Enter password:
 +
Welcome to the MySQL monitor.  Commands end with ; or \g.
 +
Your MySQL connection id is 9 to server version: 5.0.32-Debian_7etch1-log
 +
 +
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
 +
 +
mysql>
 +
</pre>

Revision as of 21:06, 14 April 2007

--Hvdkamer 08:23, 2 August 2006 (EDT) I probably did something stupid, but how can I link from the HOWTO's to this page?

If you want to link to the Category:HOWTO, you put it like this
[[:Category:HOWTO HOWTOs (i.e. this is link text)]]
If you want your article to be included into HOWTO category, you put it like this (in any part of the article, usually at the end):
[[Category:HOWTO]]
--Kir 09:51, 2 August 2006 (EDT)

Rename?

I suggest renaming the article to something like "Application separation" or "Services separation" since this is what you actually describe :) --Kir 10:22, 2 August 2006 (EDT)

Go ahead if you think it describes the content better. I started to investigate OpenVZ because I had serious problems with shared hosting. The minimal servers (it is only a rough draft at this moment) are the solution to that. You could see this as application seperation, but for the end-user it is a "normal" webhosting account. Only he/she can do much more and can not break his/her prison :-) --Hvdkamer 10:28, 2 August 2006 (EDT)
May be to explain better my choice. After some serious problems with PHP (users who knew where an include with passwords lived, could see the content) I started to investigate the option of Apache threads with its own user credentials. That was the abonded project perchild. So there is not an easy technical solution. Also users hate safe_mode and open_basedir because it breaks there applications. They also want obscure CGI-scripts and all the things we administrators hate. I already used chrooted OpenSSH shell accounts. With the minimal servers I take that one step further. Now every user has total control (he/she can even be root) over his/her space.
If I had to do my research again, I think I would still start with "shared webhosting". Not "application seperation". I think that my term, although not exactly correct, will draw more people to this site. I think of it as "user seperation", but that is the whole point of OpenVZ? As said, its your Wiki, so change it if you think it is better :-) --Hvdkamer 10:40, 2 August 2006 (EDT)
I changed the introduction to give some examples of the problems shared webhosting is facing. I think that you now could see were it is going? I'm still in the process of setting up this server. So I thought to start this page while I'm working on it. Because if you do it weeks later, most subtle points are lost :-) --Hvdkamer 11:42, 2 August 2006 (EDT)

Proxying

I would suggest using Pound as the Proxy Server running on your Frontend VE. Its a pretty lightweight and _fast_ Proxy. Besides proxying it does also support load balancing, failover and SSL. I've been using it for various projects over the past few years, its proven to be pretty stable and reliable. --Torsten 14:51, 9th Nov 2006 (CST)

MySQL Socket Sharing

I found it was a good idea sharing the MySQL Socket instead of using TCP/IP. (which is also ALOT faster)

# 101 is the MySQL Server VEx (debian 4.0)
# 102 Another VEx (opensuse 10.0)
ln /var/lib/vz/private/101/var/run/mysqld/mysqld.sock /var/lib/vz/private/102/var/run/mysqld/mysqld.sock

The result

opensuse:/ # mysql -u root -p -S /var/run/mysqld/mysqld.sock
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 5.0.32-Debian_7etch1-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>