Install Wordpress di Debian 12: Perbedaan antara revisi

Dari Dokumentasi Robie
Loncat ke navigasi Loncat ke pencarian
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Baris 31: Baris 31:
Buat Database di MariaDB dengan cara
Buat Database di MariaDB dengan cara


mysql -u root -p (enter)
#mysql -u root -p (enter)
 
Enter Password : (enter)
Enter Password : (enter)
 
SET PASSWORD FOR root@localhost=PASSWORD('123456');
SET PASSWORD FOR root@localhost=PASSWORD('123456');
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
 
grant ALL on root.* to wordpress@localhost;
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
 
grant ALL on wordpress.* to wordpress identified by 'wordpress';
grant ALL on root.* to wordpress@localhost;
exit
 
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
 
grant ALL on wordpress.* to wordpress identified by 'wordpress';
 
exit




Hasilnya akan seperti berikut
Hasilnya akan seperti berikut


 
MariaDB [(none)]> SET PASSWORD FOR root@localhost=PASSWORD('123456');
MariaDB [(none)]> SET PASSWORD FOR root@localhost=PASSWORD('123456');
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
 
grant ALL on root.* to wordpress@localhost;
REATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
 
grant ALL on wordpress.* to wordpress identified by 'wordpress';
grant ALL on root.* to wordpress@localhost;
exitQuery OK, 0 rows affected (0.001 sec)
 
MariaDB [(none)]> CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
Query OK, 1 row affected (0.001 sec)
 
MariaDB [(none)]> grant ALL on root.* to wordpress@localhost;
grant ALL on wordpress.* to wordpress identified by 'wordpress';
ERROR 1133 (28000): Can't find any matching row in the user table
 
MariaDB [(none)]> GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
exitQuery OK, 0 rows affected (0.001 sec)
Query OK, 0 rows affected (0.001 sec)
 
MariaDB [(none)]> grant ALL on wordpress.* to wordpress identified by 'wordpress';
MariaDB [(none)]> CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Query OK, 0 rows affected (0.001 sec)
 
MariaDB [(none)]> exit (enter)
Query OK, 1 row affected (0.001 sec)
Bye
 
root@wordpress:~#
MariaDB [(none)]> grant ALL on root.* to wordpress@localhost;
 
ERROR 1133 (28000): Can't find any matching row in the user table
 
MariaDB [(none)]> GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
 
Query OK, 0 rows affected (0.001 sec)
 
MariaDB [(none)]> grant ALL on wordpress.* to wordpress identified by 'wordpress';
 
Query OK, 0 rows affected (0.001 sec)
 
MariaDB [(none)]> exit
 
Bye
 
root@wordpress:~#

Revisi per 24 September 2024 00.44

Wordpress bisa dikatakan sebuah framework atau sebuah paket untuk membuat website sederhana dengan tampilan yang menarik. Untuk menginstall wordpress di Debian 12, beberapa aplikasi yang perlu disiapkan antara lain Web Server Apache2, Database MariaDB, PHP, dan beberapa extensi yang diperlukan.

Instalasi web server dan MariaDB silakan bisa klik linknya. Setelah menginstall kedua aplikasi tersebut langkah selanjutnya adalah menginstall PHP dan extensi yang diperlukan untuk wordpress.

Install PHP

apt -y install php (enter)

Install Extension

apt -y install php-common php-mysql php-xml php-xmlrpc \
php-curl php-gd php-imagick php-cli php-dev \
php-imap php-mbstring php-opcache php-soap \
php-zip php-cli php-intl \
imagemagick git unzip zip libgd-dev libapache2-mod-php libphp-adodb 

lalu tekan enter

Install Wordpress

Ambil kode program wordpress dari link berikut

https://id.wordpress.org/latest-id_ID.zip

Cara downloadnya adalah masuk ke folder /var/www/html dengan mengetikkan perintah

#cd /var/www/html (lalu enter)


Langkah berikutnya adalah mendownload kode program wordpress dengan mengetikkan

wget https://id.wordpress.org/latest-id_ID.zip (enter)

tunggu hingga file wordpress terdownload.


Buat Database di MariaDB dengan cara

#mysql -u root -p (enter)
Enter Password : (enter)

SET PASSWORD FOR root@localhost=PASSWORD('123456');
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
grant ALL on root.* to wordpress@localhost;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
grant ALL on wordpress.* to wordpress identified by 'wordpress';
exit


Hasilnya akan seperti berikut

MariaDB [(none)]> SET PASSWORD FOR root@localhost=PASSWORD('123456');
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
grant ALL on root.* to wordpress@localhost;
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
grant ALL on wordpress.* to wordpress identified by 'wordpress';
exitQuery OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> grant ALL on root.* to wordpress@localhost;
ERROR 1133 (28000): Can't find any matching row in the user table
MariaDB [(none)]> GRANT ALL ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> grant ALL on wordpress.* to wordpress identified by 'wordpress';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> exit (enter)
Bye
root@wordpress:~#