Difference between revisions of "Phpsessionclean.service (systemd service)"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(34 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
− | < | + | <code>phpsessionclean[[.service]]</code> is a [[Systemd services|systemd service]] in [[Ubuntu]] that executes <code>[[/usr/lib/php/sessionclean]]</code> <code>[[sh]]</code> script to clean [[stale]] [[php sessions]]. It is run every 30 minutes by [[phpsessionclean.timer]]. |
− | + | ||
+ | * <code> [[systemctl cat]] phpsessionclean</code> or <code>cat [[/lib/systemd/system/phpsessionclean.service]]</code> | ||
[Unit] | [Unit] | ||
Description=Clean php session files | Description=Clean php session files | ||
+ | |||
+ | [Service] | ||
+ | [[Type]]=[[oneshot]] | ||
+ | [[ExecStart]]=[[/usr/lib/php/sessionclean]] | ||
+ | [[ProtectHome]]=true | ||
+ | [[ProtectSystem]]=true | ||
+ | [[PrivateTmp]]=true | ||
− | + | To disable service: | |
− | + | * <code>[[systemctl stop]] phpsessionclean.service</code> | |
− | + | * <code>[[systemctl disable]] phpsessionclean.service</code> | |
− | + | * <code>systemctl stop phpsessionclean.timer</code> | |
− | + | * <code>systemctl disable phpsessionclean.timer</code> | |
− | + | ||
− | </ | + | |
+ | == Activities == | ||
+ | * Execute manually <code>[[sessionclean]]</code> shell script to clean your [[PHP]] [[sessions]] | ||
== Related terms == | == Related terms == | ||
− | |||
* <code>[[systemd]]</code>: <code>[[systemctl]]</code> | * <code>[[systemd]]</code>: <code>[[systemctl]]</code> | ||
+ | * <code>[[phpsessionclean.timer]]</code> | ||
== See also == | == See also == | ||
+ | * {{PHP sessions}} | ||
* {{PHP}} | * {{PHP}} | ||
* {{systemctl}} | * {{systemctl}} |
Latest revision as of 19:53, 11 December 2023
phpsessionclean.service
is a systemd service in Ubuntu that executes /usr/lib/php/sessionclean
sh
script to clean stale php sessions. It is run every 30 minutes by phpsessionclean.timer.
systemctl cat phpsessionclean
orcat /lib/systemd/system/phpsessionclean.service
[Unit] Description=Clean php session files [Service] Type=oneshot ExecStart=/usr/lib/php/sessionclean ProtectHome=true ProtectSystem=true PrivateTmp=true
To disable service:
systemctl stop phpsessionclean.service
systemctl disable phpsessionclean.service
systemctl stop phpsessionclean.timer
systemctl disable phpsessionclean.timer
Activities[edit]
- Execute manually
sessionclean
shell script to clean your PHP sessions
Related terms[edit]
See also[edit]
- PHP sessions,
session_start
,php -i | grep session
,/var/lib/php/sessions/
, sessionclean,phpsessionclean.service (systemd service)
- PHP,
php-fpm, www.conf
,php -i
, PHP sessions, symfony,fastcgi_pass
,sessionclean (shell script)
,phpsessionclean.service (systemd service),phpquery
,php.ini
,/var/log/php*
, PECL,php --help
, PHPUnit, Laravel, PHP framework, Composer,phpbrew, Xdebug, php --version
, PHP Fatal error, Hello, World! (php)] - Systemd services:
systemctl
[status | is-active | start | daemon-reload | stop | mask
|reload
|restart
|reboot
|enable
|disable
|cat
],systemctl list-units
,systemctl list-timers
,systemctl --failed
,systemctl get-default
,systemctl --help
,.service, .timer, .socket
,systemctl restart elasticsearch.service
,systemctl status apt-daily
,systemctl status oscapd
Advertising: