Installing and Configuring Web Server on Debian 7.8 Support by WordPress CMS

in #technology7 years ago

Hi, its me again, this is my 3rd project progress. I have completed install Debian 7.8 server and configured DNS server, now I am going to configure Web server.
To make an instant web pages, I will use the Wordpress Content Management Syatem (CMS) at this time. There is too many free CMS for web server like; Joomla, Wordpress, Subrion, Drupal, Magento, Shopify, TYPO3, etc. All is free to use.

WHAT IS WEB SERVER?

Web server is a software provides data-based services and functions to receive requests from HTTP or HTTPS (usually its known as web browser) and to send back the results in the form of multiple web pages and will generally form HTML documents.

There are several frequently used web server applications:

  • Apache Web Server / The HTTP Web Server -->> This is my project
  • Apache Tomcat
  • Microsoft Windows Server 2008 IIS (Internet Information Services)
  • Lighttpd
  • Zeus Web Server
  • Sun Java System Web Server

I hope my short review is enough to explain "What is a web server?".

Let's go to the Web Server configurations.

1. Install Web Server application. (Use disk 1 of Debian 7.8)
# apt-get install apache2
Wait until process completed.
Server-2017-10-06-09-57-50.png

2. Install CLI Web broser for Debian (Disk 1)
# apt-get install lynx
Server-2017-10-06-09-58-37.png
Trying access server-01.com before configuring anything by lynx.
# lynx server-01.com
Server-2017-10-06-09-58-42.png
Testing web server view from client
(You need to setup interface and client IP address, please read my last post HERE to set Windows IP)
2017-10-06.jpg

3. Install PHP, SQL Server and PHPMyAdmin for database and web server supports.
# Install php5 mysql-server phpmyadmin
Installation may take a few second to be completed, please be patient.
Server-2017-10-06-10-08-35.png
Enter root password for mysql database
Server-2017-10-06-10-11-10.png
Repeat entry password.
()
Select [apache2] for PHPMyAdmin page browser.
Server-2017-10-06-10-11-39.png
Just select YES
Server-2017-10-06-10-12-36.png
Enter password for PHPMyAdmin
Server-2017-10-06-10-12-45.png
Enter password for PHPMyAdmin to register with database. It can be leave empty, but system will generate password.
Server-2017-10-06-10-12-53.png
Repeat entry password.
Server-2017-10-06-10-13-00.png
Installation of PHP, SQL and PHPMyAdmin is Completed.
Server-2017-10-06-10-13-06.png

4. Configure Web Server Virtual host
# /etc/apache2/sites-available/
# ls -->
default is Virtual host for http and default-ssl is https virtual hosts. Now I will create http virtual host.
# cp default server-01.conf --> server-01.conf is optional names, its up to you.
# nano server-01.conf --> to configure virtual host.
Server-2017-10-06-10-15-41.png
default file before configuration.
Server-2017-10-06-10-15-53.png
Now, change text on bellow lines: (Please see bellow image)
Line 2
Line 3
Line 4
Line 9
Server-2017-10-06-10-16-38.png

5. Now create "web" directory inside "/var/www/" --> this is default path for web server files
# cd /var/www
# ls --> there is no "/web" directory, so we need to create it
# mkdir web --> create "/web" directory


6. Go to download pages Wordpress and download wordpress.tar.gz this is for linux web server.
2017-10-06_102048.jpg

Then extract using you decompressing tools
2017-10-06_102356.jpg

Extraction progress
2017-10-06_102516.jpg

This is all worpress files after extracted, we need to copy into Debian Linux Server
2017-10-06_102627.jpg

7. Transfer files to Linux server using SSH or SFTP port, with default port number is 22. This port is not modified. There is too many tools for file transfer ; FileZilla, WinSCP, etc. In this sample I am using FileZilla, if its not installed yet, please download and install it first.
Open FileZilla and connect to server's
Host : 220.20.10.1
Username : root
Password : your password
Port : 22
Click Quickconnect
2017-10-06_102739.jpg

8. Connection running well. On FIleZilla windows, select extracted wordpress folder on left up sides, the correct selected folder will display files on left bottom side, then select all files on left bottom sides.
Select target folder on right up side to "/var/www/web/", and the right bottom side will display empty folder. Now, right click on left side and select Upload to start files transfer. Wait until running process is completed.
2017-10-06_103041.jpg
File transfer is running. please be patient until completed.
2017-10-06_103052.jpg

9. If file transfer has been completed, now return to server configuration.

In wordpress directories, there is no "uploads" directory, we need to create it.

# cd web
# mkdir -p wp-content/uploads
"uploads" directory has been created,
# cd .. --> return to previous directory "/var/www"
# chown -R www-data:www-data web --> to change the directory owner
# chmod -R 755 web --> to allow web server access the directories.
Server-2017-10-06-10-59-29.png

10. Activate created web server.
First, disable default virtual host.
# a2dissite default
Enable created virtual host
# a2ensite server-01.conf
Then, Restart Web server services.
service apache2 restart
Restart process must be running [OK}, if it is running [Failed] or [error] web server will be not running, so check it all again.
Server-2017-10-06-11-09-28.png



CONFIGURING WORDPRESS WEB SERVER

Open web browser and type on url address [http://server-01.com]

Click Les's go!

2017-10-06_111025.jpg

Before **Submit ** we need to create wordpress database's. Open new tab on web browser.

2017-10-06_111247.jpg

On new tab url address type [http://server-01.com/phpmyadmin]

Enter username and password for PHPMyAdmin.
2017-10-06_111311.jpg

Click Databases to create new database

2017-10-06_111324.jpg

Type Wordpress database name "wordpress" (case sensitive), then click create

2017-10-06_111336.jpg

Database "wordpress"has been created

2017-10-06_111339.jpg

Back to the first tab, fill in the Database name is "wordpress", Username is "root", and Password is "your password". Then click Submit

2017-10-06_111415.jpg

Anything is OK, click Run the install to start

2017-10-06_111429.jpg

Installation almost complete, now fill in the forms, including site title, username and password (for web server admin - you can create your admin name and password), then click Install Wordpress.

2017-10-06_111948.jpg

Installation has been completed, now let's login with create user and password for Wordpress. Click Login.

2017-10-06_112116.jpg

Enter username and Password to login Wordpress.

2017-10-06_112254.jpg

Login Successful. Now you can manage your web server, add posts, and more.

2017-10-06_112338.jpg

Open New Tab and type http://server-01.com to preview your created web server

2017-10-06_113542.jpg


This post has very perfect tutorial for beginner, I hope my post is useful for anyone who want to create his own web server at home.


My last posts

  1. Installing Linux Debian 7.8 as Server
  2. Installing and Configuring DNS Server on Debian 7.8 Linux Server






































































Sort:  

Very nice post, perfect article, thanks for shared yo us

@azizali Its very interesting info.. Wonderful post keep it up.

Thanks for visit me @fantasticmonkey, this is my 3rd posts, there is too many projects I'll share. Please visit me again on my next posts.

A great post this type of knowledgeable post increase the value of steemit community. I also learn something more from this post.. Thanks 🙏

You welcome @face2face, I hope my post helpful especially for you (y)

Any particular reason that you use that old version of Debian? I personally still have a Debian 5 running, but that's because I'm too lazy to reinstall everything.

The last release of Debian was not more stable than its old version. Except the last stable version has been released. I am ever use the last 8.5 version and I found bugs in Proxy. So Debian 7.8 is my best choise for most stable released. Your debian was too old, don't you want to upadate and upgrade it? Debian 5 was the most legendary stable... Nice choice @madmac.

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.030
BTC 62548.40
ETH 3435.15
USDT 1.00
SBD 2.51