GNU/Linux >> Linux Esercitazione >  >> Linux

Installa WordPress su un account utente come root

Non hai Softaculous sul tuo server e un utente ti chiede di installare WordPress per lui.
Puoi scaricare lo zip di WordPress, decomprimere l'archivio, caricare i file tramite FTP sull'account utente. Dovrai anche accedere a cPanel e creare il database e il nome utente.

Ti mostreremo un modo alternativo per installare WordPress. Installeremo WordPress per l'utente "plothost".

1. Accedi come root tramite SSH sul tuo server di hosting web.

2. Cambia la posizione in cui desideri installare WordPress

root@web [~]# cd /home/plothost/public_html/
root@web [/home/plothost/public_html]# 

3. Scarica l'ultima versione di WordPress. Il link permanente è https://wordpress.org/latest.zip

root@web [/home/plothost/public_html]# wget https://wordpress.org/latest.zip --2017-05-01 08:14:59--  https://wordpress.org/latest.zip Resolving wordpress.org (wordpress.org)... 66.155.40.249, 66.155.40.250 Connecting to wordpress.org (wordpress.org)|66.155.40.249|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 8756989 (8.4M) [application/zip] Saving to: 'latest.zip' 100%[==============================================================================================================================>] 8,756,989   7.07MB/s   in 1.2s 2017-05-01 08:15:01 (7.07 MB/s) - 'latest.zip' saved [8756989/8756989] 
root@web [/home/plothost/public_html]# 

4. Estrarre il file archive-zip nella directory corrente.

root@web [/home/plothost/public_html]# unzip latest.zip -d . 

L'archivio zip verrà estratto in public_html/plothost/wordpress/

5. Vogliamo installare WordPress nella cartella public_html/. Quindi spostiamo i file.

root@web [/home/plothost/public_html]# mv ./wordpress/* . 

6. Ora abbiamo tutti i file di WordPress in /plothost/public_html/ . Dovremmo creare il database e assegnare il nome utente

root@web [/home/plothost/public_html]# mysql 
Welcome to the MariaDB monitor.  Commands end with ; or \g. Your MariaDB connection id is 384766 Server version: 10.1.22-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE wpbase; 
Query OK, 1 row affected (0.00 sec) 
MariaDB [(none)]> CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'pass123456';
Query OK, 0 rows affected (0.19 sec) 
MariaDB [(none)]> GRANT ALL ON wpbase.* TO 'wpuser'@'localhost'; 
Query OK, 0 rows affected (0.02 sec) 
MariaDB [(none)]> 

7. Rinominiamo il file di configurazione wp-config-sample.php a wp-config.php

root@web [/home/plothost/public_html]# mv wp-config-sample.php wp-config.php
root@web [/home/plothost/public_html]# 

8. Modifica il file wp-config.php nel tuo editor preferito (come vi). Modifica le righe con i dettagli di WordPress che hai utilizzato in precedenza:

/** Il nome del database per WordPress */
define('DB_NAME', 'database_name_here');/** Nome utente database MySQL */
define('DB_USER', 'username_qui');/** Password database MySQL */
define('DB_PASSWORD', 'password_qui');

diventa

/** Il nome del database per WordPress */
define('DB_NAME', 'wpbase');/** Nome utente database MySQL */
define('DB_USER', 'wpuser');/** Password database MySQL */
define('DB_PASSWORD', 'pass123456');

9. Abbiamo quasi finito. Cambiamo l'utente/gruppo dei file, in modo che l'utente possa modificare i file.

root@web [/home/plothost/public_html]# chown -R plothost:plothost . 

10. Ora puoi fornire l'URL di installazione all'utente e lui/lei terminerà l'installazione inserendo Titolo del sito , Nome utente e password amministratore , E-mail . (come nell'immagine qui sotto)

Sui nostri piani di web hosting, puoi installare WordPress facilmente tramite Softaculous. Dai un'occhiata alla pagina di hosting di WordPress.


Linux
  1. 4 modi per disabilitare l'account di root in Linux

  2. Installa WordPress su Linux con Apache

  3. Account utente "systemd-bus-proxy"

  4. Installazione di Git con account utente non root

  5. L'account root ha sempre UID/GID 0?

Come installare WordPress su Ubuntu 17.10

Come installare WordPress su Ubuntu 18.04 LTS

Come installare WordPress su Linux Mint 19

Come installare WordPress su Linux Mint 20

Come installare WordPress su Ubuntu 18.04

Come installare WordPress Ubuntu 20.04