Daca la comanda obisnuita
rm -rf ./*
ne da ceva de genu:
bash: /bin/rm: Argument list too long
ii dam asa:
rm -rf sess_a*
sau oricare denimire de fisier de la inceput urmand de steluta, sa le stergem pe portiuni.
Eu am patito cand s-a umplut directorul cu sesiunile /var/lib/php/session iar altfel nu mi-a mers.
iar daca nici asta nu mai merge, incercam asa:
for i in ./sess_*; do rm -rf $i; done
Am mai gasit o varianta pe un site:
# 1. Gracefully turn off Apache so no incoming request come during these changes.
apachectl -k graceful-stop
# 2. Rename the current PHP session directory
mv /var/lib/php/session /var/lib/php/session.old
# 3. Recreate PHP session directory and set permissions
mkdir /var/lib/php/session
chmod 1777 /var/lib/php/session
# 4. Delete old session files (optional)*
mkdir /var/lib/php/empty
rsync -a --delete /var/lib/php/empty/ /var/lib/php/session.old/
Sursa: http://johnveldboom.com/posts/53/php-sessionstart-failed-no-space-left-on-device-plesk-plesk-php-cleanuper