質問編集履歴
4
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,4 +32,9 @@
|
|
32
32
|
**エラー表示をOnにしたら・・・**
|
33
33
|
```ここに言語を入力
|
34
34
|
Warning: file_put_contents(/var/www/html/text/new.txt): failed to open stream: Permission denied in /var/www/html/index.php on line 3
|
35
|
-
```
|
35
|
+
```
|
36
|
+
|
37
|
+
|
38
|
+
### 追記
|
39
|
+
おそらく同じ現象の[質問](https://teratail.com/questions/13261)を見つけました。
|
40
|
+
セキュリティーの観点からSELinuxは有効にしたいので、質問の回答にあった `setsebool -P httpd_unified=on` にしたいのですが、これはどこで設定すればよいのですか?
|
3
訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
```php
|
6
6
|
//index.php
|
7
7
|
<?php
|
8
|
+
ini_set('display_errors', "On");
|
8
9
|
$success = file_put_contents('text/new.txt', 'ファイルの書き込みテスト');
|
9
10
|
if($success){
|
10
11
|
print("書き込みが成功しました");
|
2
訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,5 +30,5 @@
|
|
30
30
|
|
31
31
|
**エラー表示をOnにしたら・・・**
|
32
32
|
```ここに言語を入力
|
33
|
-
Warning: file_put_contents(/var/www/html/text/new.txt): failed to open stream: Permission denied in /var/www/html/index.php on line
|
33
|
+
Warning: file_put_contents(/var/www/html/text/new.txt): failed to open stream: Permission denied in /var/www/html/index.php on line 3
|
34
34
|
```
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,4 +24,11 @@
|
|
24
24
|
```
|
25
25
|
|
26
26
|
プログラムとファイル構造です。
|
27
|
-
参考になる記事、方法を教えてください。
|
27
|
+
参考になる記事、方法を教えてください。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
**エラー表示をOnにしたら・・・**
|
32
|
+
```ここに言語を入力
|
33
|
+
Warning: file_put_contents(/var/www/html/text/new.txt): failed to open stream: Permission denied in /var/www/html/index.php on line 23
|
34
|
+
```
|