After performing the operation to delete the image and receive a successful message, but when logging into ftp the image file remains and has not disappeared after performing the deletion using the admin account
Check logs id it's giving any errors when it executes cron.php it could be that it's saying permission denied since chmod must be 666 or 777.Tôi đã thực hiện lệnh cron vào máy chủ của tôi
* * * * * IS_CRON = 1 / usr / bin / php /var/www/html/chevereto.loc/public_html/cron.php
Các bác sĩ cho biết thêm: but still can not fix.
did you even check logs for any error about cron.php ?? Since i don't think you even did that. Always check logs for any error then if it says premissions denied on cron.php then it is the chmod thing you must do to give right premissions.I did it your way, but still can't
Where can I view logs errors ?did you even check logs for any error about cron.php ?? Since i don't think you even did that. Always check logs for any error then if it says premissions denied on cron.php then it is the chmod thing you must do to give right premissions.
My server uses centos 7 operating system I'm cron it with the command: crontab -e and save it again with the command : * * * * * IS_CRON =1 /usr/bin/php /home/cddos.net/anhsieuviet.com/cron.php >/dev/null 2>&1What is the server? Shared? VPS? other? Operating system? how are you executing the cron?
IS_CRON=1 /usr/bin/php /home/cddos.net/anhsieuviet.com/cron.phpOK this may sound silly but I assume the command looks like this,
* * * * * IS_CRON = 1 /usr/bin/php /var/www/html/chevereto.loc/public_html/cron.php
and not with the extra spaces,
/ usr / bin / php
Also what happens if you run it from a terminal?
Also try this from a terminal
IS_CRON=1 /usr/bin/php /var/www/html/chevereto.loc/public_html/cron.php >/dev/null 2>&1 >> /var/www/html/chevereto.loc/public_html/cron.log 2>&1
This will write a log to /public_html/ called cron.log
Mine looks like this
PHP 7.1.33 (cli) (built: Nov 22 2019 11:40:51) ( NTS )Run 'php -v' in terminal