F
F
Fyodor2020-08-29 17:24:56
Plesk
Fyodor, 2020-08-29 17:24:56

How to fix cron error - chmod: cannot access '/var/lib/php/sesi\303\263n': No such file or directory?

CentOS Linux 7.8.2003
Plesk chmod: can

not
access '/var/lib/php/sesi\303\263n': No such file or directory

- but there is none because for some reason the wrong directory is taken - /var /lib/php/sesión - apparently in Spanish (plesk used to be in Spanish and the VPS server at the Spanish hoster)

checked session.save_path in php.ini in all - normal everywhere)
/etc/cron.hourly/plesk-php-cleanuper - everything is well written here

[ -x /usr/lib64/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && /usr/lib64/plesk-9.0/php_session_cleaner /var/lib/php/session $(/usr/lib64/plesk-9.0/maxlifetime)


In /var/log/cron it looks like this - i.e. the first command is ok, why the second one takes a different path and from where - it is not clear.

Aug 29 15:45:02 siberiasalon CROND[16853]: (root) CMD (chown root:root /var/lib/php/session)
Aug 29 15:45:02 siberiasalon CROND[16854]: (root) CMD (chmod 1733 /var/lib/php/sesi\303\263n)

I didn't find a solution on the Internet, the hoster answers - you don't have paid support) plesk says - with your key, go to where you bought it.

How to decide?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question