Sekedar Documentasi untuk Pelupa

Setting Web Server Ubuntu 10.10 + Virtual Host

Langsung aj ke terminal/console/shell

sudo su
aptitude install mysql-server mysql-client
New password for the MySQL "root" user: <-- yourrootsqlpassword
    Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
aptitude install apache2
Apache's default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules),  /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.

aptitude install php5 libapache2-mod-php5

/etc/init.d/apache2 restart

aptitude search php5

aptitude install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json


/etc/init.d/apache2 restart

aptitude install phpmyadmin
Web server to reconfigure automatically: <-- apache2
Configure database for phpmyadmin with dbconfig-common? <-- No 


Back up terlebih dahulu

cp /etc/apache2/sites-available/default /etc/apache2/sites-available/skull

nano /etc/apache2/sites-available/skull
isinya 
        ServerAdmin webmaster@web.ariecc.co.id
        DocumentRoot /home/        ####arahkan pada web yg di tuju
                ####arahkan pada web yg di tuju
               Options Indexes FollowSymLinks
               AllowOverride none
          
        ServerName web.ariecc.co.id
        DirectoryIndex index.php index.html index.htm
        ErrorLog /home/web/var/log/apache2/web.ariecc.co.id-error
        CustomLog /var/log/apache2/web.ariecc.co.id-access combined  
a2ensite skull

/etc/init.d/apache2 restart

nano /etc/hosts
    127.0.0.1 web.ariecc.co.id
useradd -d /home/testuser -m testuser -s /bin/bash  #isi testuser dgn nama user
passwd "namauser"

1 komentar:

bayu setiawan mengatakan...

gan, kurang lengkap