Fix php script as systemd service - php warning: fopen: failed to openstream: Read-only file system
Channel:
Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=moi2odMasVg
In this video i will show you how to fix an systemd service that ran php script inside it.
Error :
PHP Warning: fopen(newfile.txt): failed to open stream: Read-only file system in main.php line 2.
Unable to open file.
Solution:
just give a remark for command:
DynamicUser=yes
Other Videos By Ambar Hasbiyatmoko
Tags:
system
systemd
service
daemon
ubuntu
php
terminal
systemctl
journalctl
linux
error
fopen
file
folder
create
configuration