Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Networking Guide for EHCP
#1
Hello,
This guide is for new users of Ehcp and some networking.

Since i run Ubuntu on my server.
It's based on Ubuntu.
Although some other Linux Distro's will have alternative names.

This guide will show you how to do.

1. Basic Port Fowarding.

2. DNS Setup.

3. FTP Setup.

4. Website Setup.

5. MySQL Setup.

*This guide is also located in the Paid Support website of Ehcp.*
Read the new's for the link.

1. Port Fowarding.

Depending on what you use for internet you will have to do this to actually find your Routers Admin link.

Windows Users
Open up Run and type cmd
Type ipconfig/all

Find Default Gateway.
It ussually is 192.xxx.x.x

Now Type that in your browser.
Login with your Username and password.

Default is no user, password admin (Best to change that)

Now Every Router Web INF is different.
For LinkSys it's under Applications & Gaming Port Range Fowarding.

Most other Routers will have simular but different named of Settings.
Your best bet is reading the documentation of the router. Or you can look at all of the pages for it.

It's ussually a bunch of text boxes 2 per row.

Ok got it?
Good!

Now for Text box 1 (The one on your left)
type in port 80 (default web setup for Ehcp) And i would suggest ending it at port 81 It can go higher then this though.
You also need to open up these ports for Remote MySQL, FTP, and other Webserver access.

Mysql's port is 3306
By Default Mysql does not allow Remote access we will set that up later!

FTP's port is 21 by default.
Check if your sever is working by finding your external ip address.
I would suggest ipchicken.com

Then enter that type your ip into the web address bar. If all done correctly you should see your ehcp web panel.
===========================
2. DNS Setup.

Now I will be doing this setup the easy way.
All you really need to do is.

If you have a exiting domain you wish to use.
Use this service.
DNSEXIT.COM make a account and add your domain. Then enter in your External ip address found from ipchicken.

If you do not have a domain or do not wish to use one.
Use this Service.
DynDns.com
It's free and you can use a subdomain under another registered domain listed. Just make your domain and ur set! They detect your ip and enter it in for you.

To add other user's domains you may have to setup Bind9 or manually add there domains on these hosts.

The User and you have to add the DNS host's nameserver if you already have a domain.
===========================
3. FTP Setup
This does require installing

Login as root.
# apt-get install vsftpd
Choose standard.
Follow the on screen instructions.

Should auto start this program when complated.
If not enter in
# /etc/init.d/vsftpd (restart,stop or start)

Now go into ehcp admin.
http://YOURIP:80
Login and click FTP.

Create a new user. with password.
Open up any FTP cilent.
Login with those details.
Webserver is YOURIP and port 21.

If you get permisson errors.
You may have to edit your config file.
Use command.

# nano /etc/vsftpd/vsftpd.conf

To add approvel for users manually.
# nano /etc/vsftpd.ftpusers

Enter in anything else that might need ajustments.
It's pretty simple though.
=====================
4. Webserver settings.

1. # apt-get install apache2
2. # useradd -d /home/www r -m www
sudo passwd 123456
3. # mkdir /home/www/ If not auto added.
4. Add whatever directorys you might want with mkdir then use.
chown -www /home/www/examplefolder & chmod 775 /home/www/examplefolder/
5. # nano /etc/apache2/sites-available/default
In the config of that file.
Change your Directives to the folder's you made in WWW.

Make sure you also have added these Directives in FTP as well.
Upload a index.html file to test it.

Now view your website!
http://YOURIP/X/index.html
X=Folder of where index.html is contained.

It wont show up if you put it in the root of the website.
Since Ehcp has port 80.
========================
5. MySQL setup.
To install mysql
# apt-get install mysql-server mysql-client
the client is if you want to use mysql admin on the terminal or command line.

To Allow Remote access.
# nano /etc/mysql/my.cnf
Find the BIND-ADDRESS =127.0.0.1 line.
and Comment that out. by deleting the #.

To setup your ROOT password for MySQL.
#mysqladmin -u root password your-new-password

To login via Terminal.
# mysql -u "Usernamehere" -p
Enter in the password we made before.

create a new database.
# createdatabase example;

To allow Permisson of database to user.
grant CREATE,INSERT,DELETE,UPDATE,SELECT,DROP on example.* to IDENTIFIED BY '123456';

Edit if Needed.
So now you should have the database running and you can install any sort of scripts.

You can also use Ehcp's web interface to do PHPMyadmin *If installed*
Or to add and drop databases and users.
===========================
I hope i helped you today! If you have any questions. Just go to the paid
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping