Web server installation_configuration_apache

  • 320 views
Uploaded on

Web server installation_configuration_apache

Web server installation_configuration_apache

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
320
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Apache Web ServerInstallation & Configuration SHAOJIE YANG
  • 2. What is Web Server? “Web server can refer to either the hardware(the computer) or the software (the computer application) that helps to deliver Web content that can be accessed through the Internet.” “The most common use of web servers is to host websites, but there are other uses such as gaming, data storage or running enterprise applications.” -- Definition from Wikipedia
  • 3. Installation Web Server Software Environment: Linux CentOS 5.5 System Apache v2.2.3 Web content: WordPress software package (v2.8.6)
  • 4. About “Yum” Yum – Yellow dog Update, Modified, is a Shell front-end software packages manager under Fedora, Redhat, SUSE and CentOS. Based on RPM package management, yum can auto-download RPM packages from certain servers and install them. It can also solve dependence relationships between each RPM, and install all dependency packages at one time.
  • 5. About Apache HTTP Server “The Apache HTTP Server Project is an effort to develop and maintain an open- source HTTP server for modem operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.” “Apache httpd has been the most popular web server on the Internet since April 1996, and celebrated its 17th birthday as a project this February.” “The Apache HTTP Server(httpd) is a project of The Apache Software Foundation.” –Definition from Apache HTTP Server Project) www.httpd.apache.org
  • 6. Download Apache Software Download and install apache software through Yum:
  • 7. Download and Install php Download and install php through Yum
  • 8. Download WordPress Package Web content path: /home/wordpress
  • 9. Unzip WordPress Package
  • 10. Install MySQL Database Server Download and install MySQL through Yum:
  • 11. Start MySQL Service
  • 12. Check Default Database/Login as Root
  • 13. Create wordpress Database
  • 14. Login Database as User Wordpress
  • 15. Modify Database Link File/wp-config.php
  • 16. Modify Database Link File/wp-config.php
  • 17. Create Virtual Host File
  • 18. Create Virtual Host File
  • 19. Start Apache Service
  • 20. Modify Iptables File and Restart the Service
  • 21. Open Web Browser to Check the Site
  • 22. It’s a Test Page. Why? Apache web server set default web content path as /var/www/html. We can see there is an “index.html” under the path. At the same time, under /etc/httpd/conf.d directory, there is a “welcome.conf”. To prevent the test page ever being used, we can delete or rename the file.
  • 23. Rename welcome.conf
  • 24. What Happened Next?
  • 25. Check the Web Content File Permissions
  • 26. Still doesn’t Work, so Disable SeLinux
  • 27. New Problem
  • 28. Solution
  • 29. Open the Site Again
  • 30. Open the Site Again
  • 31. Open the Site Again
  • 32. Open the Site Again
  • 33. Open the Site Again
  • 34. Check Database
  • 35. The Final Product