LAMPP di openSUSE 11.2

1. Installasi

buka console/ terminal, lalu ketik perintah berikut :
sudo -s
# zypper in -t pattern lamp_server

2. konfigurasi

# chkconfig –add apache2
# chkconfig apache2 on
# service apache2 restart

Aktivasi Index File

Atas pertimbangan keamananan data web, openSUSE secara default hanya akan mengaktifkan folder yang memiliki file index (misalnya index.html). Jika tidak ada, openSUSE akan menampilkan tulisan Access Forbidden. Hal ini kadang membuat bingung rekan-rekan yang ingin membuat blog atau website lokal (misalnya : WordPress, Serendipity, Joomla dll) namun tidak dapat mengakses folder hasil upload. Berikut adalah cara mengaktifkan pilihan index file :
Buka file /etc/apache2/default-server.conf

Perhatikan bagian berikut (perhatikan hingga mata berkunang-kunang, hehehe…)

#
# Configure the DocumentRoot
#
<Directory “/srv/www/htdocs”>
# Possible values for the Options directive are “None”, “All”,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that “MultiViews” must be named *explicitly* — “Options All”
# doesn’t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>

Ubah bagian Options None menjadi Options All. Silakan pelajari fungsi dari pilihan lain yang disediakan(Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews)

Jalankan ulang service Apache2

# service apache2 restart

setelah itu coba tes web servernya, buka web browser (opera, mozilla, or konqueror)
masukan alamat IP server/localhost/ http://127.0.0.1
klo udah keluar tulisan “It works!” berarti webserver udah sekses di jalanin…

NB :
Folder utama dari web server terletak pada folder /srv/www/htdocs. Kita dapat membuat virtual server yang diset ke home directory masing-masing user atau diset ke folder tertentu.
Instalasi paket LAMP Server akan sekaligus melakukan instalasi Web Server Apache, Database MySQL dan PHP Programming

~ oleh rekaa pada Maret 9, 2010.

Tinggalkan Balasan

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 / Ubah )

Twitter picture

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

Facebook photo

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

Connecting to %s

 
Ikuti

Get every new post delivered to your Inbox.