Dernier message de la page précédente :
ok je passe au suivant
création de site wordpress local interdit avec l'appli localwp
Re: création de site wordpress local interdit avec l'appli localwp
amicalement
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
Re: création de site wordpress local interdit avec l'appli localwp
Code : Tout sélectionner
sudo nginx -t
[sudo] Mot de passe de user :
nginx: [emerg] unknown directive "/etc/nginx/sites-available/site1.conf" in /etc/nginx/sites-enabled/ecole-tcheu.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failedamicalement
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
- cyrille
- Administrateur du site
- Messages : 13037
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: création de site wordpress local interdit avec l'appli localwp
Que te retourne
et
Code : Tout sélectionner
ls /etc/nginx/sites-available/Code : Tout sélectionner
ls -l /var/www/html/Re: création de site wordpress local interdit avec l'appli localwp
Code : Tout sélectionner
ls /etc/nginx/sites-available/
ecole-tcheu.conf
amicalement
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
Re: création de site wordpress local interdit avec l'appli localwp
Code : Tout sélectionner
ls -l /var/www/html/
total 8
drwxrwxr-x 2 www-data www-data 4096 janv. 11 09:02 ecole-tcheu
-rw-r--r-- 1 root root 612 janv. 10 11:31 index.nginx-debian.html
amicalement
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
- cyrille
- Administrateur du site
- Messages : 13037
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: création de site wordpress local interdit avec l'appli localwp
ça si tu changes les noms il faut adapter le contenu....
Te donne quoi ?
Code : Tout sélectionner
cat /etc/nginx/sites-available/ecole-tcheu.confRe: création de site wordpress local interdit avec l'appli localwp
Code : Tout sélectionner
cat /etc/nginx/sites-available/ecole-tcheu.conf
/etc/nginx/sites-available/site1.conf
server {
listen 80;
root /var/www/html/site1;
index index.php index.html index.htm;
server_name site1.local;
error_log /var/log/nginx/site1.local_error.log;
access_log /var/log/nginx/site1.local_access.log;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}amicalement
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
- cyrille
- Administrateur du site
- Messages : 13037
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: création de site wordpress local interdit avec l'appli localwp
Code : Tout sélectionner
root /var/www/html/site1;Code : Tout sélectionner
error_log /var/log/nginx/site1.local_error.log;
access_log /var/log/nginx/site1.local_access.log;- cyrille
- Administrateur du site
- Messages : 13037
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: création de site wordpress local interdit avec l'appli localwp
Et faut dégager la ligne avant la directive server, c'est à dire la première
Code : Tout sélectionner
/etc/nginx/sites-available/site1.conf- cyrille
- Administrateur du site
- Messages : 13037
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: création de site wordpress local interdit avec l'appli localwp
Un truc du style,
Au taf, pas trop le temps...
Au taf, pas trop le temps...
Code : Tout sélectionner
server {
listen 80;
root /var/www/html/ecole-tcheu;
index index.php index.html index.htm;
server_name ecole-tcheu.local;
error_log /var/log/nginx/ecole-tcheu.local_error.log;
access_log /var/log/nginx/ecole-tcheu.local_access.log;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}Re: création de site wordpress local interdit avec l'appli localwp
Code : Tout sélectionner
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
amicalement
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)
APPRENDRE LINUX POUR MIEUX PARTAGER
matériel : "Terra" All in One
Systeme d'exploitation : Linux Mint 22 Wilma - xfce
Processeur : Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Mémoire : 32 Gb
OpenGL Renderer : lMesa Intel(R) HD Graphics 630 (KBL GT2)