Lab 8 Web Server ~ Riguest

Thursday, February 26, 2015

Lab 8 Web Server

1. Basic Concept

The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). Pages delivered are most frequently HTML documents, which may include images, style sheets and scripts in addition to text content.
A user agent, commonly a web browser or web crawler, initiates communication by making a request for a specific resource using HTTP and the server responds with the content of that resource or an error message if unable to do so. The resource is typically a real file on the server's secondary storage, but this is not necessarily the case and depends on how the web server is implemented.
While the primary function is to serve content, a full implementation of HTTP also includes ways of receiving content from clients. This feature is used for submitting web forms, including uploading of files.
Many generic web servers also support server-side scripting using Active Server Pages (ASP), PHP, or other scripting languages. This means that the behaviour of the web server can be scripted in separate files, while the actual server software remains unchanged. Usually, this function is used to generate HTML documents dynamically ("on-the-fly") as opposed to returning static documents. The former is primarily used for retrieving and/or modifying information from databases. The latter is typically much faster and more easily cached but cannot deliver dynamic content.
Web servers are not always used for serving the World Wide Web. They can also be found embedded in devices such as printers, routers, webcams and serving only a local network. The web server may then be used as a part of a system for monitoring and/or administering the device in question. This usually means that no additional software has to be installed on the client computer, since only a web browser is required (which now is included with most operating systems).

2. Purpose

  1. To learn about WEB Server
  2. To Operate CentOS
  3. To know "How to configure Web Server"
  4. To Configure CentOS

3. IP Address


Device Information

WEB Server
Operating system : CentOS 6.5
IP Address           : 192.168.77.2
Subnet Mask        : 255.255.255.248

Client
Operating system : Windows 7 x64
IP Address           : 192.168.77.3
Subnet Mask        : 255.255.255.248

4. Steps

1. Configure your IP Address


2. Change static with dhcp (You must be connected with Internet)


3. Restart your network


4. Open "/etc/resolf.conf"


5. Add new name server google DNS (8.8.8.8)

\
6. Ping google.com


7. Download repo with link below


8. Downloading process has been completed


9. Install all aplication of WEB Server. 


10. Processing Installation


11. Installation has been completed


12. Configure IP Address again


13. Change dhcp with static and fill IP ADDRESS, NETWORK, and NETMASK


14. Open named to create DNS


15. Follow the picture below



16. Open /var/named/forward.(your DNS = I'm using rifqy)


17. Type like the picture below


18. Copy file in "/var/named/forward.rifqy" to "/var/named/reverse.rifqy"


19. Change like the picture below


20. Restart named


21. Open /etc/resolv.conf again


22. Clean all nameserver and add serach with your DNS and nameserver with Server IP


23. Stop iptables


24. Ping your DNS


25. nslookup your DNS


26. Change Client IP and Gateway in 1 network. And then add your DNS


27. Change your network setting with 'Bridged Adapter'


28. Ping your DNS on Command Prompt


29. Open 'httpd.conf''


30. Search word "ServerAdmin root@localhost" with "ServerAdmin root@(yourDNS)".
Search word "ServerName www.example.com:80" with "ServerName www.(yourDNS).com:80"
Search "DirectoryIndex Index.html Index.html.var", erase the underlined character
And then save




31. Restart httpd


32. Restart mysqld to



33. Open your DNS. the appear will be appeared.


34. Give password to mysqladmin


35. Open "mysql -u root -p"


36. Open "/var/www/html/info.php"


37. Type like the picture below (but if you add another shyntax it's ok)


38. Restart httpd again


39. Turn on "chkconfig on httpd and mysqld"


40. Restart httpd again


41. Browse "www.(your DNS).com/info.php". And the appear will be appeared


42. Copy file "/usr/share/phpmyadmin/config.sample.inc.php" to "/usr/share/phpmyadmin/config.inc.php"


43. Open "/usr/share/phpmyadmin/config.inc.php"


44. Search "authentication type". And then change "cookie" with "http"

\
45. Restart httpd


46. Open "/etc/httpd/conf.d/phpmyadmin.conf"


47. Give # (Cress) in <Directory> to </Directory>


48. Restart httpd again


49. Open "www.(your DNS).com/phpmyadmin"


50. Will be appeared this appear. Type name = "root" and Password = "your password in Mysql"


51. Web Server has been finished


If this post isn't clear. Please look this video


Thank you Verry Much.
Semoga Bermanfaat. See you

0 comments:

Post a Comment