1. Document everything - Get a spiral notebook for notes and RECORD EVERYTHING YOU DO! I use a windows utility called notekeeper(freeware) for this purpose. You can download from here: http://www.customensimbackup.com/download/...0.9-install.exe. You can add notes, folders, encrypt password protect, and most importantly copy and paste commands and codes that you find along the way as a webhosting admin.
2. Accessing the server - Download and install a Windows SSH client program if you haven't done so already. I use the F-Secure SSH Windows client but at $150 a copy, you might want to use PUTTY which is free. You can download PUTTY here: http://www.chiark.greenend.org.uk/~sgtatham/putty/. Your "root" password is the same as the "admin" password that they gave you for your control panel.
3. Preliminary server setup - You already gave EV1 a domain name when signing up or registered one. My IP address "bank" that I was given was "10.0.0.1 thru 10.0.0.7". So(for example)write down:
domain name I submitted: pigglypokes.com
decided server hostname: srvr01.pigglypokes.com
srvr01.pigglypokes.com: 10.0.0.1
ns1.pigglypokes.com: 10.0.0.1
ns2.pigglypokes.com: 10.0.0.2
pigglypokes.com: 10.0.0.2
4. Update your dns records - Log into your control center for EV1 and edit / add / remove your dns records to reflect these changes and match what you wrote down.
5. Configuring the server - Log into your server as root via ssh. Unlike Windows, linux is case sensitive. ALWAYS remember that. If you can't log in as root, submit a TT to EV1. Now type:
CODE
cat /usr/lib/opcenter/VERSION
Write down the version you have. Should say "4.0.0","4.0.1","4.0.2","4.0.3". Versions "4.0.1 and above" can directly upgrade to "4.0.3". "4.0.0" versions will have to upgrade to 4.0.1 or 4.0.2 first. Now we need to make the server name right. Now type:
CODE
wget [url]http://www.customensimbackup.com/download/hostname.sh[/url]
chmod 700 hostname.sh
./hostname.sh
chmod 700 hostname.sh
./hostname.sh
Answer the questions. You have all the information so there should't be any issues with this phase. You're setting the hostname, and master ip address for srvr01.pigglypokes.com: "10.0.0.1". When you have completed that, log into your control panel.
- Click site manager on the left, and select add ip based site.
- Add "pigglypokes.com" with IP address "10.0.0.2". Select all the options you want, or unselect the ones that you don't. You can always change this later so it's not "mission critical". The goal is to get it created.
- Select dns on the left, and then zones at the top.
- Click on the zone for "pigglypokes.com".
- Add an "A" record: "ns1.pigglypokes.com => 10.0.0.1". Ignor any "error messages unless it says it "failed" for some reason.
- Add another "A" record: "ns2.pigglypokes.com => 10.0.0.2".
- Add a "NS" record: "pigglypokes.com => ns1.pigglypokes.com".
- Add another "NS" record: "pigglypokes.com => ns2.pigglypokes.com".
- Click on configure at the top.
- Edit the master nameserver to point to ns1.pigglypokes.com.
- Click on virtual nameserver and add ns2.pigglypokes.com with IP address of 10.0.0.2.
Go back to the SSH window and type:
CODE
reboot
exit
exit
6. Letting the world know - Go to your registrar, and "register" your nameservers. Each registrar has their own method, and their customer support team can assist you if you can't figure it out. Call them if you must! Now submit a TT for reverse DNS entries for NS1.pigglypokes.com and NS2.pigglypokes.com pointing to those IP addies that you decided on. That way certain mail servers won't reject your mail from your machine.
Your server is properly configured and ready for domain names, etc. It will take a day or so for all the changes to be seen world wide, but for the most part, things should start to be working cause you been working at this for awhile. To get to various places:
-ttp://srvr01.pigglypokes.com/admin will take you to your control panel admin / reseller login window.
-ttp://www.pigglypokes.com/admin will take you to your site's control panel.
When you can do that, then you know that it's being seen properly.
To upgrade 4.0.0 to 4.0.1 see case information at: http://kbold.ensim.com/TWKB/ViewCase.asp?QSRuleID=975
and then type:
CODE
wget [url]ftp://ftp.ensim.com/download/pro/linux/4.0.1_RHEL/ensim-installer.sh[/url]
To upgrade to 4.0.3 from 4.0.1 or 4.0.2 see case information at: http://onlinesupport.ensim.com/TWKB/ViewCa...nowledgeID=1944
You will need to do a few things first. Type
CODE
up2date -uf
and let it install all the updates. Do not reboot. Do not run:
CODE
/usr/local/sbin/set_pre_maintenance
/usr/local/sbin/set_maintenance
/usr/local/sbin/set_post_maintenance
/sbin/service webppliance restart
/usr/local/sbin/set_maintenance
/usr/local/sbin/set_post_maintenance
/sbin/service webppliance restart
Now download the installer and run the upgrade.
CODE
wget [url]ftp://ftp.ensim.com/apt/ensim/LWP/4.0.3/22.rhel.3ES/tools/ensim-installer.sh[/url]
Side note: Some folks have had some problems while doing the upgrade(s) of a failed tomcat dependancy.
If you do,
CODE
wget [url]ftp://ensimwpl:ensim94089@ftp2.ensim.com/apt/ensim/LWP/4.0.2/7.rhel/RPMS.lwp/j2sdk-2000:1.4.2_05-fcs.i586.rpm[/url]
rpm -Uvh j2sdk*.rpm
rm -f j2sdk*.rpm
cd /usr/java
ln -s j2sdk1.4.2_05 j2sdk1.4.2
service tomcat4 start
service tomcat4 stop
rpm -Uvh j2sdk*.rpm
rm -f j2sdk*.rpm
cd /usr/java
ln -s j2sdk1.4.2_05 j2sdk1.4.2
service tomcat4 start
service tomcat4 stop
Ok. Upgrade completed? Now type
CODE
reboot
exit
exit
Now install a firewall. Would suggest reading this wonderful thread. Special thanks go to Steve for his contributions.http://forums.ev1servers.net/showthread.ph...&highlight=kiss
To keep the server's time accurate, see this thread:http://forums.ev1servers.net/showthread.php?t=54129
For a backup script, see this thread: http://forums.ev1servers.net/showthread.php?t=53966
Reducing spam
Download the attachment located below. Upload it to your server.
CODE
mv /usr/lib/opcenter/sendmail/install/sendmail.mc /usr/lib/opcenter/sendmail/install/sendmail.mc.original
mv sendmail_mc.txt /usr/lib/opcenter/sendmail/install/sendmail.mc
service sendmail stop
service sendmail stop (do this twice just to be sure it's stopped)
cd /usr/lib/opcenter/sendmail/install
m4 sendmail.mc > /etc/mail/sendmail.cf
service sendmail start
mv sendmail_mc.txt /usr/lib/opcenter/sendmail/install/sendmail.mc
service sendmail stop
service sendmail stop (do this twice just to be sure it's stopped)
cd /usr/lib/opcenter/sendmail/install
m4 sendmail.mc > /etc/mail/sendmail.cf
service sendmail start
More to come as I get time to edit this. (check back often)
things to come:
install ioncube loader
install zend optimizer
making php settings user friendly
virtual cron
breaking catch-all's