ZyXEL Communications APS 1.0 Administrator's Manual page 48

Auto provisioning
Table of Contents

Advertisement

Auto Provisioning Administrator's Guide
## apache run user
RUN_AS="apache"
5 Modify /etc/rc.d/init.d/httpd, add or edit like the following (CONF value must be same as
$sys_logfile in step 1)
CONF=/var/log/httpd.log
DATE=`date +%Y.%m.%d-%X`
case "$1" in
start)
detect
echo "$DATE ---> httpd is starting" >> $CONF
start
;;
stop)
detect
echo "$DATE ---> httpd is stopping" >> $CONF
stop
;;
restart)
echo "$DATE ---> httpd is stopping" >> $CONF
detect
echo "$DATE ---> httpd is starting" >> $CONF
stop
detect
start
;;
6 Modify /etc/crontab, add the following line:
* * * * * root /var/www/html/PS/SystemMaintenance/Scheduling.sh
7 Change files and directories recursively for fold /var/log/httpd.log with Read and Write
rights
8 Modify apache conf file, add:
DirectoryIndex PS/GetSetting/GetSetting.php
48
Chapter 4 Auto Provisioning Server Installation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents