以下のrpmがあればOK,なければインストール
apache2-manual-2.2.3-0vl3 apache2-2.2.3-0vl3 mod_ssl-apache2-2.2.3-0vl3
/etc/apache2にconf等のファイルがある。
/var/wwwにアクセスさせるホームページがある。
デフォルトでは~userではアクセスできないので以下のようhttp.confを変更
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
## UserDir disable <==コメントアウト
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
#UserDir public_html
UserDir public_html <==コメントアウトを削除
</IfModule>
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
(以下コメントアウトを削除)
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
起動
/etc/rc.d/init.d/apache2 start
1.xがhttpdで起動してる場合は起動を停止する。
以下のファイルは vine Plusにある
# apt-get install mysql # apt-get install mysql-client
必要に応じ mysql-XXXをインストール
# apt-get install postgresql # apt-get install postgresql-server
いくつかのコマンドは/usr/binにある (createdb等)
環境ファイルは/var/lib/pgsql/dataにある
必要に応じ postgresql-XXXをインストール
# apt-get install php5-apache2 # apt-get install php5-pgsql # apt-get install php5-mysql
php.ini等は/etc/php5のしたにある
設定内容はソースからインストールと同じように行う
注)indexの拡張子の表示順序はhttpd.confでよりphpについてはconf.d/php5.confの以下の部分が優先されるためコメントアウトする
# DirectoryIndex index.php index.phtm