Deprecated: PA_Mobile_Detect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/premium-addons-for-elementor/includes/pa-display-conditions/mobile-detector.php on line 701
Deprecated: ElementorPro\Modules\Posts\Traits\Button_Widget_Trait::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/posts/traits/button-widget-trait.php on line 491
Deprecated: ElementorPro\Modules\Carousel\Widgets\Media_Carousel::print_slider(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/carousel/widgets/media-carousel.php on line 305
Deprecated: ElementorPro\Modules\Carousel\Widgets\Base::print_slider(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/carousel/widgets/base.php on line 579
Deprecated: ElementorPro\Modules\Payments\Widgets\Paypal_Button::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/payments/widgets/paypal-button.php on line 225
Deprecated: ElementorPro\Modules\Payments\Classes\Payment_Button::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/payments/classes/payment-button.php on line 499
Deprecated: ElementorPro\Modules\Payments\Widgets\Stripe_Button::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/payments/widgets/stripe-button.php on line 249
Deprecated: PA_Mobile_Detect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/premium-addons-for-elementor/includes/pa-display-conditions/mobile-detector.php on line 701
Deprecated: ElementorPro\Modules\Posts\Traits\Button_Widget_Trait::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/posts/traits/button-widget-trait.php on line 491
Deprecated: ElementorPro\Modules\Carousel\Widgets\Media_Carousel::print_slider(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/carousel/widgets/media-carousel.php on line 305
Deprecated: ElementorPro\Modules\Carousel\Widgets\Base::print_slider(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/carousel/widgets/base.php on line 579
Deprecated: ElementorPro\Modules\Payments\Widgets\Paypal_Button::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/payments/widgets/paypal-button.php on line 225
Deprecated: ElementorPro\Modules\Payments\Classes\Payment_Button::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/payments/classes/payment-button.php on line 499
Deprecated: ElementorPro\Modules\Payments\Widgets\Stripe_Button::render_button(): Implicitly marking parameter $instance as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/andriandas.my.id/wp-content/plugins/elementor-pro/modules/payments/widgets/stripe-button.php on line 249
Kita akan menginstall wordpress di ubuntu 22.04. karna kalian sudah klik blog ini, kalian tinggal ikuti aja langkah langkah nya, jika ada yang error kalian cari sendiri. Mandiri boss
WordPress adalah CMS paling populer. Ini adalah sistem manajemen konten gratis dan sumber terbuka yang ditulis dalam PHP dan dipasangkan dengan database MySQL atau MariaDB.
Instal WordPress dengan Nginx MariaDB di Ubuntu 22.04
Prerequisite:
Server OS Ubuntu 22.04
User harus root
1. perbarui ke versi terbaru
sudo apt update && sudo apt upgrade -y
2. Install Nginx
sudo apt install nginx -y
Buka port di firewall.
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
Buka browser ke IP server Anda, maka akan muncul halaman default Nginx.
3.Install MariaDB
sudo apt install apt-transport-https curl -y
Kita perlu mengimpor public key yang digunakan oleh sistem manajemen paket. Kita dapat mengimpornya menggunakan perintah berikut:
Kita perlu menyiapkan berkas konfigurasi utama WordPress. Kita perlu membuat secret key WordPress. WordPress menyediakan generator yang aman untuk nilai-nilai ini sehingga Anda tidak perlu mencoba mencari nilai-nilai yang tepat sendiri.
Untuk mengambil nilai aman dari generator secret key WordPress, ketik:
Salin secret key dan tempelkan ke dalam berkas konfigurasi WordPress wp-config.php.
sudo nano wp-config.php
Temukan bagian yang berisi nilai-nilai tiruan untuk pengaturan tersebut.
Akan terlihat seperti ini:
...
define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here'); define('LOGGED_IN_KEY', 'put your unique phrase here'); define('NONCE_KEY', 'put your unique phrase here'); define('AUTH_SALT', 'put your unique phrase here'); define('SECURE_AUTH_SALT', 'put your unique phrase here'); define('LOGGED_IN_SALT', 'put your unique phrase here'); define('NONCE_SALT', 'put your unique phrase here');
...
Hapus baris-baris tersebut dan tempelkan nilai yang Anda salin dari baris perintah.
Sekarang, kita perlu menambahkan nama database, user, dan kata sandi dalam berkas. Kita juga dapat secara eksplisit mengatur metode sistem berkas ke “langsung”. Seperti yang ditunjukkan di bawah ini:
...
define('DB_NAME', 'wordpress');
/** MySQL database username */ define('DB_USER', 'wordpressuser');
/** MySQL database password */ define('DB_PASSWORD', 'password');
...
define('FS_METHOD', 'direct');
8. Install Certbot
Mari amankan situs web menggunakan SSL. Kita akan menerbitkan sertifikat SSL menggunakan Certbot yang dapat digunakan secara gratis. Gunakan perintah berikut untuk menginstal Certbot:
sudo apt install certbot python3-certbot-nginx -y
Dapatkan sertifikat SSL menggunakan perintah certbot. Plugin Nginx akan mengurus konfigurasi ulang Nginx dan memuat ulang konfigurasinya.
sudo certbot --nginx -d andriandas.my.id
Note: Ganti andriandas.my.id menjadi nama domain anda.
Dengan menjalankan certbot pertama kali, Anda akan diminta memasukkan alamat email dan menyetujui persyaratan layanan.
Pada tahap ini, kita telah berhasil menginstal semua yang dibutuhkan. Sekarang mari masuk ke browser dan mengakses domain.