wildweaselmi Posted July 29, 2009 Share Posted July 29, 2009 You may want a trial licence for cpanel you should go to : http://www.cpanel.net/store/ Ok. Few Steps to setup your VPS-CPANEL: 1 - Login to your VZMC and get inside your server 2 - Create a new VPS with the Sample Ve Config call vps.cpanel 3 - Select the ips you want to use in that VPS and the dns servers. 4 - Select RedHat Enterprise Template (not minimal) 5 - Dont select any addon.You dont need it for cpanel. 6 - Select the Space / Memory / CPU . All the normal stuff of your normal VPS. Put Start on boot and the rest of the normal stuff. Rememeber to use unlimited VPs. 7 - Go to your Ev1 Member section, open a ticket with your IP / and root password and request ev1 to get your VPS register in up2date. CHECK IT IF IT IS WELL CONFIGURE!! JUST IN CASE. 8 - Go in ssh and do the following steps: mkdir /home/cpins cd /home/cpins wget http://layer1.cpanel.net/latest sh latest This should install cpanel without asking you any questions. If you have any problems you should check: http://www.cpanel.net/install.html 9 - Login to : https://xxx.xxx.xxx.xxx:2087 and setup your server. If you never setup a cpanel server, you can find some usefull information here: http://www.cpanel.net/docs.htm Btw, it needs atleast 128 MB for cpanel to work. Some sw-soft people recommend to enable second-level quota (QUOTAUGIDLIMIT) Quote Link to comment Share on other sites More sharing options...
wildweaselmi Posted July 29, 2009 Author Share Posted July 29, 2009 Normally to run cPanel you need 128 Mb but to be on a Safer side you should have 256 MB. First login to your VZMC of the server where you need to create a VPS. Now create a VPS with Sample Ve Config call vps.cpanel. Then you need to select the IP’s for the VPS and the DNS Servers. Then select the RedHat Enterprise Template and select the Space / Memory / CPU. ** Note you don’t need to select any addons for the cPanel. Then Put start on Boot and for the rest of normal sett use unlimited VPS. Then SSH in to the Server with root login and run the following commands: # mkdir /home/cpanel # cd /home/cpanel # wget http://layer1.cpanel.net/latest # sh latest Now to setup your VPS login to the cPanel WHM using https://SERVERIP:2087 Quote Link to comment Share on other sites More sharing options...
wildweaselmi Posted July 29, 2009 Author Share Posted July 29, 2009 Webhosting for starters http://www.parallels.com/products/plesk A bit more advanced is VServer http://linux-vserver.org/Welcome_to_Linux-VServer.org Also advanced is Xen http://www.cl.cam.ac.uk/research/srg/netos/xen/ Quote Link to comment Share on other sites More sharing options...
wildweaselmi Posted July 29, 2009 Author Share Posted July 29, 2009 Once the setup of the Xen kernel itself is done, what's hard is more setting up each distro, but with the help of debootstrap for .deb based distros and rpmstrap for CentOS, it's not that hard. NetBSD can run directly with it's normal installer. What you need is to have enough knowledge with grub, LVM, and setting up network files, if you have people to do the administration of those, it wont be hard for them with few advices. I don't think you should use VZ only because it has a nice interface. In fact what I hate is the fact it's not open source. Quote Link to comment Share on other sites More sharing options...
wildweaselmi Posted July 29, 2009 Author Share Posted July 29, 2009 Another thing is partition of Server! You should consider partitioning the hard drive right at the first place before installing Xen so that maximum performance of DomainUs can be achieved. I use LVM for my domU Virtul Machines and the are running fine. Quote Link to comment Share on other sites More sharing options...
wildweaselmi Posted July 29, 2009 Author Share Posted July 29, 2009 cPanel won't support the software being installed on Ubuntu Only RHEL/CentOS and FreeBSD (7) Quote Link to comment Share on other sites More sharing options...
wildweaselmi Posted July 29, 2009 Author Share Posted July 29, 2009 My choice is CentOS 5.1 for VPS I’m working on a project that is deploying on CentOS 5.1, and I found it not entirely obvious how to install a really stripped down server, as a starting point for a lean and mean, hardened production server. Since I’m doing work on this at home on VMWare, and it’s being deployed on a VPS initially (and probably will remain virtualized for ease of management as it scales up), this guide is specifically aimed at this kind of configuration. Assumptions: * this server uses an x86_64 CPU architecture, not i386 (or for an ultra-small disk footprint, consider i386 since it doesn’t need duplicate 64 and 32 bit glibc libraries) * this is a server VPS (running in VMware or Xen) so it isn’t interested in low-level hardware management o no need for ACPI (sleep/hibernate) o no need for laptop CPU power reduction o no need for SMART disk monitoring (since the VPS disk is virtualized) o no need for MD (software RAID) since it’s a VPS; any RAID is happening at a lower level (host OS / dom0) o no need to use LVM2 to mirror a logical volume (again because RAID is handled outside of the VPS) o no need for bluetooth, hot-plug hardware, or PCMCIA * this server may have more than one CPU (or may be given additional VCPUs later due to load) so multi-CPU support is desired * this is a headless server so no GUI features are desirable * there are no legacy services that need RPC * NFS will not be used * SELinux will be left in the default configuration (”Enforcing” the “Targeted” policy). Basic Installation: Start with the Centos 5.1 x86_64 install DVD. Boot the DVD. Select English language and U.S. English keyboard layout. Choose to Install the OS (not upgrade). Choose “Remove linux partitions on selected drives and create default layout.” Select DHCP network configuration, or the static IP address for this server. (I choose DHCP, and tell the DHCP server to use a specific IP for this host based on its Ethernet MAC address.) Choose the time zone the server is in (for me this is America/Los Angeles), and enable the “System clock uses UTC” option. Pick a complex root password (https://grc.com/passwords can generate one for you) and enter it. When given a chance to install additional tasks, uncheck everything (no additional tasks) and choose the “Customize now” radio button. In the next screen, go into every group and uncheck everything. (*Nothing* should be checked when you’re done. Be careful not to miss anything!) Confirm that you want the installer to begin the installation process. (For me this process took about 6 minutes.) Confirm that you want to reboot, and make sure that the server will boot from the hard disk instead of the installation media. When the server boots, log in as root. (You can disconnect from the console and use SSH instead at this point if it’s more convenient.) More Minimizing: Run this command to tell yum to go grab the latest package info from out on the internet. yum grouplist Run this command to make sure you didn’t install anything other than the bare minimum: yum -C grouplist You shouldn’t see a section called “Installed Groups:”. If you do see it, it means you missed something you were supposed to disable in the previous section.In that case, run this to remove it and all the packages in it: yum -C groupremove SomeGroupName You can also run this command to count how many packages have been installed already: yum -C list installed | wc -l The resulting count of packages installed should be 154.Next, run chkconfig --list | grep 3:on to see what services are enabled.Several of them can safely be disabled (provided that the assumptions at the top of this guide are true), so run this: for i in haldaemon lvm2-monitor messagebus netfs; do chkconfig $i off; done These are useful and should stay enabled: ip6tablesiptableskudzumcstransnetworkrestorecondsshdsyslog If for some reason there are others that are still enabled that aren’t on that list, you’ll have to decide for yourself.Run this command to remove a 9.7MB standalone documentation package that you almost certainly won’t be reading from the server: yum -C remove Deployment_Guide-en-US If you wish, run this command to update your installed packages to the latest stable version. yum update As of 3/27/2008 this installed a new kernel, updated 19 other packages, and required a 54MB download.Accept the CentOS package-signing GPG key when asked.If a kernel update is installed, it would be a good idea to reboot soon to make sure it works.You can also remove your old kernel. Use the following command to find old ones and save ~75MB. rpm -qa | grep kern ONLY do this if you updated your kernel and have 2 installed now. yum remove kernel-2.6.18-53.el5 Useful Things You May Want To Install:These packages are very useful for administering servers, deploying software and data to them, and performing backups: yum install bzip2 lsof man man-pages mlocate quota rsync sysstat vixie-cron wget which If your server has more than 1 CPU you may wish to install irqbalance, to distribute interrupt servicing duty across CPUs: yum install irqbalance This package makes the system boot slightly faster using a very simple, safe technique: yum install readahead If you aren’t familiar with the vim text editor, you can install nano, which is less powerful but very easy to use: yum install nano Quote Link to comment Share on other sites More sharing options...
wildweaselmi Posted July 29, 2009 Author Share Posted July 29, 2009 After CentOS is installed... install webmin Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Here is all you need to do to get it installed: This will install some dependencies. yum -y install perl-Net-SSLeay Install the system : cd /usr/srcwget http://superb-east.dl.sourceforge.net/sourceforge/webadmin/webmin-1.380-1.noarch.rpmrpm -i webmin-1.380-1.noarch.rpm install cpanel cPanel is the industry leader for turning standalone servers into a fully automated point-and-click hosting platform. Tedious tasks are replaced by web interfaces and API-based calls. cPanel is designed with multiple levels of administration including admin, reseller, end user, and email-based interfaces. These multiple levels provide security, ease of use, and flexibility for everyone from the server administrator to the email account user. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.