Individuare gli script PHP che inviano SPAM: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Riga 61: Riga 61:
# touch /var/log/mail_php.log
# touch /var/log/mail_php.log
# chmod 770 /var/log/mail_php.log
# chmod 770 /var/log/mail_php.log
</pre>
Ora istruiamo PHP a fare uso del nuovo script:
<pre>
# nano /etc/php5/apache2/php.ini
</pre>
modificando le istruzioni:
<pre>
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
</pre>
in
<pre>
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/local/bin/sendmail-php
</pre>
</pre>

Menu di navigazione