Changes

Jump to: navigation, search

Shared webhosting

438 bytes added, 21:11, 14 April 2007
m
MySQL Sharing via Socket
Most webhosting accounts use MySQL, but if you prefer another database server, go ahead. Create a new VEx with a lot more resources and again an internal IP-address. Now configure the accounts. As an extra security measure you can use the internal IP-address as well.
 
==== MySQL socket sharing ====
 
You can also share the socket of an VEx running MySQL.
e.g.:
<pre>
ln /var/lib/vz/private/101/var/run/mysqld/mysqld.sock /var/lib/vz/private/102/var/run/mysqld/mysqld.sock
</pre>
Inside of 102:
<pre>
$ 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
</pre>
=== Proxy webserver ===
9
edits

Navigation menu