K
K
Kirill Gorelov2015-10-16 20:11:57
PHP
Kirill Gorelov, 2015-10-16 20:11:57

Script logging. How right?

Hello.
There is a mail server.
Someone sends spam from him.
I want to catch the villain through script logging.
I found an article on the Internet https://romantelychko.com/blog/958/
But there are problems here.
1. There is no php.ini in the folder specified in the instructions. That is, it needs to be created or can it be used which is specified in the apach2 folder (because phpinfo() shows the main php.ini is specified in this folder)? ( prntscr.com/8s0cii /etc/php5/ folder structure)
2. no file /var/log/php.mail.log Is it missing because I don't have the right item or do I need to create it?
Guys, tell me please??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Everal, 2015-10-16
@Everal

if the sending is done using php, then in the execution of the function, you can add logging to a file or to the database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question