install lamp server, varian ubuntu

install lamp linux mint / varian ubuntu

linux mint turunan dari ubuntu, tentu saja cara install nya hampir sama dengan cara install lamp server di ubuntu

perintah

$ sudo apt-get install lamp-server^

tunggu sampai selesai

———————————-

hal berikut nya adalah menempatkan DocumentRoot /  folder utama untuk website di halaman home

atau membuat virtualhost

buat sebuah file baru di /etc/apache2/sites-enabled

$ sudo nano /etc/apache2/sites-enabled/8081-www

copy contoh script ke file 8081-www

#indradhi virtual host
Listen 8081

<VirtualHost *:8081>
ServerAdmin kucay46@yahoo.com
DocumentRoot /home/kucay/websites/
ServerName localhost
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml
ErrorLog /home/kucay/websites/logs/error.log
CustomLog /home/kucay/websites/logs/custom.log common

<Directory "/home/kucay/websites">
Options Indexes FollowSymLinks +ExecCGI
IndexOptions NameWidth=*
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
AllowOverride All

</Directory>
</VirtualHost>

buat folder websites di home user

mkdir /home/kucay/websites
mkdir /home/kucay/websites/logs
touch /home/kucay/webistes/logs/error.log
touch /home/kucay/webistes/logs/custom.log

reload apache configuration

sudo /etc/init.d/apache2 reload

buka menggunakan browser localhost port 8081

localhost:8081
———————————-

install php myadmin

$sudo apt-get install phpmyadmin

jika root mysql tidak menggunakan password, edit file /etc/phpmyadmin/config.inc.php
uncomment kan


$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s