You are on page 1of 5

UTS PRAKTIKUM SISTEM OPERASI

JUDUL :
KONFIGURASI LAMP & WORDPRESS

Dibuat Oleh :
Sugianto 201583022

FAKULTAS ILMU KOMPUTER


SISTEM INFORMASI
UNIVERSITAS ESA UNGGUL
sugianto@ubuntu:~$ sudo apt-get install apache2

[sudo] password for sugianto:

Reading package lists... Done

Building dependency tree

Reading state information... Done

apache2 is already the newest version (2.4.18-2ubuntu3.5).

0 upgraded, 0 newly installed, 0 to remove and 222 not upgraded.

sugianto@ubuntu:~$ sudo apt-get install mysql-server

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

sugianto@ubuntu:~$ ps ax|grep apt

1220 ? Ss 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily update

1259 ? S 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held update

2452 ? SNl 0:00 /usr/bin/python3 /usr/sbin/aptd

2485 pts/7 S+ 0:00 grep --color=auto apt

sugianto@ubuntu:~$ sudo kill 1259

sugianto@ubuntu:~$ sudo kill 1220

sugianto@ubuntu:~$ sudo kill 2452

sugianto@ubuntu:~$ sudo kill 2485

sugianto@ubuntu:~$ sudo apt-get install mysql-server

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:


libaio1 libevent-core-2.0-5 libhtml-template-perl mysql-client-5.7

mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7

sugianto@ubuntu:~$ sudo apt-get install php7.0 php-pear php7.0-mysql

Reading package lists... Done

Building dependency tree

Reading state information... Done

sugianto@ubuntu:~$ wget http://wordpress.org/latest.zip

--2017-11-05 13:19:40-- http://wordpress.org/latest.zip

Resolving wordpress.org (wordpress.org)... 66.155.40.250, 66.155.40.249

Connecting to wordpress.org (wordpress.org)|66.155.40.250|:80... connected.

HTTP request sent, awaiting response... 301 Moved Permanently

Location: https://wordpress.org/latest.zip [following]

--2017-11-05 13:19:41-- https://wordpress.org/latest.zip

Connecting to wordpress.org (wordpress.org)|66.155.40.250|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 8916261 (8.5M) [application/zip]

Saving to: ‘latest.zip’

latest.zip 100%[===================>] 8.50M 113KB/s in 71s

2017-11-05 13:20:54 (122 KB/s) - ‘latest.zip’ saved [8916261/8916261]

sugianto@ubuntu:~$ sudo unzip latest.zip

Archive: latest.zip…..

sugianto@ubuntu:~$ sudo mysql -u root -p

Enter password: (unseen, mode pilihan ‘0’= LOW ) 1234567890

Welcome to the MySQL monitor. Commands end with ; or \g.


Your MySQL connection id is 9

Server version: 5.7.20-0ubuntu0.16.04.1 (Ubuntu)

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database souts;

Query OK, 1 row affected (0.00 sec)

mysql> create user sugianto identified by 'admin1';

Query OK, 0 rows affected (0.00 sec)

mysql> grant all privileges on souts.* to sugianto identified by 'admin1';

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> exit

Bye

sugianto@ubuntu:~$ sudo cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php

sugianto@ubuntu:~$ sudo nano wordpress/wp-config.php

// ** MySQL settings - You can get this info from your web host ** //

/** The name of the database for WordPress */

define('DB_NAME', 'souts');

/** MySQL database username */

define('DB_USER', 'sugianto');

/** MySQL database password */

define('DB_PASSWORD', 'admin1');
/** MySQL hostname */

define('DB_HOST', 'localhost');

sugianto@ubuntu:~$ sudo cp -R ~/wordpress/* /var/www/ *Copy directory wordpress ke directory


server

sugianto@ubuntu:~$ cd /var/www/ *masuk directory

sugianto@ubuntu:/var/www$ sudo chown www-data:www-data /var/www/* -R

sugianto@ubuntu:/var/www$ sudo usermod -a -G www-data sugianto * Memberikan ijin pada user

sugianto@ubuntu:~$ sudo mv /var/www/html/index.html /var/www/html/index.html.orig *Buat


backup

You might also like