0% found this document useful (0 votes)
18 views3 pages

KZW

Uploaded by

ibalbabal779
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

KZW

Uploaded by

ibalbabal779
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

apt update

apt upgrade
apt-get install nginx
systemctl enable nginx
systemctl status nginx
apt-get install php php-mysql php-fpm php-curl php-gd php-intl php-mbstring php-
soap php-xml php-xmlrpc php-zip mariadb-server mariadb-client
systemctl enable mariadb
systemctl status mariadb
systemctl enable php7.4-fpm
systemctl status php7.4-fpm
mysql_secure_installation
mysql
CREATE DATABASE ...;
CREATE USER '...'@'localhost' IDENTIFIED BY '...';
GRANT ALL PRIVILEGES ON ---.* to ...@'localhos';
FLUSH PRIVILEGES;
exit
wget -O /tmp/wordpress.tar.gz https://wordpress.org/latest.tar.gz
tar -xzvf /tmp/wordpress.tar.gz -C /var/www/html
chown -R www-data.www-data /var/www/html/wordpress
chmod -R 755 /var/www/html/wordpress
nano /etc/nginx/conf.d/wordpress.conf

server {
listen 80;
listen [::]:80;
root /var/www/html/;
index index.php index.html index.htm;
error_log /var/log/nginx/wordpress_error.log;
access_log /var/log/nginx/wordpres_access.log;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}

rm /etc/nginx/sites-enabled/default
rm /etc/nginx/sites-available/default
systemctl reload nginx
mysql -u root -p
CREATE DATABASE ...;
CREATE USER '...'@'localhost' IDENTIFIED BY '...';
GRANT ALL ON ---.* TO '...'@'localhost' IDENTIFIED BY '...' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit
cd /tmp
wget https://download.moodle.org/download.php/direct/stable38/moodle-latest-38.tgz
tar -zxvf moodle-latest-38.tgz
mv moodle /var/www/html/moodle
cd
mkdir /var/moodledata
chown -R www-data /var/www/html/moodle
chmod -R 777 /var/www/html/moodle
chown -R www-data /var/moodledata
chmod -R 777 /var/moodledata
systemctl reload nginx
nano /etc/nginx/conf.d/web.conf

server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.php index.html index.htm;
server_name 192.168.0.200;

location / {
try_files $uri $uri/ =404;
}

client_max_body_size 8M;

location /dataroot/ {
internal;
alias /var/moodledata/;
}

location ~ [^/]\.php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

systemctl reload nginx

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Halaman Beranda</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>WELCOME </h1>
</header>
<nav>
<main>
<section id="Biodata">
<h2>Biodata</h2>
<p>Nama: Ahmad Denda Wiranta</p>
<p>Kelas: XI TJKT B</p>
</section>
<ul>
<li><a href="http://192.168.30.102/wordpress">Wordpress</a></li>
<li><a href="http://192.168.30.102/moodle">Moodle</a></li>
</ul>
</nav>

You might also like