Halaman

Jumat, 30 November 2012

[Debian VPS]Installing lamp, till bind9

Edited: 29 Jan 2015
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..

  1. After you receive your username, password, and ip address, log in to you vps SSH by ussing putty
  2. Start by upgrading.. aptitude update && aptitude upgrade
  3. Next, install mysql aptitude install mysql-server mysql-client
  4. Enter you mysql username and password, don't lose it
  5. install the server aptitude install apache2 apache2-doc
  6. say we want to use username user1, add that user, and give that user a html home
    1. useradd user1
    2. passwd user1
    3. html home..
      1. mkdir /home/user1
      2. chown  user1:users /home/ user1
      3. chgrp www-data /home/user1/public_html
    4. enable apache userdir module a2enmod userdir
    5. 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>
      
    6. install php aptitude install php5 php5-mysql libapache2-mod-php5
    7. install phpmyadmin aptitude install phpmyadmin
    8. edit /etc/apache2/apache2.conf insert the following Include /etc/phpmyadmin/apache.conf
    9. restart apache /etc/init.d/apache2 restart
    Now you should have a running basic php-mysql environment, maybe you would like to install pear and pecl? you do this by using apt-get install php-pear and apt-get install php5-dev
    ..now for the bind9,

Tidak ada komentar:

Posting Komentar