Support for security such as Firewalls and securing linux
- Posts: 2
- Joined: 2019/05/14 22:28:00
Hi, I have a problem:
An ip logger made in php with fopen,fwrite etc... does’t write file ips.log
The php file ad the log file are in the same directory.
The ips.log file has 777 permissions
- Posts: 2829
- Joined: 2014/09/20 11:22:14
Where's it writing to? Have you considered selinux?
- Forum Moderator
- Posts: 26541
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Selinux requires you to log to /var/log/httpd (or set up your own selinux rules to allow it elsewhere).
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke