environnement vagabond nginx 404
我想大声告诉你
我想大声告诉你 2017-05-16 17:25:00
0
2
529

Accéder au répertoire racine 404

Journal des erreurs nginx

log2015/03/21 12:26:59 [crit] 2341#0: *54 stat() "/home/vagrant/wwwroot/tt.net/index.php" failed (13: Permission denied)

Le fichier existe

bash[root@vagrant-centos65 conf]# cat /home/vagrant/wwwroot/tt.net/index.php
<?php
require __DIR__ . '/system/bootstrap.php';
...

Autorisation du répertoire 777

bash[root@vagrant-centos65 tt.net]# ls -la
total 48
drwxrwxrwx 1 vagrant vagrant  4096 Mar 21 12:04 .
drwxrwxrwx 1 vagrant vagrant  4096 Mar 21 12:04 ..
drwxrwxrwx 1 vagrant vagrant  4096 Mar 21 12:08 .git
-rwxrwxrwx 1 vagrant vagrant   316 Nov 20 17:15 .gitignore
-rwxrwxrwx 1 vagrant vagrant   169 Oct 31 16:27 .htaccess
drwxrwxrwx 1 vagrant vagrant  4096 Mar 21 12:04 .idea
-rwxrwxrwx 1 vagrant vagrant    49 Nov 20 17:32 index.php

Quel est le problème ?

我想大声告诉你
我想大声告诉你

répondre à tous(2)
仅有的幸福

L'utilisateur de configuration de Nginx est-il vagabond ? Sinon, réglez-le sur vagrant

user vagrant.
刘奇

Utilisez root pour voir

sudo nginx -s stop
sudo nginx
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!