Friday, November 21, 2008

Install web server ubuntu 8.04

Membuat Web Server
(apache2, php5 dan mysql­server)
Imron Rosyidi
Langkah­langkah membuat web server:
1. Pastikan komputer tersambung dengan internet
Masuk ke termial
aplications->accesories->terminal
$ ping google.co.id
Hasilnya:
root@freeclass:~# ping google.co.id
PING google.co.id (72.14.207.104) 56(84) bytes of data.
64 bytes from eh­in­f104.google.com (72.14.207.104): icmp_seq=1
ttl=238 time=428 ms
64 bytes from eh­in­f104.google.com (72.14.207.104): icmp_seq=2
ttl=238 time=426 ms
­­­ google.co.id ping statistics ­­­
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 426.718/427.840/428.962/1.122 ms
Ctrl+C untuk menghentikan
2. Login sebagai root
$ su ­
password: panasonic
sehingga $ menjadi #
3. install quanta
#apt get install quanta
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no
longer required:
lsb­languages debhelper intltool­debian lsb­graphics lsb­
desktop m4
po­debconf ncurses­term libqt4­core libqt4­gui lsb pax lsb­
multimedia
libtimedate­perl dpkg­dev lsb­printing html2text patch lsb­
core alien
lsb­cxx
Use 'apt­get autoremove' to remove them.
The following extra packages will be installed:
cvs kfilereplace klinkstatus kommander libcvsservice0
libtidy­0.99­0
quanta­data tidy
Suggested packages:
khelpcenter kommander­dev gubed kimagemapeditor php­doc tidy­
doc
Recommended packages:
cervisia docbook­defguide kompare kxsldbg
The following NEW packages will be installed:
cvs kfilereplace klinkstatus kommander libcvsservice0
libtidy­0.99­0 quanta
quanta­data tidy
0 upgraded, 9 newly installed, 0 to remove and 287 not upgraded.
Need to get 8263kB of archives.
After this operation, 25.7MB of additional disk space will be
used.
Do you want to continue [Y/n]? Y
Get:1 http://id.archive.ubuntu.com hardy/main cvs 1:1.12.13­9
[1670kB]
Get:2 http://id.archive.ubuntu.com hardy­updates/main
kfilereplace 4:3.5.10­0ubuntu1~hardy1 [641kB]
Get:3 http://id.archive.ubuntu.com hardy­updates/main
klinkstatus 4:3.5.10­0ubuntu1~hardy1 [318kB]
Get:4 http://id.archive.ubuntu.com hardy­updates/main kommander
4:3.5.10­0ubuntu1~hardy1 [1999kB]
Get:5 http://id.archive.ubuntu.com hardy­updates/main kommander
4:3.5.10­0ubuntu1~hardy1 [1999kB]
Get:6 http://id.archive.ubuntu.com hardy­updates/main
libcvsservice0 4:3.5.10­0ubuntu1~hardy1 [106kB]
Get:7 http://id.archive.ubuntu.com hardy/main libtidy­0.99­0
20080116cvs­2 [134kB]
Get:8 http://id.archive.ubuntu.com hardy­updates/main quanta­
data 4:3.5.10­0ubuntu1~hardy1 [973kB]
Get:9 http://id.archive.ubuntu.com hardy/main tidy 20080116cvs­2
[17.2kB]
Get:10 http://id.archive.ubuntu.com hardy­updates/main quanta
4:3.5.10­0ubuntu1~hardy1 [2403kB]
Get:11 http://id.archive.ubuntu.com hardy­updates/main quanta
4:3.5.10­0ubuntu1~hardy1 [2403kB]
Fetched 5677kB in 6min32s (14.5kB/s)
Preconfiguring packages ...
Selecting previously deselected package cvs.
(Reading database ... 105966 files and directories currently
installed.)
Unpacking cvs (from .../cvs_1%3a1.12.13­9_i386.deb) ...
Selecting previously deselected package kfilereplace.
Unpacking kfilereplace (from
.../kfilereplace_4%3a3.5.10­0ubuntu1~hardy1_i386.deb) ...
Selecting previously deselected package klinkstatus.
Unpacking klinkstatus (from
.../klinkstatus_4%3a3.5.10­0ubuntu1~hardy1_i386.deb) ...
Selecting previously deselected package kommander.
Unpacking kommander (from
.../kommander_4%3a3.5.10­0ubuntu1~hardy1_i386.deb) ...
Selecting previously deselected package libcvsservice0.
Unpacking libcvsservice0 (from
.../libcvsservice0_4%3a3.5.10­0ubuntu1~hardy1_i386.deb) ...
Selecting previously deselected package libtidy­0.99­0.
Unpacking libtidy­0.99­0 (from
.../libtidy­0.99­0_20080116cvs­2_i386.deb) ...
Selecting previously deselected package quanta­data.
Unpacking quanta­data (from .../quanta­
data_4%3a3.5.10­0ubuntu1~hardy1_all.deb) ...
Selecting previously deselected package tidy.
Unpacking tidy (from .../tidy_20080116cvs­2_i386.deb) ...
Selecting previously deselected package quanta.
Unpacking quanta (from
.../quanta_4%3a3.5.10­0ubuntu1~hardy1_i386.deb) ...
Setting up cvs (1:1.12.13­9) ...
Setting up kfilereplace (4:3.5.10­0ubuntu1~hardy1) ...
Setting up klinkstatus (4:3.5.10­0ubuntu1~hardy1) ...
Setting up kommander (4:3.5.10­0ubuntu1~hardy1) ...
Setting up libcvsservice0 (4:3.5.10­0ubuntu1~hardy1) ...
Setting up libtidy­0.99­0 (20080116cvs­2) ...
Setting up quanta­data (4:3.5.10­0ubuntu1~hardy1) ...
Setting up tidy (20080116cvs­2) ...
Setting up quanta (4:3.5.10­0ubuntu1~hardy1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@freeclass:~# clear
4. Install apache2
root@freeclass:~# apt­get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no
longer required:
lsb­languages debhelper intltool­debian
lsb­graphics lsb­desktop m4 po­debconf
ncurses­term libqt4­core libqt4­gui lsb pax
lsb­multimedia libtimedate­perl dpkg­dev
lsb­printing html2text patch lsb­core alien
lsb­cxx
Use 'apt­get autoremove' to remove them.
The following extra packages will be installed:
apache2­mpm­worker apache2­utils
apache2.2­common libapr1 libaprutil1 libpq5
Suggested packages:
apache2­doc
The following NEW packages will be installed:
apache2 apache2­mpm­worker apache2­utils
apache2.2­common libapr1 libaprutil1 libpq5
0 upgraded, 7 newly installed, 0 to remove and 287 not upgraded.
Need to get 1628kB of archives.
After this operation, 5763kB of additional disk space will be
used.
Do you want to continue [Y/n]? Y
Get:1 http://id.archive.ubuntu.com hardy/main libapr1 1.2.11­1
[115kB]
Get:2 http://id.archive.ubuntu.com hardy­updates/main libpq5
8.3.3­0ubuntu0.8.04 [272kB]
Get:3 http://id.archive.ubuntu.com hardy/main libaprutil1
1.2.12+dfsg­3 [70.0kB]
Get:4 http://id.archive.ubuntu.com hardy­updates/main apache2­
utils 2.2.8­1ubuntu0.3 [139kB]
Get:5 http://id.archive.ubuntu.com hardy­updates/main apache2.2­
common 2.2.8­1ubuntu0.3 [754kB]
Get:6 http://id.archive.ubuntu.com hardy­updates/main apache2­
mpm­worker 2.2.8­1ubuntu0.3 [234kB]
Get:7 http://id.archive.ubuntu.com hardy­updates/main apache2
2.2.8­1ubuntu0.3 [44.6kB]
Fetched 1628kB in 16s (97.8kB/s)
Selecting previously deselected package libapr1.
(Reading database ... 107923 files and directories currently
installed.)
Unpacking libapr1 (from .../libapr1_1.2.11­1_i386.deb) ...
Selecting previously deselected package libpq5.
Unpacking libpq5 (from
.../libpq5_8.3.3­0ubuntu0.8.04_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from
.../libaprutil1_1.2.12+dfsg­3_i386.deb) ...
Selecting previously deselected package apache2­utils.
Unpacking apache2­utils (from .../apache2­
utils_2.2.8­1ubuntu0.3_i386.deb) ...
Selecting previously deselected package apache2.2­common.
Unpacking apache2.2­common (from .../apache2.2­
common_2.2.8­1ubuntu0.3_i386.deb) ...
Selecting previously deselected package apache2­mpm­worker.
Unpacking apache2­mpm­worker (from .../apache2­mpm­
worker_2.2.8­1ubuntu0.3_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from
.../apache2_2.2.8­1ubuntu0.3_all.deb) ...
Setting up libapr1 (1.2.11­1) ...
Setting up libpq5 (8.3.3­0ubuntu0.8.04) ...
Setting up libaprutil1 (1.2.12+dfsg­3) ...
Setting up apache2­utils (2.2.8­1ubuntu0.3) ...
Setting up apache2.2­common (2.2.8­1ubuntu0.3) ...
Module alias installed; run /etc/init.d/apache2 force­reload to
enable.
Module autoindex installed; run /etc/init.d/apache2 force­reload
to enable.
Module dir installed; run /etc/init.d/apache2 force­reload to
enable.
Module env installed; run /etc/init.d/apache2 force­reload to
enable.
Module mime installed; run /etc/init.d/apache2 force­reload to
enable.
Module negotiation installed; run /etc/init.d/apache2 force­
reload to enable.
Module setenvif installed; run /etc/init.d/apache2 force­reload
to enable.
Module status installed; run /etc/init.d/apache2 force­reload to
enable.
Module auth_basic installed; run /etc/init.d/apache2 force­
reload to enable.
Module authz_default installed; run /etc/init.d/apache2 force­
reload to enable.
Module authz_user installed; run /etc/init.d/apache2 force­
reload to enable.
Module authz_groupfile installed; run /etc/init.d/apache2 force­
reload to enable.
Module authn_file installed; run /etc/init.d/apache2 force­
reload to enable.
Module authz_host installed; run /etc/init.d/apache2 force­
reload to enable.
Setting up apache2­mpm­worker (2.2.8­1ubuntu0.3) ...
* Starting web server apache2 apache2:
Could not reliably determine the server's fully qualified domain
name, using 127.0.1.1 for ServerName
[ OK ]
Setting up apache2 (2.2.8­1ubuntu0.3) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
5. Install php5
root@freeclass:~# apt­get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no
longer required:
lsb­languages debhelper intltool­debian
lsb­graphics lsb­desktop m4 po­debconf
ncurses­term libqt4­core libqt4­gui lsb pax
lsb­multimedia libtimedate­perl dpkg­dev
lsb­printing html2text patch lsb­core alien
lsb­cxx
Use 'apt­get autoremove' to remove them.
The following extra packages will be installed:
apache2­mpm­prefork libapache2­mod­php5
php5­common
Suggested packages:
php­pear
The following packages will be REMOVED:
apache2­mpm­worker
The following NEW packages will be installed:
apache2­mpm­prefork libapache2­mod­php5 php5
php5­common
0 upgraded, 4 newly installed, 1 to remove and 287 not upgraded.
Need to get 3088kB of archives.
After this operation, 6443kB of additional disk space will be
used.
Do you want to continue [Y/n]? Y
Get:1 http://id.archive.ubuntu.com hardy­updates/main apache2­
mpm­prefork 2.2.8­1ubuntu0.3 [230kB]
Get:2 http://id.archive.ubuntu.com hardy­updates/main php5­
common 5.2.4­2ubuntu5.3 [314kB]
Get:3 http://id.archive.ubuntu.com hardy­updates/main
libapache2­mod­php5 5.2.4­2ubuntu5.3 [2543kB]
Get:4 http://id.archive.ubuntu.com hardy­updates/main php5
5.2.4­2ubuntu5.3 [1078B]
Fetched 3088kB in 2min36s (19.7kB/s)
dpkg: apache2­mpm­worker: dependency problems, but removing
anyway as you request:
apache2 depends on apache2­mpm­worker (>= 2.2.8­1ubuntu0.3) |
apache2­mpm­prefork (>= 2.2.8­1ubuntu0.3) | apache2­mpm­event
(>= 2.2.8­1ubuntu0.3); however:
Package apache2­mpm­worker is to be removed.
Package apache2­mpm­prefork is not installed.
Package apache2­mpm­event is not installed.
(Reading database ... 108469 files and directories currently
installed.)
Removing apache2­mpm­worker ...
* Stopping web server apache2 apache2:
Could not reliably determine the server's fully qualified domain
name, using 127.0.1.1 for ServerName
[ OK ]
Selecting previously deselected package apache2­mpm­prefork.
(Reading database ... 108461 files and directories currently
installed.)
Unpacking apache2­mpm­prefork (from .../apache2­mpm­
prefork_2.2.8­1ubuntu0.3_i386.deb) ...
Selecting previously deselected package php5­common.
Unpacking php5­common (from .../php5­
common_5.2.4­2ubuntu5.3_i386.deb) ...
Selecting previously deselected package libapache2­mod­php5.
Unpacking libapache2­mod­php5 (from .../libapache2­mod­
php5_5.2.4­2ubuntu5.3_i386.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../php5_5.2.4­2ubuntu5.3_all.deb) ...
Setting up apache2­mpm­prefork (2.2.8­1ubuntu0.3) ...
* Starting web server apache2 apache2:
Could not reliably determine the server's fully qualified domain
name, using 127.0.1.1 for ServerName
[ OK ]
Setting up php5­common (5.2.4­2ubuntu5.3) ...
Setting up libapache2­mod­php5 (5.2.4­2ubuntu5.3) ...
Creating config file /etc/php5/apache2/php.ini with new version
* Reloading web server config apache2 apache2:
Could not reliably determine the server's fully qualified domain
name, using 127.0.1.1 for ServerName
[ OK ]
Setting up php5 (5.2.4­2ubuntu5.3) ...
6. Install mysql-server
root@freeclass:~# apt­get install mysql­server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no
longer required:
lsb­languages debhelper intltool­debian
lsb­graphics lsb­desktop m4 po­debconf
ncurses­term libqt4­core libqt4­gui lsb pax
lsb­multimedia libtimedate­perl dpkg­dev
lsb­printing html2text patch lsb­core alien
lsb­cxx
Use 'apt­get autoremove' to remove them.
The following extra packages will be installed:
libdbd­mysql­perl libdbi­perl
libmysqlclient15off libnet­daemon­perl
libplrpc­perl mysql­client­5.0 mysql­common
mysql­server­5.0
Suggested packages:
dbishell libcompress­zlib­perl mysql­doc­5.0
tinyca
Recommended packages:
libhtml­template­perl
The following NEW packages will be installed:
libdbd­mysql­perl libdbi­perl
libmysqlclient15off libnet­daemon­perl
libplrpc­perl mysql­client­5.0 mysql­common
mysql­server mysql­server­5.0
0 upgraded, 9 newly installed, 0 to remove and 287 not upgraded.
Need to get 38.2MB of archives.
After this operation, 112MB of additional disk space will be
used.
Do you want to continue [Y/n]? Y
Get:1 http://id.archive.ubuntu.com hardy­updates/main mysql­
common 5.0.51a­3ubuntu5.4 [60.3kB]
Get:2 http://id.archive.ubuntu.com hardy/main libnet­daemon­perl
0.38­1.1 [45.9kB]
Get:3 http://id.archive.ubuntu.com hardy/main libplrpc­perl
0.2017­1.1 [35.0kB]
Get:4 http://id.archive.ubuntu.com hardy/main libdbi­perl
1.601­1 [771kB]
Get:5 http://id.archive.ubuntu.com hardy­updates/main
libmysqlclient15off 5.0.51a­3ubuntu5.4 [1837kB]
Err http://id.archive.ubuntu.com hardy­updates/main
libmysqlclient15off 5.0.51a­3ubuntu5.4
Connection failed [IP: 91.189.88.45 80]
Get:6 http://id.archive.ubuntu.com hardy/main libdbd­mysql­perl
4.005­1 [134kB]
Get:7 http://security.ubuntu.com hardy­security/main
libmysqlclient15off 5.0.51a­3ubuntu5.4 [1837kB]
Err http://security.ubuntu.com hardy­security/main
libmysqlclient15off 5.0.51a­3ubuntu5.4
Connection failed
Err http://id.archive.ubuntu.com hardy/main libdbd­mysql­perl
4.005­1
Connection failed [IP: 91.189.88.31 80]
Get:8 http://id.archive.ubuntu.com hardy­updates/main mysql­
client­5.0 5.0.51a­3ubuntu5.4 [7826kB]
Get:9 http://id.archive.ubuntu.com hardy­updates/main mysql­
client­5.0 5.0.51a­3ubuntu5.4 [7826kB]
Get:10 http://id.archive.ubuntu.com hardy­updates/main mysql­
client­5.0 5.0.51a­3ubuntu5.4 [7826kB]
Get:11 http://id.archive.ubuntu.com hardy­updates/main mysql­
client­5.0 5.0.51a­3ubuntu5.4 [7826kB]
Err http://id.archive.ubuntu.com hardy­updates/main mysql­
client­5.0 5.0.51a­3ubuntu5.4
Connection failed [IP: 91.189.88.46 80]
Get:12 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:13 http://security.ubuntu.com hardy­security/main mysql­
client­5.0 5.0.51a­3ubuntu5.4 [7826kB]
Get:14 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:15 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
38% [15 mysql­server­5.0 5873819/27.4MB 21%]
root@freeclass:~# apt­get install mysql­server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no
longer required:
lsb­languages debhelper intltool­debian
lsb­graphics lsb­desktop m4 po­debconf
ncurses­term libqt4­core libqt4­gui lsb pax
lsb­multimedia libtimedate­perl dpkg­dev
lsb­printing html2text patch lsb­core alien
lsb­cxx
Use 'apt­get autoremove' to remove them.
The following extra packages will be installed:
libdbd­mysql­perl libdbi­perl
libmysqlclient15off libnet­daemon­perl
libplrpc­perl mysql­client­5.0 mysql­common
mysql­server­5.0
Suggested packages:
dbishell libcompress­zlib­perl mysql­doc­5.0
tinyca
Recommended packages:
libhtml­template­perl
The following NEW packages will be installed:
libdbd­mysql­perl libdbi­perl
libmysqlclient15off libnet­daemon­perl
libplrpc­perl mysql­client­5.0 mysql­common
mysql­server mysql­server­5.0
0 upgraded, 9 newly installed, 0 to remove and 287 not upgraded.
Need to get 29.5MB/38.2MB of archives.
After this operation, 112MB of additional disk space will be
used.
Do you want to continue [Y/n]?
Get:1 http://id.archive.ubuntu.com hardy­updates/main
libmysqlclient15off 5.0.51a­3ubuntu5.4 [1837kB]
Get:2 http://id.archive.ubuntu.com hardy/main libdbd­mysql­perl
4.005­1 [134kB]
Get:3 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:4 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:5 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:6 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:7 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:8 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:9 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:10 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:11 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:12 http://id.archive.ubuntu.com hardy­updates/main mysql­
server­5.0 5.0.51a­3ubuntu5.4 [27.4MB]
Get:13 http://id.archive.ubuntu.com hardy­updates/main mysql­
server 5.0.51a­3ubuntu5.4 [54.2kB]
Fetched 2804kB in 30min30s (1532B/s)
Preconfiguring packages ...
Selecting previously deselected package mysql­common.
(Reading database ... 108515 files and directories currently
installed.)
Unpacking mysql­common (from .../mysql­
common_5.0.51a­3ubuntu5.4_all.deb) ...
Selecting previously deselected package libnet­daemon­perl.
Unpacking libnet­daemon­perl (from .../libnet­daemon­
perl_0.38­1.1_all.deb) ...
Selecting previously deselected package libplrpc­perl.
Unpacking libplrpc­perl (from .../libplrpc­
perl_0.2017­1.1_all.deb) ...
Selecting previously deselected package libdbi­perl.
Unpacking libdbi­perl (from .../libdbi­
perl_1.601­1_i386.deb) ...
Selecting previously deselected package libmysqlclient15off.
Unpacking libmysqlclient15off (from
.../libmysqlclient15off_5.0.51a­3ubuntu5.4_i386.deb) ...
Selecting previously deselected package libdbd­mysql­perl.
Unpacking libdbd­mysql­perl (from .../libdbd­mysql­
perl_4.005­1_i386.deb) ...
Selecting previously deselected package mysql­client­5.0.
Unpacking mysql­client­5.0 (from .../mysql­
client­5.0_5.0.51a­3ubuntu5.4_i386.deb) ...
Setting up mysql­common (5.0.51a­3ubuntu5.4) ...
Selecting previously deselected package mysql­server­5.0.
(Reading database ... 108777 files and directories currently
installed.)
Unpacking mysql­server­5.0 (from .../mysql­
server­5.0_5.0.51a­3ubuntu5.4_i386.deb) ...
Selecting previously deselected package mysql­server.
Unpacking mysql­server (from .../mysql­
server_5.0.51a­3ubuntu5.4_all.deb) ...
Setting up libnet­daemon­perl (0.38­1.1) ...
Setting up libplrpc­perl (0.2017­1.1) ...
Setting up libdbi­perl (1.601­1) ...
Setting up libmysqlclient15off (5.0.51a­3ubuntu5.4) ...
Setting up libdbd­mysql­perl (4.005­1) ...
Setting up mysql­client­5.0 (5.0.51a­3ubuntu5.4) ...
Setting up mysql­server­5.0 (5.0.51a­3ubuntu5.4) ...
* Stopping MySQL database server mysqld [ OK ]
Reloading AppArmor profiles : done.
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing
tables.
Setting up mysql­server (5.0.51a­3ubuntu5.4) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Pada waktu ada permintaan mengisi password isikan : root kemudian password
ke dua : root
selseai:
Selamat mencoba....

No comments: