ispCP ω (OMEGA) HowTo Install for Ubuntu
================================================================================
For other Linux distributions please check the other INSTALL files.
================================================================================

Table of Content
================
1) Version Info
2) Requirements
3) Introduction
4) Installation
5) Update
6) Uninstall
7) Credits

================================================================================
1) Version Info
---------------
ispCP ω Version: 	1.0.7
INSTALL Script:		1.8
Maintainer:
Homepage:			http://isp-contol.net
Linux Distros:		Ubuntu

================================================================================
2) Requirements
---------------
There is no must have for a system using ispCP ω. This is only a recommendation:

Penitum III or K6-4 with 500 MHz
512 MB RAM
100 MB disk space (only for install of ispCP ω)
Debian (or even any other *NIX-Distribution)

All 10.04 LTS required packages are listed in ./docs/Ubuntu/ubuntu-packages-lucid

================================================================================
3) Introduction
---------------
ispCP ω delivers a complete hosting automation appliance by offering significant
security, total-cost-of-ownership, and performance advantages over competing
commercial solutions.

With ispCP ω you can configure your server and applications, create user with
domains with a few point-and-click operations that take less than a minute.
There is no limit to the number of resellers, users and domains that can be
created. The core of ispCP ω are 3 easy-to-use, web-based control panels. ispCP
provides graphic user interfaces for the administrators, resellers and users.

================================================================================
4) Installation
---------------

1. Untar or unzip the distribution files to a secure directory:
	# cd /usr/local/src
	# tar xjvf ispcp-omega-1.0.7.tar.bz2

2. Change to the newly created directory:
	# cd ./ispcp-omega-1.0.7

3. Install the required modules
   First update your system:
	# sudo aptitude update && aptitude upgrade
	# sudo aptitude install lsb-release
	# sudo aptitude install $(cat ./docs/Ubuntu/ubuntu-packages-`lsb_release -cs`)

   Make sure you have added multiverse into your /etc/apt/sources.list

	(if you get to the courier screen select 'no' to web directories)
	(if you get to the postfix screen select 'internet site' and then type 'root'
	for mail. If you've set debian up correctly on install your domain should be
	already on screen. Select 'no' to force sync updates.)
	(if you get to the proftpd screen, select 'standalone')
	(if you get to the rootkithunter screen, select two time 'yes')

4. (optional) Check the ispcp.conf and adapt it to your requirements.

5. Build the System by using make:
	# sudo make -f Makefile.ubuntu install

6. Copy all the directories into your system (you may make backups)
	# sudo cp -Rv /tmp/ispcp/* /

7. Now it's time to set up the frontend. Change into the engine directory:
	# cd /var/www/ispcp/engine/setup

7a. Set the MySQL password, if not set:
	# sudo mysqladmin -u root password YOUR_PASSWORD

8. Start the engine setup:
	# sudo perl ispcp-setup

9. Install ispCP ω step-by-step

	If you get no error, all went good; if you get one, look at
	http://isp-control.net to solve the problem.

10. Activate php mcrypt extension for Ubuntu
	# sudo touch /etc/php5/conf.d/mcrypt.ini
	# sudo echo "extension=mcrypt.so" > /etc/php5/conf.d/mcrypt.ini
	# sudo chmod 644 /etc/php5/conf.d/mcrypt.ini
	# sudo cp /etc/php5/conf.d/mcrypt.ini /etc/php5/cgi/conf.d/
	# sudo /etc/init.d/apache2 restart

11. Clean the temporary folders:
	# sudo rm -fR /tmp/ispcp

================================================================================
5) Update
---------
NOTE: ispCP ω can only be updated from post 1.0.0. If you have a
version prior 1.0.0 (final release) installed, update to ispCP ω 1.0.0 first.

Make sure you are logged in as root and MySQL is running.

1. Untar or unzip the distribution files to a secure directory:
	# cd /usr/local/src
	# tar xjvf ispcp-omega-1.0.7.tar.bz2

2. Change to the newly created directory:
	# cd ./ispcp-omega-1.0.7

3. Install the required modules
   first update your system:

	# sudo aptitude update && aptitude safe-upgrade
	# sudo aptitude install lsb-release
	# sudo aptitude install $(cat ./docs/Ubuntu/ubuntu-packages-`lsb_release -cs`)

   Make sure you have added multiverse into your /etc/apt/sources.list

	(if you get to the courier screen select 'no' to web directories)
	(if you get to the postfix screen select 'internet site' and then type 'root'
	for mail. If you've set debian up correctly on install your domain should be
	already on screen. Select 'no' to force sync updates.)
	(if you get to the proftpd screen, select 'standalone')
	(if you get to the rootkithunter screen, select two time 'yes')

4. Stop the ispcp_deamon and build the Software by using make:
	# /etc/init.d/ispcp_daemon stop
	# make -f Makefile.ubuntu  install

5. Backup files
	# sudo cp -v /var/www/ispcp/engine/ispcp-db-keys.pl /tmp/ispcp/var/www/ispcp/engine/
	# sudo cp -v /var/www/ispcp/engine/messenger/ispcp-db-keys.pl /tmp/ispcp/var/www/ispcp/engine/messenger/
	# sudo cp -v /var/www/ispcp/gui/include/ispcp-db-keys.php /tmp/ispcp/var/www/ispcp/gui/include/
	# sudo cp -v /var/www/ispcp/gui/themes/user_logos/* /tmp/ispcp/var/www/ispcp/gui/themes/user_logos/
	# sudo cp -v /var/www/ispcp/gui/tools/webmail/data/* /tmp/ispcp/var/www/ispcp/gui/tools/webmail/data/

	For ispCP Omega prior version 1.0.7 RC2
	# sudo cp -v /var/www/ispcp/gui/tools/pma/config.inc.php /tmp/ispcp/etc/ispcp/pma/working/

6. Delete old files to avoid security risks:
	# sudo rm -Rf /var/www/ispcp/engine/
	# sudo rm -Rf /var/www/ispcp/gui/{admin,client,include,orderpanel,themes,reseller}/
	# sudo rm -Rf /var/www/ispcp/gui/tools/{pma/,filemanager/,webmail/,index.php}
	# sudo rm -Rf /var/www/ispcp/gui/{*.php,favicon.ico,robots.txt}

7. Copy /usr and /var directories into your system (you may make backups)
	# sudo cp -Rv /tmp/ispcp/usr/* /usr/
	# sudo cp -Rv /tmp/ispcp/var/* /var/

8. Backup ispcp.conf and copy the /etc directory into your system (you may make backups):
	# sudo mv -v /etc/ispcp/ispcp.conf /etc/ispcp/ispcp.old.conf
	# sudo cp -Rv /tmp/ispcp/etc/* /etc/

9. Now it's time to update your installation. Change into the engine directory:
	# cd /var/www/ispcp/engine/setup

10. Start the engine update:
	# sudo perl ispcp-update

11. Update ispCP ω step-by-step

	If you get no error, all went good; if you get one, look at
	http://isp-control.net to solve the problem.

12. Clean the temporary folders:
	# sudo rm -fR /tmp/ispcp/

================================================================================
6) Uninstall
------------
Make sure you are logged in as root and MySQL is running.

1. Change into the engine directory:
	# cd /var/www/ispcp/engine/setup

2. Start the uninstall script:
	# perl ispcp-uninstall

3. Clean up your system

================================================================================
7) Credits
----------

ispCP ω is a project of ispCP | isp Control Panel.
ispCP, ispCP ω, isp Control Panel, the ispCP logo and the ω Logo are trademarks
of the ispCP | isp Control Panel Project Team.

Please visit our site under http://isp-control.net for further information on
ispCP ω, ispCP and other themes.

We hope you enjoy using ispCP ω. If you like it, help us, to make it better. We
would be glad on any help provided!
