To manage this kind of things, let's use a more powerfull thing which is called Webmin. Download the debian package, and then setup Apache Virtual Hosts, and Bind Configuration from there.
side note: when installing bind to the VPS, we should set the DNS Server to 127.0.0.1 (localhost) and then set the bind dns forwarding accordingly.
-----------OLD ARTICLE STARTING-------->>
I was tempted with the low price on vps these days, and it's my goal someday to create a multiplayer game.. err not multiplayer.. but online where people could play and compete with each other online.. ;)
any whoo..
the steps..
- After you receive your username, password, and ip address, log in to you vps SSH by ussing putty
- Start by upgrading.. aptitude update && aptitude upgrade
- Next, install mysql aptitude install mysql-server mysql-client
- Enter you mysql username and password, don't lose it
- install the server aptitude install apache2 apache2-doc
- say we want to use username user1, add that user, and give that user a html home
- useradd user1
- passwd user1
- html home..
- mkdir /home/user1
- chown user1:users /home/ user1
- chgrp www-data /home/user1/public_html
- enable apache userdir module a2enmod userdir
- edit /etc/apache2/mods-enabled/userdir.conf
hint: you could use winscp and create a login session using your root password, you could browse your file there.quite a powerfull software winscp.. ;)
now edit that file to something like the following
<IfModule mod_userdir.c> UserDir public_html UserDir disabled root <Directory /home/*/public_html> AllowOverride All Options MultiViews Indexes SymLinksIfOwnerMatch <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory> </IfModule>
- install php aptitude install php5 php5-mysql libapache2-mod-php5
- install phpmyadmin aptitude install phpmyadmin
- edit /etc/apache2/apache2.conf insert the following Include /etc/phpmyadmin/apache.conf
- restart apache /etc/init.d/apache2 restart
..now for the bind9,
Tidak ada komentar:
Posting Komentar