Apache

= log files = alias msudo='echo mypass | sudo -S ' msudo ls /var/log/httpd/ -l sudo ls /var/log/httpd/ -l echo 1 | sudo tee /var/log/httpd/access_log echo 1 | sudo tee /var/log/httpd/error_log sudo ls /var/log/httpd/ -l

= run maintenance = cat > run_maintain_server.sh echo mypass | sudo -S ls echo 1  |  sudo  tee  /var/log/httpd/access_log echo 1 |  sudo  tee  /proc/sys/vm/drop_caches
 * 1) sudo ls /var/log/httpd/ -l

watch -n100 sh run_maintain_server.sh

= Apache - symbolic link = ln -s  /srv/psy02/data02/psychiatry   /var/www/html/psychiatry

ls -Z /srv/ sudo chcon -v --type=httpd_sys_content_t /srv/psy02/data02/psychiatry/ sudo chcon -Rv --type=httpd_sys_content_t /srv

sudo /sbin/service   httpd  restart