元々、debian使いではないのでraspberry pi b+とraspbianでapache2の構築に一苦労
Logの変えたろうと思って一苦労するわ
vi /etc/apache2/apache2.conf
.
ErrorLog ${APACHE_LOG_DIR}/error.log
vi /etc/apache2/envvars
スクリプトの環境変数を変えるみたいやけど、後々面倒な事に成りそうなのでリンクを変える
cd /var/log/apache2
ln -s /www/logs/error.log error.log
ln -s /www/logs/access.log access.log
ln -s /www/logs/other_vhosts_access.log other_vhosts_access.log
ll
lrwxrwxrwx 1 root root 20 11月 16 06:27 access.log -> /www/logs/access.log
lrwxrwxrwx 1 root root 19 11月 16 06:27 error.log -> /www/logs/error.log
lrwxrwxrwx 1 root root 33 11月 16 06:27 other_vhosts_access.log -> /www/logs/other_vhosts_access.log
pepoと