Question
Can't get memcached daemon to work post update of litespeed server.
service memcached status
● memcached.service - memcached daemon
Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2020-05-16 23:46:47 UTC; 3s ago
Docs: man:memcached(1)
Process: 905 ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached.conf (code=exited, status=0/SUCCESS)
Main PID: 905 (code=exited, status=0/SUCCESS)
May 16 23:42:00 openlitespeed-wordpress-ubuntu systemd[1]: Started memcached daemon.
May 16 23:42:00 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[905]: Could not open the pid file /var/run/memcached/memcached.pid.tmp for writing: Permission denied
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[905]: Signal handled: Terminated.
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd[1]: Stopping memcached daemon...
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd[1]: Stopped memcached daemon.
root@openlitespeed-wordpress-ubuntu:~# service memcached start
root@openlitespeed-wordpress-ubuntu:~# service memcached status
● memcached.service - memcached daemon
Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-05-16 23:47:00 UTC; 3s ago
Docs: man:memcached(1)
Main PID: 1854 (memcached)
Tasks: 10 (limit: 1151)
CGroup: /system.slice/memcached.service
└─1854 /usr/bin/memcached -m 64 -p 11211 -u www-data -l 127.0.0.1 -P /var/run/memcached/memcached.pid -s /var/www/memcached.sock -a 0770 -p /tmp/memcached.pid
May 16 23:47:00 openlitespeed-wordpress-ubuntu systemd[1]: Started memcached daemon.
May 16 23:47:00 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[1854]: Could not open the pid file /var/run/memcached/memcached.pid.tmp for writing: Permission denied
Any idea how to fix it?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×