편하게 살자

Linux (Ubuntu) APM express install example

mulderu 2011. 10. 12. 12:13


Linux 서버 배포본을 기본으로 설치 하신경우  APM (Apache, Php, Mysql) 을 빠르게 설치 하는 방법을 찾아서
다시 정리 하였습니다.... 
붉은색 볼드 처리된 부분이 설치 명령어 입니다.

저와 기본 환경이 같다면 거의 한방에 마무리 됩니다.

  • 원본 출처 : http://supaflow.tistory.com/120
    설치 리눅스 배포본 : ubuntu-10.10-server-amd64



----------------------------------  install screen dump -----------------------------------

mulder@ubuntu:~$ uname -a
Linux ubuntu 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 GNU/Linux
mulder@ubuntu:~$ 

mulder@ubuntu:~$ sudo apt-get install apache2
[sudo] password for mulder: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
0 upgraded, 10 newly installed, 0 to remove and 89 not upgraded.
Need to get 3,453kB of archives.
After this operation, 11.4MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
.........................
 
mulder@ubuntu:~$ sudo apt-get install libapache2-mod-auth-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libmysqlclient16 mysql-common
The following NEW packages will be installed:
  libapache2-mod-auth-mysql libmysqlclient16 mysql-common
0 upgraded, 3 newly installed, 0 to remove and 89 not upgraded.
Need to get 2,027kB of archives.
After this operation, 4,706kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
..................................................
 
mulder@ubuntu:~$ sudo apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libnet-daemon-perl libplrpc-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 libdbi-perl libhtml-template-perl libnet-daemon-perl libplrpc-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, 11 newly installed, 0 to remove and 89 not upgraded.
Need to get 22.1MB of archives.
After this operation, 56.1MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
.....................................

mulder@ubuntu:~$ sudo apt-get install php5-common php5 libapache2-mod-php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-prefork php5-cli
Suggested packages:
  php-pear php5-suhosin
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5 php5 php5-cli php5-common
0 upgraded, 5 newly installed, 1 to remove and 89 not upgraded.
Need to get 6,696kB of archives.
After this operation, 17.9MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
....................................

mulder@ubuntu:~$ sudo apt-get install php5-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  php5-mysql
0 upgraded, 1 newly installed, 0 to remove and 89 not upgraded.
Need to get 75.6kB of archives.
After this operation, 299kB of additional disk space will be used.
.....................................

mulder@ubuntu:~$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2
 ... waiting    ...done.

mulder@ubuntu:~$ sudo chown -R mulder /var/www
mulder@ubuntu:~$ echo "<?php print_r(phpinfo()); ?>" > /var/www/phpinfo.php
mulder@ubuntu:~$ 

mulder@ubuntu:~$ pstree
init─┬─apache2───8*[apache2]
     ├─atd
     ├─cron
     ├─dhclient3
     ├─5*[getty]
     ├─login───bash
     ├─mysqld───11*[{mysqld}]
     ├─prltoolsd─┬─prltoolsd
     │           └─3*[{prltoolsd}]
     ├─rsyslogd───2*[{rsyslogd}]
     ├─sshd───sshd───sshd───bash───pstree
     ├─udevd───2*[udevd]
     └─upstart-udev-br
mulder@ubuntu:~$ 


 

이상 완료 되었습니다.

이후에 http://install-server-ip/phpinfo.php 로 접근하셔서 설치된 내용을 확인 해 보세요.