Open main menu

OpenVZ Virtuozzo Containers Wiki β

Editing Plesk in VE

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
Below is an example transcript of installing Plesk into an OpenVZ container (container#11):
+
Below is an example transcript of installing Plesk into an OpenVZ VE (VE#11):
  
 
<pre>
 
<pre>
 
# vzctl create 11 --ostemplate centos-4-i386-default
 
# vzctl create 11 --ostemplate centos-4-i386-default
Creating container private area: /vz/private/11
+
Creating VPS private area: /vz/private/11
 
Performing postcreate actions
 
Performing postcreate actions
container private area was created
+
VPS private area was created
  
# vzctl set 11 --quotaugidlimit 150 \
+
# vzctl set 11 --quotaugidlimit 150 --save
  --numproc 400:400 \
+
Saved parameters for VPS 11
  --kmemsize 16384000:18022400 \
+
 
  --privvmpages 262144:292912 \
+
# vzctl set 11 --numproc 400:400 --save
  --hostname=plesk.example.com \
+
Saved parameters for VPS 11
  --diskspace 2000000:2000000 \
+
 
  --shmpages 16384:16384 \
+
# vzctl set 11 --kmemsize 16384000:18022400 --save
  --ipadd 127.1.2.3 \
+
Saved parameters for VPS 11
  --save
+
 
Saved parameters for container 11
+
# vzctl set 11 --privvmpages 262144:292912 --save
 +
Saved parameters for VPS 11
 +
 
 +
# vzctl set 11 --hostname=plesk.example.com --save
 +
Saved parameters for VPS 11
 +
 
 +
# vzctl set 11 --diskspace 2000000:2000000 --save
 +
Saved parameters for VPS 11
 +
 
 +
# vzctl set 11 --shmpages 16384:16384 --save
 +
UB limits were set successefully
 +
 
 +
# vzctl set 11 --ipadd 127.1.2.3 --save
 +
Saved parameters for VPS 11
  
 
# vzctl set 11 --userpasswd root:pass
 
# vzctl set 11 --userpasswd root:pass
Line 23: Line 36:
  
 
# vzctl set 11 --iptables "iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc" --save
 
# vzctl set 11 --iptables "iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc" --save
Saved parameters for container 11
+
Saved parameters for VPS 11
  
 
# vzctl start 11
 
# vzctl start 11
Starting container ...
+
Starting VPS ...
container is mounted
+
VPS is mounted
 
Adding IP address(es): 192.168.51.55
 
Adding IP address(es): 192.168.51.55
 
Setting CPU units: 1000
 
Setting CPU units: 1000
 
Set hostname: plesk.local
 
Set hostname: plesk.local
 
Setting quota ugidlimit: 150
 
Setting quota ugidlimit: 150
container start in progress...
+
VPS start in progress...
 
</pre>
 
</pre>
  
If you want to run a VPN server inside the container you need to [[VPN via the TUN/TAP device|TUN/TAP module]]. The following commands consolidate what needs to be done:  
+
If you want to run a VPN server inside the VE you need to [[VPN via the TUN/TAP device|TUN/TAP module]]. The following commands consolidate what needs to be done:  
 
<pre>
 
<pre>
 
# modprobe tun
 
# modprobe tun
Line 42: Line 55:
 
# vzctl set 11 --devices c:10:200:rw --save
 
# vzctl set 11 --devices c:10:200:rw --save
 
Setting devices
 
Setting devices
Saved parameters for container 11
+
Saved parameters for VPS 11
 
# vzctl exec 11 mkdir -p /dev/net
 
# vzctl exec 11 mkdir -p /dev/net
 
# vzctl exec 11 mknod /dev/net/tun c 10 200
 
# vzctl exec 11 mknod /dev/net/tun c 10 200
Line 48: Line 61:
 
</pre>
 
</pre>
  
Make sure that the container's hostname (plesk.example.com) is resolving correctly to the container's IP address (127.1.2.3). You can also add the corresponding record to /etc/hosts as a workaround.
+
Make sure that the VE's hostname (plesk.example.com) is resolving correctly to the VE's IP address (127.1.2.3). You can also add the corresponding record to /etc/hosts as a workaround.
  
Due to how the Plesk VPN package install script works, it uses a regex on the output of "uname -r" to determine the kernel release to assure you have a minimum version of Virtuozzo (version 021stab025).  So what you can do is get your version with "uname -r", and set the VE release name to fit the regex.  For example:
+
Then, go to http://www.swsoft.com/download/plesk8/ and download the appropriate autoinstaller or the appropriate RPM. In this case, [[http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386|CentOS]] 4.3.
<pre>
 
# uname -r
 
2.6.18-194.26.1.el5.028stab079.2
 
# echo "2.6.18-194stab079.2" > /proc/sys/kernel/virt_osrelease
 
# vzctl restart 11
 
</pre>
 
 
 
Then, go to http://www.parallels.com/download/plesk8/ and download the appropriate autoinstaller or the appropriate RPM. In this case, [http://download1.parallels.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386 CentOS] 4.3.
 
  
 
If you want to download the autoinstaller all you need to do is:
 
If you want to download the autoinstaller all you need to do is:
 
<pre>
 
<pre>
# cp -f /etc/resolv.conf /vz/private/11/etc/resolv.conf
+
# wget http://download1.swsoft.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386
# vzctl enter 11
+
# mv psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386 /vz/private/11/root/
entered into container 11
+
# vzctl exec 11 /root/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386
# cd
 
# wget http://download1.parallels.com/Plesk/Plesk8.1/CentOS4.3/psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386
 
# chmod a+x psa*
 
# ./psa_installer_v3.1.0_build061201.02_os_CentOS_4.3_i386
 
 
</pre>
 
</pre>
  
Line 85: Line 86:
 
         "/etc/init.d/psa start" and
 
         "/etc/init.d/psa start" and
 
         "/etc/init.d/psa stop" respectively.
 
         "/etc/init.d/psa stop" respectively.
 +
 +
        All Plesk control panel documentation is available at
 +
        http://www.swsoft.com/en/products/plesk80/docs
 +
 +
*****************************************************************************
 +
*                                                                          *
 +
*      NOTE:  You have a default key file with limited functionality      *
 +
*              currently installed for Plesk, which allows                  *
 +
*              creating one client account, one domain, one mail name and  *
 +
*              one web user.                                                *
 +
*              To extend the limits of your license key and enable          *
 +
*              additional features, please contact the SWsoft, Inc. sales  *
 +
*              department: sales@swsoft.com                                *
 +
*                                                                          *
 +
*      Thank you for choosing our products!                                *
 +
*****************************************************************************
 
</pre>
 
</pre>
 
[[Plesk install full output]]
 
[[Plesk install full output]]
  
Plesk "about" webpage:
+
Done. You can create a [[Debian_template_creation#Preparing_for_and_packing_template_cache]]prepackaged template from this VE for future installations.
: http://www.parallels.com/en/products/plesk/
 
: http://www.parallels.com/en/products/plesk/docs/
 
 
 
Done. You can create a [[Debian_template_creation#Preparing_for_and_packing_template_cache|prepackaged template]] from this container for future installations.
 
  
[[Category:HOWTO]]
+
[[category:HOWTO]]

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)