Professional Documents
Culture Documents
Silabus Administrasi Infrastruktur Jaringan
Silabus Administrasi Infrastruktur Jaringan
After installing Nginx, the commands below can be used to stop, start and enable Nginx service to always
start up with the server boots.
sudo systemctl stop nginx.service
sudo systemctl start nginx.service
sudo systemctl enable nginx.service
After installing, the commands below can be used to stop, start and enable MariaDB service to always
start up when the server boots.
sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
After that, run the commands below to secure MariaDB server by creating a root password and
disallowing remote root access.
sudo mysql_secure_installation
After install PHP 7.2, run the commands below to open PHP-FPM default file.
sudo nano /etc/php/7.2/fpm/php.ini
Then make the changes on the following lines below in the file and save. The value below are great
settings to apply in your environments.
file_uploads = On
allow_url_fopen = On
memory_limit = 256M
upload_max_file_size = 100M
cgi.fix_pathinfo=0
max_execution_time = 360
date.timezone = America/Chicago
Then run the commands below to set the correct permissions for WordPress to function.
sudo chown -R www-data:www-data /var/www/html/wordpress/
sudo chmod -R 755 /var/www/html/wordpress/
Then copy and paste the content below into the file and save it. Replace the highlighted line with your
own domain name and directory root location.
server {
listen 80;
listen [::]:80;
root /var/www/html/wordpress;
index index.php index.html index.htm;
server_name example.com www.example.com;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Enter the highlighted text below that you created for your database and save.
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wpdb');
/** MySQL database username */
define('DB_USER', 'wpdbuser');
/** MySQL database password */
define('DB_PASSWORD', 'user_password_here');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
After that, open your browser and browse to your domain name to launch WordPress configuration
wizard.
You should see WordPress setup wizard to complete. Please follow the wizard carefully.