wordpress:wordpress
Différences
Ci-dessous, les différences entre deux révisions de la page.
wordpress:wordpress [2018/09/05 14:40] – créée ronan | wordpress:wordpress [2019/01/14 14:07] (Version actuelle) – rguyader | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
===== Pour wordpress, a renseigner dans keepass mysql/ | ===== Pour wordpress, a renseigner dans keepass mysql/ | ||
- | | + | <code bash> |
- | export PMYDBUSER=" | + | export PMYDBNAME=" |
- | export PMYDBPW=" | + | export PMYDBUSER=" |
+ | export PMYDBPW=" | ||
+ | </ | ||
===== FQDN du site ===== | ===== FQDN du site ===== | ||
- | | + | <code bash> |
- | export DOMAINWP=" | + | export HOTNAMEWP=" |
- | export FQDNWP=" | + | export DOMAINWP=" |
- | echo "FQDN du serveur : $FQDNWP" | + | export FQDNWP=" |
+ | echo "FQDN du serveur : $FQDNWP" | ||
+ | </ | ||
===== Installation ===== | ===== Installation ===== | ||
- | | + | <code bash> |
- | apt-get install wordpress curl apache2 mysql-server | + | apt-get update |
+ | apt-get install wordpress curl apache2 mysql-server | ||
+ | </ | ||
Nouveau mot de passe du superutilisateur de MySQL : renseigner le mot de passe root mysql (mysql/ | Nouveau mot de passe du superutilisateur de MySQL : renseigner le mot de passe root mysql (mysql/ | ||
Ligne 25: | Ligne 31: | ||
===== Hôte apache2 ===== | ===== Hôte apache2 ===== | ||
- | | + | <code bash> |
+ | cat << ' | ||
| | ||
- | | + | Alias / |
- | Alias /wp / | + | Alias /wp / |
- | < | + | < |
- | Options FollowSymLinks | + | Options FollowSymLinks |
- | AllowOverride Limit Options FileInfo | + | AllowOverride Limit Options FileInfo |
- | DirectoryIndex index.php | + | DirectoryIndex index.php |
- | Order allow, | + | Order allow, |
- | Allow from all | + | Allow from all |
- | </ | + | </ |
- | < | + | < |
- | Options FollowSymLinks | + | Options FollowSymLinks |
- | Order allow, | + | Order allow, |
- | Allow from all | + | Allow from all |
- | </ | + | </ |
| | ||
- | | + | EOF |
- | | + | chmod 644 / |
- | a2ensite wordpress | + | a2ensite wordpress |
- | service apache2 stop | + | service apache2 stop |
- | service apache2 start | + | service apache2 start |
+ | </ | ||
===== Config wordpress ===== | ===== Config wordpress ===== | ||
- | | + | <code bash> |
- | echo " | + | echo "<? |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo "?>" | + | echo " |
- | chmod 644 / | + | echo "?>" |
+ | chmod 644 / | ||
+ | </ | ||
===== Initialisation tables mysql ===== | ===== Initialisation tables mysql ===== | ||
- | | + | <code bash> |
- | echo "GRANT SELECT, | + | echo " |
- | echo "ON $PMYDBNAME.*" | + | echo "GRANT SELECT, |
- | echo "TO $PMYDBUSER@localhost" | + | echo "ON $PMYDBNAME.*" |
- | echo " | + | echo "TO $PMYDBUSER@localhost" |
- | echo "FLUSH PRIVILEGES;" | + | echo " |
- | cat / | + | echo "FLUSH PRIVILEGES;" |
- | rm / | + | cat / |
+ | rm / | ||
+ | </ | ||
===== Installation interne worpress ===== | ===== Installation interne worpress ===== | ||
- | | + | <code bash> |
- | # ===> http:// | + | echo " |
- | # entrer l' | + | # ===> http:// |
- | # aller jusqu' | + | # entrer l' |
+ | # aller jusqu' | ||
- | | + | mv / |
- | chmod 644 / | + | chmod 644 / |
+ | </ | ||
===== Gestion des themes et plugins ===== | ===== Gestion des themes et plugins ===== | ||
- | | + | <code bash> |
- | mkdir / | + | chown -R www-data: |
- | cp -aRL / | + | mkdir / |
- | rm / | + | cp -aRL / |
- | mv / | + | rm / |
- | cp -aRL / | + | mv / |
- | rm / | + | cp -aRL / |
- | mv / | + | rm / |
- | rmdir / | + | mv / |
- | chown -R www-data: | + | rmdir / |
+ | chown -R www-data: | ||
- | | + | mv / |
- | cp -ar / | + | cp -ar / |
- | chown -R www-data: | + | chown -R www-data: |
- | mv / | + | mv / |
+ | </ | ||
===== Hôte apache2 ===== | ===== Hôte apache2 ===== | ||
- | | + | <code bash> |
- | Alias /wp / | + | cat << ' |
- | < | + | Alias /wp / |
- | Options FollowSymLinks | + | < |
- | AllowOverride Limit Options FileInfo | + | Options FollowSymLinks |
- | DirectoryIndex index.php | + | AllowOverride Limit Options FileInfo |
- | Order allow, | + | DirectoryIndex index.php |
- | Allow from all | + | Order allow, |
- | </ | + | Allow from all |
+ | </ | ||
< | < | ||
- | | + | |
- | Order allow, | + | Order allow, |
- | Allow from all | + | Allow from all |
- | </ | + | </ |
- | EOF | + | EOF |
- | chmod 644 / | + | chmod 644 / |
- | service apache2 stop | + | service apache2 stop |
- | service apache2 start | + | service apache2 start |
+ | </ | ||
===== Désactiver tous les plugins wordpress ===== | ===== Désactiver tous les plugins wordpress ===== | ||
- | | + | <code bash> |
- | export DATE=`date +%Y%m%d-%H%M%S` | + | cd /root |
- | wget http:// | + | export DATE=`date +%Y%m%d-%H%M%S` |
- | tar cvzf / | + | wget http:// |
- | tar -zxvf latest.tar.gz -C /var/lib/ wordpress/ | + | tar cvzf / |
- | tar -zxvf latest.tar.gz -C /var/lib/ wordpress/ | + | tar -zxvf latest.tar.gz -C /var/lib/ wordpress/ |
- | tar -zxvf latest.tar.gz -C /var/lib/ wordpress/ | + | tar -zxvf latest.tar.gz -C /var/lib/ wordpress/ |
- | tar --wildcards -zxvf latest.tar.gz -C /var/lib/ ' | + | tar -zxvf latest.tar.gz -C /var/lib/ wordpress/ |
- | rm latest.tar.gz | + | tar --wildcards -zxvf latest.tar.gz -C /var/lib/ ' |
- | chown -R www-data: | + | rm latest.tar.gz |
- | # Ctrl+F5 sur Wordpress, autoriser le rechargement/ | + | chown -R www-data: |
- | # réactiver les plugins | + | </ |
+ | |||
+ | # Ctrl+F5 sur Wordpress, autoriser le rechargement/ | ||
+ | # réactiver les plugins | ||
Aller sur wordpress, mettre à jour (wordpress, plugins, thèmes) | Aller sur wordpress, mettre à jour (wordpress, plugins, thèmes) |
wordpress/wordpress.1536158449.txt.gz · Dernière modification : 2018/09/05 14:40 de ronan