diskon 50% semua paket, waktu terbatas. Mulai dari $2.48/mo
LEMP

LEMP

LEMP adalah Linux + NGINX + MySQL + PHP. Alternatif berperforma lebih tinggi dari LAMP, ideal untuk WordPress, Laravel, Symfony, dan framework PHP modern. Mampu menangani 3-4x lebih banyak request per detik dibanding LAMP pada hardware yang sama, dengan penggunaan memori per worker yang lebih kecil.

Versi

Terbaru

Sistem Operasi

Ubuntu Server 24.04 LTS, Ubuntu Server 22.04 LTS

RAM minimum

1 GB

Jenis IP

IPV4,IPV6

Layanan Terinstal

  • Server Web Nginx → /var/www/html
  • MySQL Server (diamankan) → Kredensial root tersimpan di /root/.cloudzy-creds
  • PHP & Extensions → Mencakup php-fpm, php-mysql, php-cli, php-curl, php-mbstring, php-xml, php-zip, php-gd

File & Direktori Penting

  • Password root MySQL yang tersimpan: /root/.cloudzy-creds
  • Direktori root web NGINX: /var/www/html
  • File konfigurasi NGINX: /etc/nginx
  • File konfigurasi MySQL: /etc/mysql
  • File database MySQL: /var/lib/mysql
  • Log Nginx: /var/log/nginx
  • Log MySQL: /var/log/mysql
  • Socket PHP-FPM: /run/php/php-fpm.sock

Akses MySQL

Masuk sebagai root:

mysql -u root -p

Kata sandi disimpan di /root/.cloudzy-creds.

Perintah umum:

SHOW DATABASES;                                              -- List all databases
USE <database>;                                              -- Switch to a specific database
CREATE DATABASE mydb;                                        -- Create a new database
CREATE USER 'appuser'@'localhost' IDENTIFIED BY 'password';  -- Create a new user
GRANT ALL PRIVILEGES ON mydb.* TO 'appuser'@'localhost';     -- Grant privileges
EXIT;                                                        -- Quit MySQL shell

Akses Nginx

Akar web: /var/www/html

Tes konfigurasi:

sudo nginx -t

Akses di browser: http://<SERVER_IP>

Gunakan PHP

Periksa versi:

php -v

Manajemen Layanan

Nginx:

sudo systemctl status nginx    # Check status
sudo systemctl restart nginx   # Restart service

MySQL :

sudo systemctl status mysql     # Check status
sudo systemctl restart mysql    # Restart service

PHP-FPM:

PHP_FPM_VERSION=$(ls /etc/php | grep -E '^[0-9]+.[0-9]+$')
PHP_FPM_SERVICE="php${PHP_FPM_VERSION}-fpm"
systemctl status ${PHP_FPM_SERVICE}
systemctl restart ${PHP_FPM_SERVICE}

Lainnya di Web Hosting

Aplikasi terkait.

Deploy LEMP sekarang. Mulai dari $2.48/bulan.