Thursday, June 12, 2014

PHP mail.log directory permission




Redhat
In php.ini, set
mail.log = /var/log/mail/mail.log

create directory   /var/log/mail/
sudo mkdir   /var/log/mail/
touch  /var/log/mail/mail.log

change mail folder owner to apache
  sudo chown -R apache /var/log/mail
 sudo chmod 755 /var/log/mail/mail.log

httpd log
sudo vi  /var/log/httpd/error_log
 sudo vi  /var/log/httpd/access_log

No comments:

Post a Comment