26 May 2013

How To: Install EHCP control panel on Ubuntu 12.04-12.10 using the AWS EC2 Free Tier

Get the latest version of EHCP:


root@ubuntu:~$ sudo wget http://www.ehcp.net/ehcp_latest.tgz
root@ubuntu:~$ sudo tar -zxvf ehcp_latest.tgz

Now execute the install.sh script to begin installation:

root@ubuntu:~$ cd ehcp/
root@ubuntu:~/ehcp$ sudo ./install.sh



Read and follow the instructions. 


The installer will install all the necessary packages like Apache, MySQL, Postfix and PHP. And also during the installation it will ask you to configure the services and enter the passwords for EHCP admin accounts.

  1. After a while, you will be asked to set MySQL root password.
  2. Enter the password and click OK.
  3. Re-enter the password and click OK.
  4. Then select the mail server which one is compatible to you. Choose “Internet Site”.
  5. Enter your mail domain name and Click OK.
  6. Select ‘Yes’ to create web based directories.
  7. Click ‘OK’ to create SSL certificate.
  8. Choose your desired webserver apache2 or lighttpd and click OK.
  9. Configure phpmyadmin to administer the databases? Click Yes.
  10. Specify the phpmyadmin database administrative user password.
  11. Enter your MySQL root password and click OK.
  12. Confirm the password.
  13. Now configure the roundcube-core.
  14. Select the database for roundcube: MySQL or PGSQL.
  15. Specify the password for roundcube administrative account.
  16. Specify MySQL password for roundcube.
  17. Confirm the password.

The installation is now complete.

Now open the EHCP console by entering in your browser: http://ip-address/
Click on the link “Click here for the control panel on your server”. Enter the administrative credentials. The default password for admin account is 1234. If you had entered a new password during the installation please provide the same

VSFTP issues on Ubuntu 12.04, 12.10

If you want to get vsftp working on Ubuntu 12.04, 12.10, please use this fix:

root@ubuntu:~$ sudo add-apt-repository ppa:thefrontiergroup/vsftpd
root@ubuntu:~$ sudo apt-get update
root@ubuntu:~$ sudo apt-get install vsftpd
root@ubuntu:~$ sudo sed -i 's/chroot_local_user=NO/chroot_local_user=YES/g' /etc/vsftpd.conf
root@ubuntu:~$ sudo sh -c "echo 'allow_writeable_chroot=YES' >> /etc/vsftpd.conf"
root@ubuntu:~$ sudo service vsftpd restart

If you see any errors:
libgcc_s.so.1 must be installed...

then do:
root@ubuntu:~$ sudo apt-get install libpam-ldap

and if you see
ldap://:port enter your "server-ip:21"

You're done!

----------------------


No comments: