Template:Examples

FACULTY OF INFORMATION SCIENCE AND TECHNOLOGY MULTIMEDIA UNIVERSITY

TRIMESTER 1 2021/2021

Team members:

MUHAMMAD HAZRIQ HAIQAL BIN AZHAR 1181102622

MUHAMMAD SHAHMI ZIKRI BIN SAARI 1181102727

ONG ZI JIAN 1171201150

CHAN CHIA CHING 1171103752

=Intro=

A community supported Fedora Project is the one responsible on developing Fedora Linux as one of the Linux distributions. This community is sponsored primarily by a subsidiary of IBM (International Business Machines Corporations), Red Hat. Contributing towards a world of free technologies, Fedora contains difference software distributions for different task under various free and open source licenses.

For example, there is Fedora Workstation which is an easy to use operating system for desktop computers or laptop with complete set of tools for developers. Other than that, there also exist Fedora server which helps their user to control all infrastructure and services with a powerful and flexible operating system included with the latest datacenter technologies. On the other hand, Fedora also makes an official edition of Fedora IoT that provided a trusted open source platform as a strong foundation for IoT ecosystems.

Fedora Linux required for minimum of 2 GB of RAM and 20 GB of disk space for installation which is reasonable compared to other Linux distributions in order to have a fast and properly working operating system.

=FEDORA Download and installation=

1.	Install the ISO file from https://getfedora.org/en/workstation/download/

2.	Setup the VirtualBox with FEDORA as name

3.	Start FEDORA virtual machine cand choose FEDORAWorkstation—Live 34 4.	Choose install to Hard Drive

5.	Choose suitable language for the installation

6.	Choose the drive to install

7.	Begin installation of Fedora

8.	Finish installation and restart the virtual machine

9.	Remove the ISO file in the storage setting before restarting FEDORA.

10.	Add username and password.

=Creating three users on FEDORA=

1.	Create user starting with su command to access root command which is useradd to add user.

2.	Create password for user by using command passwd.

=Install and configure internet server: LAMP server=

1.	Install httpd using command sudo systemctl install -y httpd

2.	Enable and restart the http service using command sudo systemctl start -y httpd and sudo systemctl enable -y httpd.

3.	Install maria-database with command sudo dnf install -y mariadb mariadb-server.

4.	Start and enable mariadb with command sudo systemctl start mariadb and sudo systemctl enable mariadb.

5.	Set up mariadb suing command sudo mysql_secure_installation.

6.	Install php using command sudo dnf install -y php php-common php-pdo_mysql php-pdo php-gd php-mbstring.

7.	Install webmin dependencies with command sudo dnf install -y perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect

8.	Download the webmin rpm

9.	Install the webmin using command sudo rpm -U webmin-current.rpm

10.	Configure the firewall in order for webmin to work

11.	Login to webmin by using NAT ip address, https://10.0.2.15 with those details ID : root Password: 34DPP14zb@

12.	The system information should come out after we log in

13.	Creating a new user can be proceed after the login process

=Install and configure internet server: FTP server= 1.	Install vsftpd on FEDORA using command sudo dnf install vsftpd

2.	Start and enable vsftpd using command sudo systemctl startr vsftpd and sudo systemctl enable vsftpd.

3.	Configure the firewall in order to allow FTP services.

4.	Access FTP server on FEDORA using Mozilla with NAT IP

5.	Access FTP server on Windows using File Explorer with Host-only Adapter IP

6.	Upload readme.txt into FTP server using File Explorer.

7.	Check the file in FTP server on FEDORA using NAT IP

=Install and configure internet server: SSH server = 1.	Install openssh packages on FEDORA

2.	Start and enable ssh services on FEDORA

3.	Add user ad host in order add the user to know list.

4.	Remote access using putty on windows with Host-only Adapter IP

5.	Transfer file from Window to FEDORA using pscp.exe


 * On Window CMD


 * On Fedora

Before transfer:

After transfer:

=Install and configure Content Management System (CMS) = 1.	Change to superuser in order to access root command and enable installation process of httpd

2.	Install mariadb-server with command yum install mariadb mariadb—server 3.	Proceeed to install mysql using command mysql_secure_isntallation

4.	Install PHP using command yum install php

5.	Download the wordpress to server root html. In server root give command: sudo wget https://wordpress.org/latest.zip

6.	Unzip the wordpress using command unzip latest.zip

7.	Copy wordpress from directory

8.	Remove the wordpress from directory

9.	Configure firewall to enable http service

10.	Using Fedora terminal, login to MySQL server using root and create database and user for wordpress. Give ALL permission to database user to access the database.

Database: wordpress Database User : User Database Password : user123

11.	Perform the web based installation, run the web browser and point your browser at http://server-ip-address/wordpress and enter database information above to complete the installation.

12.	Access, display and capture your Wordpress default page using any web browser.

=Install and configure Wiki system (mediawiki)= (number 1,2,4 do not have screenshot because have been showed by previous points) 1.	Install, enable and start httpd server on fedora: 2.	Install, enable and start MariaDB installation: 3.	Database creation: 4.	Php installation:
 * Sudo dnf install httpd
 * Sudo systemctl enable httdp.service
 * Sudo systemctl start httpd.service
 * Sudo systemctl status httpd.service
 * Sudo dnf install mariadb-server
 * Sudo systemctl enable mariadb.server
 * Sudo systemctl start mariadb.server
 * Sudo systemctl status maridb.server
 * Sudo mysql
 * CREATE USER ‘user’@’localhost’ IDENTIFIED BY ‘user123’;
 * GRANT ALL ON wiki.* TO ‘user’@’localhost’;
 * Sudo dnf install php php-common
 * Sudo dnf install php-mysqlnd php-xml php-json php-gd php-mbstring
 * sudo yum -y install php-intl

5.	Firewall setup: 6.	PHP enabling: 7.	Mediawiki installation:
 * Sudo firewall-cmd –permanent –-add-service=http
 * Sudo firewall-cmd –permanent –add-service=https
 * Reload firewalld
 * Sudo nano /etc/php.ini
 * Change the session.save-path location
 * Save and exit
 * Sudo nano /etc/httpd/conf/httpd.conf
 * Add the sentence as in the picture below for both part
 * Save and exit
 * Service httpd restart. To restart the httpd service
 * Sudo wget https://releases.wikimedia.org/mediawiki/1.36/mediawiki-1.36.2.zip
 * Unzip the file using command sudo unzip mediawiki-1.36.2.zip
 * Change the name of the file using Mv mediawiki-1.36.2 mediawiki
 * Cd mediawiki
 * Check the content of the file

8.	Mediawiki on web configuration:
 * Go to web browser and enter ipaddress/mediawiki
 * Follow thru the installation guide
 * Connect the created database named wiki from MariaDB into mediawiki
 * Create a user with a new password
 * Copy LocalSettings.php from Downloads folder into mediawiki folder using command sudo cp Localsettings.php /var/www/html/mediawiki/

9.	Mediawiki edit page demo:
 * Reload the page. Click edit button on top right
 * Edit the page
 * Click save changes