Apache Web ServerInstallation & Configuration                        SHAOJIE YANG
What is Web Server?   “Web server can refer to either the hardware(the computer) or the software    (the computer applica...
Installation Web Server Software   Environment:   Linux CentOS 5.5 System   Apache v2.2.3   Web content: WordPress sof...
About “Yum”   Yum – Yellow dog Update, Modified, is a Shell front-end software packages    manager under Fedora, Redhat, ...
About Apache HTTP Server   “The Apache HTTP Server Project is an effort to develop and maintain an open-    source HTTP s...
Download Apache Software   Download and install apache software through Yum:
Download and Install php   Download and install php through Yum
Download WordPress Package   Web content path: /home/wordpress
Unzip WordPress Package
Install MySQL Database Server   Download and install MySQL through Yum:
Start MySQL Service
Check Default Database/Login as Root
Create wordpress Database
Login Database as User Wordpress
Modify Database Link File/wp-config.php
Modify Database Link File/wp-config.php
Create Virtual Host File
Create Virtual Host File
Start Apache Service
Modify Iptables File and Restart the Service
Open Web Browser to Check the Site
It’s a Test Page. Why?   Apache web server set default web content path as /var/www/html. We can    see there is an “inde...
Rename welcome.conf
What Happened Next?
Check the Web Content File Permissions
Still doesn’t Work, so Disable SeLinux
New Problem
Solution
Open the Site Again
Open the Site Again
Open the Site Again
Open the Site Again
Open the Site Again
Check Database
The Final Product
Web server installation_configuration_apache
Upcoming SlideShare
Loading in...5
×

Web server installation_configuration_apache

467

Published on

Web server installation_configuration_apache

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
467
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Web server installation_configuration_apache

  1. 1. Apache Web ServerInstallation & Configuration SHAOJIE YANG
  2. 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. 3. Installation Web Server Software Environment: Linux CentOS 5.5 System Apache v2.2.3 Web content: WordPress software package (v2.8.6)
  4. 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. 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. 6. Download Apache Software Download and install apache software through Yum:
  7. 7. Download and Install php Download and install php through Yum
  8. 8. Download WordPress Package Web content path: /home/wordpress
  9. 9. Unzip WordPress Package
  10. 10. Install MySQL Database Server Download and install MySQL through Yum:
  11. 11. Start MySQL Service
  12. 12. Check Default Database/Login as Root
  13. 13. Create wordpress Database
  14. 14. Login Database as User Wordpress
  15. 15. Modify Database Link File/wp-config.php
  16. 16. Modify Database Link File/wp-config.php
  17. 17. Create Virtual Host File
  18. 18. Create Virtual Host File
  19. 19. Start Apache Service
  20. 20. Modify Iptables File and Restart the Service
  21. 21. Open Web Browser to Check the Site
  22. 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. 23. Rename welcome.conf
  24. 24. What Happened Next?
  25. 25. Check the Web Content File Permissions
  26. 26. Still doesn’t Work, so Disable SeLinux
  27. 27. New Problem
  28. 28. Solution
  29. 29. Open the Site Again
  30. 30. Open the Site Again
  31. 31. Open the Site Again
  32. 32. Open the Site Again
  33. 33. Open the Site Again
  34. 34. Check Database
  35. 35. The Final Product

×