06.m3 cms set-upwebserver

21
IT2032PA Content Management System (CMS) Nitec in Social Media & Web Technology

Transcript of 06.m3 cms set-upwebserver

Page 1: 06.m3 cms set-upwebserver

IT2032PA Content Management

System (CMS)Nitec in Social Media & Web Technology

Page 2: 06.m3 cms set-upwebserver

Setting-up a Web Server

In this chapter, you will learn:o Identify the system requirement to setup a web

server o Identify the components needed to run a Content

Management System (CMS)o Define the open source technologies used in the

development of CMS

Page 3: 06.m3 cms set-upwebserver

System Requirement

Hardware:Apache Web Servero Performs well on almost any systemo 486 processor –

• very little CPU power to perform reasonably well

o less 30 MB of disc space

It all depends on your

project's requirements

Page 4: 06.m3 cms set-upwebserver

System Requirement

Hardware and Operating System IssuesHardware issue affecting webserver is RAMo A webserver should never ever have to swap

• increases the latency of each request • causes users to hit stop and reload• further increasing the load

o Soln: control the MaxRequestWorkers

Page 5: 06.m3 cms set-upwebserver

System Requirement

MaxRequestWorkers Hardware issue affecting webserver is RAMo determine the size of your average Apache processo by looking at your process list via a tool such as topo divide this into your total available memoryo leaving some room for other processes

Page 6: 06.m3 cms set-upwebserver

System Requirement

OS Guidelineso Run the latest stable release and patchlevel o If your OS supports a sendfile(2) system call,

• install the release/patches needed to enable it• enables Apache 2 to deliver static content faster

Page 7: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersInternet Information Services (IIS)

A web server application and set of feature extension modules created by Microsoft o IIS is not turned on by defaulto IIS 7.5 includes the following additional or enhanced

security features:• Client Certificate Mapping• IP Security• Request Filtering• URL Authorization

Page 8: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersInternet Information Services (IIS) o IIS 7.0 has a modular architecture

• HTTP modules • Security modules • Content modules • Compression modules • Caching modules • Logging and Diagnostics modules

Page 9: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersInternet Information Services (IIS) o IIS new feature modules

• FTP Publishing Service • Administration Pack • Application Request Routing • Database Manager • Media Services • URL Rewrite Module • WebDAV

Page 10: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersIIS Expresso lightweight version of IISo standalone freeware server and may be installed on

Windows XP (SP3)o Express supports only the HTTP and HTTPS

protocols

Page 11: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersApache HTTP Web Servero is a powerful, flexible, HTTP/1.1 compliant web servero implements the latest protocols, including HTTP/1.1 o highly configurable &extensible with 3rd party moduleso can be customised by writing 'modules‘o provides full source code o comes with an unrestrictive license

Page 12: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersApache HTTP Web Servero Runs almost on ALL OSo actively being developedo encourages user feedbacko implements many frequently requested features:

• DBM databases • allows you to easily set up password-protected pages • Customized responses to errors and problems

Page 13: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersApache HTTP Web Servero implements many frequently requested features:

• Allows you to set up files in response to errors and problems• Multiple DirectoryIndex directives • Unlimited flexible URL rewriting and aliasing • Content negotiation • Virtual Hosts • Configurable Reliable Piped Logs

Page 14: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersApache HTTP Web Servero chosen from respect for

the Native American Indian tribe of Apache

o Apache is "A PAtCHy server".

Page 15: 06.m3 cms set-upwebserver

Components to Run CMS

Web ServersApache HTTP Web Server – WHY IS IT FREE?o They believe that the tools of online publishing should

be in the hands of everyone – FREE!o Software company would earn by providing supporto the protocols of the WWW remain "unowned“o Web will remain a level playing field for companies

Page 16: 06.m3 cms set-upwebserver

Components to Run CMS

Web Scripting LanguagePHP (Hypertext Preprocessor)o widely-used open source general-purpose scripting

languageo especially suited for web development and can be

embedded into HTMLo code is executed on the server

• generates HTML which is then sent to the client

Page 17: 06.m3 cms set-upwebserver

Components to Run CMS

Web Scripting LanguagePHP (Hypertext Preprocessor)

<html>

    <head><title>Example</title></head>

    <body>

       <?php

            echo "Hi, I'm a PHP script!";

        ?>

    </body>

</html>

Page 18: 06.m3 cms set-upwebserver

Components to Run CMS

Web Scripting LanguageWhat PHP can do?o Server-side scriptingo Command line scripting (needs PHP parser)o Writing desktop applicationso PHP can be used on all major operating systemso PHP's abilities includes outputting images, PDF files

Flash movies and XMLo support for a wide range of databaseso support for talking to other services

Page 19: 06.m3 cms set-upwebserver

Components to Run CMS

Web Scripting LanguageMySQL ("My Sequel")

World's most used relational database management system (RDBMS)o named after Michael Widenius daughter “My”o SQL – Standard Query Languageo Source code available under the terms of the GNU

General Public Licenseo Now own by Oracle

Page 20: 06.m3 cms set-upwebserver

Components to Run CMS

Web Scripting LanguageMySQL ("My Sequel") o Ships with no GUI tools to administer MySQL

databases or manage data

o Use by web applications such as:• TYPO3, Joomla, WordPress, phpBB, Drupal

o Use by company such as:• Wikipedia, Google (not for searches), Facebook, and Twitter

Page 21: 06.m3 cms set-upwebserver

Components to Run CMS

Web Scripting LanguageContent management system (CMS)

Allows publishing, editing, modifying content and site maintenance from a central page.o provides a collection of procedures to manage

workflow in a collaborative environment.o procedures can be manual or computer-based.