Getting started with Virtual servers

Configuring Apache

I edited the apache2.conf file to have the default directory for the webserver be the www-folder in my user account home directory.
I then created said folder using mkdir /home/reija/www (www being the new folder) and restarted apache to reload configuration using sudo systemctl restart apache2.service.
This allows the user account to create web pages and the server to default into using the index.html file in that folder as the home page for Apache localhost.

apache_homepage

Break in attempts

I went to look at the auth.log file for any break in attempts. I used the command tail -f auth.log to have access for real time statistics. As pictured below, there were some attempts.

break_in_attempts

I pinged some of the IP addresses and got a pretty huge latency, some 224 seconds per ping, which indicates a pretty long distance.

Copying files with scp

I copied some of the web pages I made in a previous exercise to my virtual server using scp command:
peippo@peippo-E6400:~$ sudo scp -r /var/www/html/* reija@178.62.xxx.xxx:/home/reija

PHP Web page

I installed php using command: apt-get -y install php7.0 libapache2-mod-php7.0
I then made a simple .php web page, but while testing it I started to get the 403 Error message, saying I didn’t have access to my web server.
So this task was left unfinished and I will have to look into how to fix it.

Sources:

Linux Course by Tero Karvinen

Scp Tutorial

Installing LAMP

PHP tutorial

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s