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.
2. Install CLI Web broser for Debian (Disk 1)
# apt-get install lynx
Trying access server-01.com before configuring anything by lynx.
# lynx server-01.com
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)
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.
Enter root password for mysql database
Repeat entry password.
()
Select [apache2] for PHPMyAdmin page browser.
Just select YES
Enter password for PHPMyAdmin
Enter password for PHPMyAdmin to register with database. It can be leave empty, but system will generate password.
Repeat entry password.
Installation of PHP, SQL and PHPMyAdmin is Completed.
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.
default file before configuration.
Now, change text on bellow lines: (Please see bellow image)
Line 2
Line 3
Line 4
Line 9
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.
Then extract using you decompressing tools
Extraction progress
This is all worpress files after extracted, we need to copy into Debian Linux Server
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
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.
File transfer is running. please be patient until completed.
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.
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.
CONFIGURING WORDPRESS WEB SERVER
Open web browser and type on url address [http://server-01.com]
Click Les's go!
Before **Submit ** we need to create wordpress database's. Open new tab on web browser.
On new tab url address type [http://server-01.com/phpmyadmin]
Enter username and password for PHPMyAdmin.
Click Databases to create new database
Type Wordpress database name "wordpress" (case sensitive), then click create
Database "wordpress"has been created
Back to the first tab, fill in the Database name is "wordpress", Username is "root", and Password is "your password". Then click Submit
Anything is OK, click Run the install to start
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.
Installation has been completed, now let's login with create user and password for Wordpress. Click Login.
Enter username and Password to login Wordpress.
Login Successful. Now you can manage your web server, add posts, and more.
Open New Tab and type http://server-01.com to preview your created web server
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
- Installing Linux Debian 7.8 as Server
- Installing and Configuring DNS Server on Debian 7.8 Linux Server
Very nice post, perfect article, thanks for shared yo us
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@azizali Its very interesting info.. Wonderful post keep it up.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
A great post this type of knowledgeable post increase the value of steemit community. I also learn something more from this post.. Thanks 🙏
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You welcome @face2face, I hope my post helpful especially for you (y)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Wow very nice post
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit