Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- peer review (3)
- PHP, dump varailbes in a format way
- "Unusual traffic from your computer network" from blogger
- Install APXS in Redhat Linux
- JavaScript, remove trailing insignificant zeros after toFixed function
- Update member directory
- Set Windows path command line
- JavaScript: add days to current date
- DataTable table order by numeric, not by text
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment