Fix php script as systemd service - php warning: fopen: failed to openstream: Read-only file system

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=moi2odMasVg



Duration: 3:47
333 views
0


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


2022-07-13How to fix Codeigniter error (PHP 7.2) - the Encrypt library requires the Mcrypt extension
2022-07-12FileZilla can't connect to EC2 Instance - Disconnected No supported authentication methods available
2022-07-10Membuat user baru di EC2 Instance (OS Ubuntu)
2022-07-02Mengeset 2 IP address dalam 1 instance (AWS EC2)
2022-06-19How to solve vokoscreen issue on ubuntu 22.04 - Audio recording not implemente
2022-06-18How to fix error installing grafana - the public key is not available: NO PUBKEY 8C8C34C524098CB6
2022-06-11Membuat EFS (Elastic File System) Regional/Multi AZ (Availability Zone) di AWS
2022-06-04Memonitor RAM Usage pada Instance EC2 dengan CloudWatch
2022-06-02Cara install Jenkins di instance EC2 AWS
2022-05-31How to fix Codeigniter 3.1.11 session error - Session is missing after redirect page
2022-05-27Fix php script as systemd service - php warning: fopen: failed to openstream: Read-only file system
2022-05-22Cara Install Sonarqube lewat AWS Marketplace
2022-05-08Membuat EFS (Elastic File System) One Zone/Single AZ di AWS
2022-02-27How to install mongodb php driver(php7.2) through composer and connect by Codeigniter in ubuntu18
2022-02-27How to fix composer error upgrade version 2.2 - Command "self-update" is not defined in ubuntu18.04
2022-02-27How to fix mongodb - Error parsing YAML config file: yamp-cpp error at line 32, illegal map value
2022-02-27How to install mongodb 4.4 in Ubuntu 18.04
2022-02-12Cara Setup Application Load Balancer di AWS
2022-01-30How to fix mysql - mysql server depends on mysql community server 5.7 when installing on Ubuntu 20.4
2022-01-30How to install mysql 5.7 in Ubuntu 20.04.3 LTS
2022-01-04How to fix: pecl install mongodb - ERROR: phpize not found, phpize failed



Tags:
system
systemd
service
daemon
ubuntu
php
terminal
systemctl
journalctl
linux
error
fopen
file
folder
create
configuration