1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu26.04に上げると/home以下にphpから書き込みが出来なくなるのを解決

1
Posted at

Read-only file system

というエラーが出るようになったため確認。

/homeも書き込めるようにする設定方法

/etc/systemd/system/apache2.service.d/override.conf
に以下記述
(もしくは sudo systemctl edit apache2 で編集画面を開く)

[Service]
ProtectHome=false
MemoryDenyWriteExecute=false
ReadWritePaths=/home/www/data/

apache再起動

sudo systemctl daemon-reload
sudo systemctl restart apache2
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?