Sunday, March 18, 2012

How to install apache2, php, mysql ON ubuntu 10.10

root@whoami:~# apt-get install apache2
Reading package lists... Done
Building dependency tree      
Reading state information... Done
apache2 is already the newest version.
apache2 set to manually installed.
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


root@whoami:~# apt-get install php5 libapache2-mod-php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi php-pear php-auth

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-mpm-prefork libc-client2007e libmysqlclient16 mlock mysql-common
Suggested packages:
  uw-mailutils php-log php-soap php5-dev php5-suhosin
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5 libc-client2007e libmysqlclient16
  mlock mysql-common php-auth php-pear php5 php5-cgi php5-cli php5-common
  php5-gd php5-imap php5-mysql
0 upgraded, 15 newly installed, 1 to remove and 0 not upgraded.
Need to get 15,5MB of archives.
After this operation, 41,7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main apache2-mpm-prefork i386 2.2.16-1ubuntu3.5 [2.378B]
Get:2 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-common i386 5.3.3-1ubuntu9.10 [561kB]
Get:3 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main libapache2-mod-php5 i386 5.3.3-1ubuntu9.10 [2.946kB]
Get:4 http://id.archive.ubuntu.com/ubuntu/ maverick/universe mlock i386 8:2007e~dfsg-3.1ubuntu1 [34,3kB]
Get:5 http://id.archive.ubuntu.com/ubuntu/ maverick/universe libc-client2007e i386 8:2007e~dfsg-3.1ubuntu1 [721kB]
Get:6 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-common all 5.1.61-0ubuntu0.10.10.1 [65,0kB]
Get:7 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main libmysqlclient16 i386 5.1.61-0ubuntu0.10.10.1 [1.875kB]
Get:8 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cli i386 5.3.3-1ubuntu9.10 [2.924kB]
Get:9 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main php-pear all 5.3.3-1ubuntu9.10 [357kB]
Get:10 http://id.archive.ubuntu.com/ubuntu/ maverick/universe php-auth all 1.6.2-1ubuntu1 [74,9kB]
Get:11 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cgi i386 5.3.3-1ubuntu9.10 [5.838kB]
Get:12 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main php5 all 5.3.3-1ubuntu9.10 [1.122B]
Get:13 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-gd i386 5.3.3-1ubuntu9.10 [34,1kB]
Get:14 http://id.archive.ubuntu.com/ubuntu/ maverick/universe php5-imap i386 5.3.3-0ubuntu1 [39,0kB]
Get:15 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main php5-mysql i386 5.3.3-1ubuntu9.10 [65,7kB]
Fetched 15,5MB in 1min 18s (197kB/s)                                           
dpkg: apache2-mpm-worker: ada masalah ketergantungan, namun tetap membuangnya sesuai permintaan: 
 apache2 bergantung pada apache2-mpm-worker (= 2.2.16-1ubuntu3.5) | apache2-mpm-prefork (= 2.2.16-1ubuntu3.5) | apache2-mpm-event (= 2.2.16-1ubuntu3.5) | apache2-mpm-itk (= 2.2.16-1ubuntu3.5); tetapi:
  Package apache2-mpm-worker is to be removed.
  Package apache2-mpm-prefork is not installed.
  Package apache2-mpm-event is not installed.
  Package apache2-mpm-itk is not installed.
(Sedang membaca basis data ...196835 berkas dan direktori telah terpasang.)
Sedang membuang apache2-mpm-worker ... 
 * Stopping web server apache2                                                   ... waiting                                                             [ OK ]
Memilih paket apache2-mpm-prefork yang sebelumnya tidak dipilih. 
(Sedang membaca basis data ...196831 berkas dan direktori telah terpasang.)
Sedang membuka paket apache2-mpm-prefork (dari .../apache2-mpm-prefork_2.2.16-1ubuntu3.5_i386.deb) ... 
Sedang menyetel apache2-mpm-prefork (2.2.16-1ubuntu3.5) ... 
 * Starting web server apache2                                           [ OK ] 
Memilih paket php5-common yang sebelumnya tidak dipilih. 
(Sedang membaca basis data ...196836 berkas dan direktori telah terpasang.)
Sedang membuka paket php5-common (dari .../php5-common_5.3.3-1ubuntu9.10_i386.deb) ... 
Memilih paket libapache2-mod-php5 yang sebelumnya tidak dipilih. 
Sedang membuka paket libapache2-mod-php5 (dari .../libapache2-mod-php5_5.3.3-1ubuntu9.10_i386.deb) ... 
Memilih paket mlock yang sebelumnya tidak dipilih. 
Sedang membuka paket mlock (dari .../mlock_8%3a2007e~dfsg-3.1ubuntu1_i386.deb) ... 
Memilih paket libc-client2007e yang sebelumnya tidak dipilih. 
Sedang membuka paket libc-client2007e (dari .../libc-client2007e_8%3a2007e~dfsg-3.1ubuntu1_i386.deb) ... 
Memilih paket mysql-common yang sebelumnya tidak dipilih. 
Sedang membuka paket mysql-common (dari .../mysql-common_5.1.61-0ubuntu0.10.10.1_all.deb) ... 
Memilih paket libmysqlclient16 yang sebelumnya tidak dipilih. 
Sedang membuka paket libmysqlclient16 (dari .../libmysqlclient16_5.1.61-0ubuntu0.10.10.1_i386.deb) ... 
Memilih paket php5-cli yang sebelumnya tidak dipilih. 
Sedang membuka paket php5-cli (dari .../php5-cli_5.3.3-1ubuntu9.10_i386.deb) ... 
Memilih paket php-pear yang sebelumnya tidak dipilih. 
Sedang membuka paket php-pear (dari .../php-pear_5.3.3-1ubuntu9.10_all.deb) ... 
Memilih paket php-auth yang sebelumnya tidak dipilih. 
Sedang membuka paket php-auth (dari .../php-auth_1.6.2-1ubuntu1_all.deb) ... 
Memilih paket php5-cgi yang sebelumnya tidak dipilih. 
Sedang membuka paket php5-cgi (dari .../php5-cgi_5.3.3-1ubuntu9.10_i386.deb) ... 
Memilih paket php5 yang sebelumnya tidak dipilih. 
Sedang membuka paket php5 (dari .../php5_5.3.3-1ubuntu9.10_all.deb) ... 
Memilih paket php5-gd yang sebelumnya tidak dipilih. 
Sedang membuka paket php5-gd (dari .../php5-gd_5.3.3-1ubuntu9.10_i386.deb) ... 
Memilih paket php5-imap yang sebelumnya tidak dipilih. 
Sedang membuka paket php5-imap (dari .../php5-imap_5.3.3-0ubuntu1_i386.deb) ... 
Memilih paket php5-mysql yang sebelumnya tidak dipilih. 
Sedang membuka paket php5-mysql (dari .../php5-mysql_5.3.3-1ubuntu9.10_i386.deb) ... 
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Sedang menyetel php5-common (5.3.3-1ubuntu9.10) ... 
Sedang menyetel libapache2-mod-php5 (5.3.3-1ubuntu9.10) ... 

Creating config file /etc/php5/apache2/php.ini with new version
 * Reloading web server config apache2                                   [ OK ] 
Sedang menyetel mlock (8:2007e~dfsg-3.1ubuntu1) ... 
Sedang menyetel libc-client2007e (8:2007e~dfsg-3.1ubuntu1) ... 
Sedang menyetel mysql-common (5.1.61-0ubuntu0.10.10.1) ... 
Sedang menyetel libmysqlclient16 (5.1.61-0ubuntu0.10.10.1) ... 
Sedang menyetel php5-cli (5.3.3-1ubuntu9.10) ... 

Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
Sedang menyetel php-pear (5.3.3-1ubuntu9.10) ... 
Sedang menyetel php-auth (1.6.2-1ubuntu1) ... 
Sedang menyetel php5-cgi (5.3.3-1ubuntu9.10) ... 

Creating config file /etc/php5/cgi/php.ini with new version
update-alternatives: using /usr/bin/php5-cgi to provide /usr/bin/php-cgi (php-cgi) in auto mode.
update-alternatives: using /usr/lib/cgi-bin/php5 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode.
Sedang menyetel php5 (5.3.3-1ubuntu9.10) ... 
Sedang menyetel php5-gd (5.3.3-1ubuntu9.10) ... 
Sedang menyetel php5-imap (5.3.3-0ubuntu1) ... 
Sedang menyetel php5-mysql (5.3.3-1ubuntu9.10) ... 
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


root@whoami:~# apt-get install mysql-server mysql-client

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libdbd-mysql-perl libhtml-template-perl mysql-client-5.1
  mysql-client-core-5.1 mysql-server-5.1 mysql-server-core-5.1
Suggested packages:
  libipc-sharedcache-perl tinyca mailx
The following NEW packages will be installed:
  libdbd-mysql-perl libhtml-template-perl mysql-client mysql-client-5.1
  mysql-client-core-5.1 mysql-server mysql-server-5.1 mysql-server-core-5.1
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 20,1MB of archives.
After this operation, 47,6MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com/ubuntu/ maverick/main libdbd-mysql-perl i386 4.016-1 [138kB]
Get:2 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-client-core-5.1 i386 5.1.61-0ubuntu0.10.10.1 [144kB]
Get:3 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-client-5.1 i386 5.1.61-0ubuntu0.10.10.1 [8.020kB]
Get:4 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-server-core-5.1 i386 5.1.61-0ubuntu0.10.10.1 [4.660kB]
Get:5 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-server-5.1 i386 5.1.61-0ubuntu0.10.10.1 [6.951kB]
Get:6 http://id.archive.ubuntu.com/ubuntu/ maverick/main libhtml-template-perl all 2.9-1 [65,8kB]
Get:7 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-client all 5.1.61-0ubuntu0.10.10.1 [61,0kB]
Get:8 http://id.archive.ubuntu.com/ubuntu/ maverick-updates/main mysql-server all 5.1.61-0ubuntu0.10.10.1 [61,1kB]
Fetched 20,1MB in 1min 40s (201kB/s)                                           
Prakonfigurasi paket ... 
Memilih paket libdbd-mysql-perl yang sebelumnya tidak dipilih. 
(Sedang membaca basis data ...197210 berkas dan direktori telah terpasang.)
Sedang membuka paket libdbd-mysql-perl (dari .../libdbd-mysql-perl_4.016-1_i386.deb) ... 
Memilih paket mysql-client-core-5.1 yang sebelumnya tidak dipilih. 
Sedang membuka paket mysql-client-core-5.1 (dari .../mysql-client-core-5.1_5.1.61-0ubuntu0.10.10.1_i386.deb) ... 
Memilih paket mysql-client-5.1 yang sebelumnya tidak dipilih. 
Sedang membuka paket mysql-client-5.1 (dari .../mysql-client-5.1_5.1.61-0ubuntu0.10.10.1_i386.deb) ... 
Memilih paket mysql-server-core-5.1 yang sebelumnya tidak dipilih. 
Sedang membuka paket mysql-server-core-5.1 (dari .../mysql-server-core-5.1_5.1.61-0ubuntu0.10.10.1_i386.deb) ... 
Memilih paket mysql-server-5.1 yang sebelumnya tidak dipilih. 
Sedang membuka paket mysql-server-5.1 (dari .../mysql-server-5.1_5.1.61-0ubuntu0.10.10.1_i386.deb) ... 
Memilih paket libhtml-template-perl yang sebelumnya tidak dipilih. 
Sedang membuka paket libhtml-template-perl (dari .../libhtml-template-perl_2.9-1_all.deb) ... 
Memilih paket mysql-client yang sebelumnya tidak dipilih. 
Sedang membuka paket mysql-client (dari .../mysql-client_5.1.61-0ubuntu0.10.10.1_all.deb) ... 
Memilih paket mysql-server yang sebelumnya tidak dipilih. 
Sedang membuka paket mysql-server (dari .../mysql-server_5.1.61-0ubuntu0.10.10.1_all.deb) ... 
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Sedang menyetel libdbd-mysql-perl (4.016-1) ... 
Sedang menyetel mysql-client-core-5.1 (5.1.61-0ubuntu0.10.10.1) ... 
Sedang menyetel mysql-client-5.1 (5.1.61-0ubuntu0.10.10.1) ... 
Sedang menyetel mysql-server-core-5.1 (5.1.61-0ubuntu0.10.10.1) ... 
Sedang menyetel mysql-server-5.1 (5.1.61-0ubuntu0.10.10.1) ... 
mysql start/running, process 15019
Sedang menyetel libhtml-template-perl (2.9-1) ... 
Sedang menyetel mysql-client (5.1.61-0ubuntu0.10.10.1) ... 
Sedang menyetel mysql-server (5.1.61-0ubuntu0.10.10.1) ... 
root@whoami:~# 

root@whoami:~# /etc/init.d/apache2 start
 * Starting web server apache2                                                  httpd (pid 13956) already running





No comments:

Post a Comment