apache2+PHP5の導入(lenny)

apache2のインストール

# apt-get install apache2
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-common file libapr1 libaprutil1
  libdb4.5 libexpat1 libldap-2.4-2 libmagic1 libpq5 libsqlite3-0 mime-support
  openssl openssl-blacklist python python-minimal python2.5 python2.5-minimal
  ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec apache2-suexec-custom ca-certificates
  python-doc python-tk python-profiler python2.5-doc binfmt-support
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-common file libapr1
  libaprutil1 libdb4.5 libexpat1 libldap-2.4-2 libmagic1 libpq5 libsqlite3-0
  mime-support openssl openssl-blacklist python python-minimal python2.5
  python2.5-minimal ssl-cert
0 upgraded, 21 newly installed, 0 to remove and 28 not upgraded.
Need to get 15.0MB of archives.
After this operation, 41.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y


php5のインストール

# apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5 libxml2 php5-common sgml-base ucf
  xml-core
Suggested packages:
  php-pear sgml-base-doc debhelper
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5 libxml2 php5 php5-common sgml-base
  ucf xml-core
0 upgraded, 8 newly installed, 1 to remove and 28 not upgraded.
Need to get 4005kB of archives.
After this operation, 8659kB of additional disk space will be used.
Do you want to continue [Y/n]? y

apacheとの連携に、libapache2-mod-php5 が必要ですが、これはapache2がインストール済の場合、自動で追加されるようです。

apache2の起動

# /etc/init.d/apache2 start

apache2の停止

# /etc/init.d/apache2 stop

apache2の再起動

# /etc/init.d/apache2 restart

トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-04-25 (月) 20:32:36 (3095d)