SlideShare a Scribd company logo
1 of 32
Presented by
Lonnye Bower
Fardin Khan
Chris Orona
APACHE WEB SERVER
Introduction
Note: Images courtesy of apache.org
Introduction to Apache
• Apache is a web server package that
works under Linux as well as under
other operating systems
• The name Apache comes from the
concept of extensive patching of
existing code
• The primary advantage of Apache is
that it is generally free or available at
modest costs
Installing Apache
Installing Apache From a CD-ROM
• If your CD-ROM has Apache and you
want to use RPM to install the package,
issue this command
– rpm –i apache_1_3_4.rpm
(substitute the full name of the Apache package)
Installing Apache From a Download
• Place the downloaded files in a location
that will be dedicated to the Apache
files, such as /usr/apache
• Uncompress the files using either gzip
or tar and compress
• You must edit the configuration file
– You can find more information about this in
the Readme file
Installing Apache… (con’t)
• Uncomment all the Modules in the
configuration file except
– cern_meta_module
– msql_auth_module
– dld_module
• Choose either db_auth_module or
dbm_auth_module; they should not be
used together
Installing Apache… (con’t)
• Create the configuration file for Linux by
issuing the command
– Configure
• Compile Apache by issuing the make
command
– The most common error message
encountered concerns the socket.h library,
most likely because TCP/IP is not installed
Installing Apache… (con’t)
• The result of the compilation will be a
binary file called httpd
• Copy this file into /bin or /usr/bin,
where it will reside in the path
Setting Up the Website
Setting Up the Website
• Create the home directory for the
website, we will use
/usr/www/ganesan
• Create 3 subdirectories under the site
directory
– conf
– htdocs
– logs
Setting Up the Website (con’t)
• You will find a subdirectory called conf
under the directory where you installed
Apache
– Copy 3 files (srm.conf-didst,
access.conf-dist, http.conf-
dist) from this directory into
/usr/www/ganesan/conf
– If you cannot find the 3 files, use the find
command to find them
Setting Up the Website (con’t)
• Rename the 3 files you just copied to
drop the “-dist” portion of the name
• Edit the httpd.conf file to specify
– the port number on which your web server
responds
– the user running the httpd daemon, etc…
• Specify the server name
– ServerName ganesan.com
Setting Up the Website (con’t)
• Add a line that specifies the root
directory for your website
– DocumentRoot
/usr/www/ganesan/htdocs
• Edit the srm.conf file to set up the
web home directory and any special
internal command usage
• Edit the access.conf file to set a
basic set of access permissions
Setting Up the Website (con’t)
• In the htdocs directory create an
HTML file for the server to read when it
starts
– This can be any HTML file
– The filename should be default.html
• Start the httpd daemon
– httpd –f /usr/www/ganesan/conf
Setting Up the Website (con’t)
• Test the web server by starting a
browser and specify the URL
http://127.0.0.1/
• If the system is working properly, you
will see a screen with a list of files in the
htdocs directory
Server Configuration
Server Configuration
• Make sure the ServerType directive is
set to “standalone”
• Check the Port device to make sure it is
set to the TCP/IP port to which your
Apache server listens
• Set the User directive to either the user
ID (UID) or the user name used for all
web visitors
Server Configuration (con’t)
• Set the Group directive to either the group ID
(GID) or the group name assigned to all web
users
• Modify the ServerAdmin directive to include
the e-mail address of the administrator
• Set the ServerRoot directive to the absolute
path to the directory where all Apache
resource and configuration files are stored
– /usr/apache/conf or /etc/httpd
Server Configuration (con’t)
• Set the ServerName directive to the
fully qualified domain name of your
server
Starting and Stopping Apache
Starting and Stopping Apache
• If you are running Apache as a
standalone server, you need to start
and stop Apache manually
– Start with httpd –d rootdir –f
configs
– To stop Apache use ps to detect the httpd
daemon’s PID and use the kill command
to terminate the process
A Note on Starting and Stopping
Apache
• Later versions of Apache include a
script that does the start and stop tasks
for you
Virtual Hosting
Virtual Hosts
• A virtual host is a web server that
resides on one domain but acts as if it
was on another. For example, suppose
you control ganesan.com and
cis454.com. Instead of setting up 2
servers, you can set up a single
machine that serves both domains.
• Virtual hosting saves on machinery and
allows for a lot of flexibility in setting up
web servers
Setting Up Virtual Hosting
• If your network uses a name server for
DNS, modify it so that the domain name
points to your web server for each
domain you’ll host
• Use the ifconfig command to set up
the IP address for each domain on your
server
– ifconfig eth0:1 xxx.xxx.xxx.xxx
Setting Up Virtual Hosting (con’t)
• Add the route to the network configuration
using the route command
– route add –host xxx.xxx.xxx.xxx dev eth0:1
• Edit the Apache httpd.conf file to set up virtual
hosting
– <VirtualHost www.cis454.com>
DocumentRoot /usr/www/cis454/htdocs
TransferLog
/usr/www/cis454/logs/access
ErrorLog /usr/www/cis454/logs/errors
</VirtualHost>
Setting Up Virtual Hosting (con’t)
• The previous step defines the virtual
host for cis454.com and specifies its
DocumentRoot, since each virtual host
will have different web directories
• If more than one virtual host is defined,
the entries are to be repeated for each
A Final Note
• There are many more configuration
options possible with Apache, but they
are usually used for commercial sites
that require authentication or special
handling characteristics
Key Terms
• Apache
• conf
• Server Name
• Virtual Hosting
• ifconfig
Apache Resources
• For more information on Apache go to
– www.apache.org
– www.apacheweek.com
– dev.apache.org
Thank You and Good Luck!
If you have any questions regarding
Apache and/or any part of this
presentation, please feel free to email:
Lonnye Bower at Lonnye@aol.com
Chris Orona at corona@calstatela.edu
Fardin Khan at Fardin24@aol.com

More Related Content

What's hot

Ceph Day KL - Bring Ceph to Enterprise
Ceph Day KL - Bring Ceph to EnterpriseCeph Day KL - Bring Ceph to Enterprise
Ceph Day KL - Bring Ceph to EnterpriseCeph Community
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmailAryman Gautam
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionSammy Fung
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in LinuxHameda Hurmat
 
Squid Proxy Server
Squid Proxy ServerSquid Proxy Server
Squid Proxy Server13bcs0012
 
Open Source Backup Conference 2014: Rear, by Ralf Dannert
Open Source Backup Conference 2014: Rear, by Ralf DannertOpen Source Backup Conference 2014: Rear, by Ralf Dannert
Open Source Backup Conference 2014: Rear, by Ralf DannertNETWAYS
 
Install Drupal in Ubuntu by Tushar B. Kute
Install Drupal in Ubuntu by Tushar B. KuteInstall Drupal in Ubuntu by Tushar B. Kute
Install Drupal in Ubuntu by Tushar B. KuteTushar B Kute
 
Install Wordpress in Ubuntu Linux by Tushar B. Kute
Install Wordpress in Ubuntu Linux by Tushar B. KuteInstall Wordpress in Ubuntu Linux by Tushar B. Kute
Install Wordpress in Ubuntu Linux by Tushar B. KuteTushar B Kute
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linuxnejadmand
 
Meeting 14. web server ii
Meeting 14. web server iiMeeting 14. web server ii
Meeting 14. web server iiSyaiful Ahdan
 
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformDrupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformHector Iribarne
 

What's hot (20)

Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Ceph Day KL - Bring Ceph to Enterprise
Ceph Day KL - Bring Ceph to EnterpriseCeph Day KL - Bring Ceph to Enterprise
Ceph Day KL - Bring Ceph to Enterprise
 
5. centos security
5. centos security5. centos security
5. centos security
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmail
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server Edition
 
RPM (LINUX)
RPM (LINUX)RPM (LINUX)
RPM (LINUX)
 
Modul quick debserver
Modul quick debserverModul quick debserver
Modul quick debserver
 
14 FILE Server
14 FILE Server14 FILE Server
14 FILE Server
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
 
Rhel3
Rhel3Rhel3
Rhel3
 
Squid Proxy Server
Squid Proxy ServerSquid Proxy Server
Squid Proxy Server
 
Open Source Backup Conference 2014: Rear, by Ralf Dannert
Open Source Backup Conference 2014: Rear, by Ralf DannertOpen Source Backup Conference 2014: Rear, by Ralf Dannert
Open Source Backup Conference 2014: Rear, by Ralf Dannert
 
Install Drupal in Ubuntu by Tushar B. Kute
Install Drupal in Ubuntu by Tushar B. KuteInstall Drupal in Ubuntu by Tushar B. Kute
Install Drupal in Ubuntu by Tushar B. Kute
 
Install Wordpress in Ubuntu Linux by Tushar B. Kute
Install Wordpress in Ubuntu Linux by Tushar B. KuteInstall Wordpress in Ubuntu Linux by Tushar B. Kute
Install Wordpress in Ubuntu Linux by Tushar B. Kute
 
CASPUR Tape Dispatcher
CASPUR Tape DispatcherCASPUR Tape Dispatcher
CASPUR Tape Dispatcher
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
Meeting 14. web server ii
Meeting 14. web server iiMeeting 14. web server ii
Meeting 14. web server ii
 
3. introduction of centos
3. introduction of centos3. introduction of centos
3. introduction of centos
 
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformDrupal camp South Florida 2011 - Introduction to the Aegir hosting platform
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platform
 
linux
linuxlinux
linux
 

Viewers also liked

Web Packages...Internet Marketing....Hosting
Web Packages...Internet Marketing....Hosting Web Packages...Internet Marketing....Hosting
Web Packages...Internet Marketing....Hosting webhostingguy
 
Detecting Typo-squatting Domains Mishari Almishari
Detecting Typo-squatting Domains Mishari AlmishariDetecting Typo-squatting Domains Mishari Almishari
Detecting Typo-squatting Domains Mishari Almishariwebhostingguy
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentationwebhostingguy
 
Configuring Apache Web Server for Single Sign-On with Likewise 5
Configuring Apache Web Server for Single Sign-On with Likewise 5Configuring Apache Web Server for Single Sign-On with Likewise 5
Configuring Apache Web Server for Single Sign-On with Likewise 5webhostingguy
 
Securing the Apache web server
Securing the Apache web serverSecuring the Apache web server
Securing the Apache web serverwebhostingguy
 
Single Domain Name — Hosting with Email
Single Domain Name — Hosting with EmailSingle Domain Name — Hosting with Email
Single Domain Name — Hosting with Emailwebhostingguy
 
Application Note APLX-LMW-0403: Interfacing the Apache Web ...
Application Note APLX-LMW-0403: Interfacing the Apache Web ...Application Note APLX-LMW-0403: Interfacing the Apache Web ...
Application Note APLX-LMW-0403: Interfacing the Apache Web ...webhostingguy
 

Viewers also liked (7)

Web Packages...Internet Marketing....Hosting
Web Packages...Internet Marketing....Hosting Web Packages...Internet Marketing....Hosting
Web Packages...Internet Marketing....Hosting
 
Detecting Typo-squatting Domains Mishari Almishari
Detecting Typo-squatting Domains Mishari AlmishariDetecting Typo-squatting Domains Mishari Almishari
Detecting Typo-squatting Domains Mishari Almishari
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentation
 
Configuring Apache Web Server for Single Sign-On with Likewise 5
Configuring Apache Web Server for Single Sign-On with Likewise 5Configuring Apache Web Server for Single Sign-On with Likewise 5
Configuring Apache Web Server for Single Sign-On with Likewise 5
 
Securing the Apache web server
Securing the Apache web serverSecuring the Apache web server
Securing the Apache web server
 
Single Domain Name — Hosting with Email
Single Domain Name — Hosting with EmailSingle Domain Name — Hosting with Email
Single Domain Name — Hosting with Email
 
Application Note APLX-LMW-0403: Interfacing the Apache Web ...
Application Note APLX-LMW-0403: Interfacing the Apache Web ...Application Note APLX-LMW-0403: Interfacing the Apache Web ...
Application Note APLX-LMW-0403: Interfacing the Apache Web ...
 

Similar to Apache1.ppt

Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hostingwebhostingguy
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptwebhostingguy
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configurationSubhas Kumar Ghosh
 
NGINX 101 - now with more Docker
NGINX 101 - now with more DockerNGINX 101 - now with more Docker
NGINX 101 - now with more DockerSarah Novotny
 
NGINX 101 - now with more Docker
NGINX 101 - now with more DockerNGINX 101 - now with more Docker
NGINX 101 - now with more Dockersarahnovotny
 
lamp technology
lamp technologylamp technology
lamp technologyDeepa
 
Deepa ppt about lamp technology
Deepa ppt about lamp technologyDeepa ppt about lamp technology
Deepa ppt about lamp technologyDeepa
 
ITB2019 NGINX Overview and Technical Aspects - Kevin Jones
ITB2019 NGINX Overview and Technical Aspects - Kevin JonesITB2019 NGINX Overview and Technical Aspects - Kevin Jones
ITB2019 NGINX Overview and Technical Aspects - Kevin JonesOrtus Solutions, Corp
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
Chapter 06
Chapter 06Chapter 06
Chapter 06cclay3
 
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...Nagios
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linuxVicent Selfa
 

Similar to Apache1.ppt (20)

Apache1.ppt
Apache1.pptApache1.ppt
Apache1.ppt
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
 
Apache Web Server Setup 2
Apache Web Server Setup 2Apache Web Server Setup 2
Apache Web Server Setup 2
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
 
Apache
ApacheApache
Apache
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
 
NGINX 101 - now with more Docker
NGINX 101 - now with more DockerNGINX 101 - now with more Docker
NGINX 101 - now with more Docker
 
NGINX 101 - now with more Docker
NGINX 101 - now with more DockerNGINX 101 - now with more Docker
NGINX 101 - now with more Docker
 
lamp technology
lamp technologylamp technology
lamp technology
 
Deepa ppt about lamp technology
Deepa ppt about lamp technologyDeepa ppt about lamp technology
Deepa ppt about lamp technology
 
ITB2019 NGINX Overview and Technical Aspects - Kevin Jones
ITB2019 NGINX Overview and Technical Aspects - Kevin JonesITB2019 NGINX Overview and Technical Aspects - Kevin Jones
ITB2019 NGINX Overview and Technical Aspects - Kevin Jones
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Chapter 06
Chapter 06Chapter 06
Chapter 06
 
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
 
FTP(In_Linux).pptx
FTP(In_Linux).pptxFTP(In_Linux).pptx
FTP(In_Linux).pptx
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 

More from webhostingguy

Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Frameworkwebhostingguy
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guidewebhostingguy
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3webhostingguy
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serverswebhostingguy
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidationwebhostingguy
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreementwebhostingguy
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...webhostingguy
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...webhostingguy
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructurewebhostingguy
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.pptwebhostingguy
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy webhostingguy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandiserswebhostingguy
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Productswebhostingguy
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mbwebhostingguy
 

More from webhostingguy (20)

File Upload
File UploadFile Upload
File Upload
 
Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Framework
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guide
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web servers
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidation
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreement
 
Notes8
Notes8Notes8
Notes8
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructure
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.ppt
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandisers
 
OLUG_xen.ppt
OLUG_xen.pptOLUG_xen.ppt
OLUG_xen.ppt
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Products
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mb
 
Reseller's Guide
Reseller's GuideReseller's Guide
Reseller's Guide
 

Apache1.ppt

  • 1. Presented by Lonnye Bower Fardin Khan Chris Orona APACHE WEB SERVER
  • 3. Introduction to Apache • Apache is a web server package that works under Linux as well as under other operating systems • The name Apache comes from the concept of extensive patching of existing code • The primary advantage of Apache is that it is generally free or available at modest costs
  • 5. Installing Apache From a CD-ROM • If your CD-ROM has Apache and you want to use RPM to install the package, issue this command – rpm –i apache_1_3_4.rpm (substitute the full name of the Apache package)
  • 6. Installing Apache From a Download • Place the downloaded files in a location that will be dedicated to the Apache files, such as /usr/apache • Uncompress the files using either gzip or tar and compress • You must edit the configuration file – You can find more information about this in the Readme file
  • 7. Installing Apache… (con’t) • Uncomment all the Modules in the configuration file except – cern_meta_module – msql_auth_module – dld_module • Choose either db_auth_module or dbm_auth_module; they should not be used together
  • 8. Installing Apache… (con’t) • Create the configuration file for Linux by issuing the command – Configure • Compile Apache by issuing the make command – The most common error message encountered concerns the socket.h library, most likely because TCP/IP is not installed
  • 9. Installing Apache… (con’t) • The result of the compilation will be a binary file called httpd • Copy this file into /bin or /usr/bin, where it will reside in the path
  • 10. Setting Up the Website
  • 11. Setting Up the Website • Create the home directory for the website, we will use /usr/www/ganesan • Create 3 subdirectories under the site directory – conf – htdocs – logs
  • 12. Setting Up the Website (con’t) • You will find a subdirectory called conf under the directory where you installed Apache – Copy 3 files (srm.conf-didst, access.conf-dist, http.conf- dist) from this directory into /usr/www/ganesan/conf – If you cannot find the 3 files, use the find command to find them
  • 13. Setting Up the Website (con’t) • Rename the 3 files you just copied to drop the “-dist” portion of the name • Edit the httpd.conf file to specify – the port number on which your web server responds – the user running the httpd daemon, etc… • Specify the server name – ServerName ganesan.com
  • 14. Setting Up the Website (con’t) • Add a line that specifies the root directory for your website – DocumentRoot /usr/www/ganesan/htdocs • Edit the srm.conf file to set up the web home directory and any special internal command usage • Edit the access.conf file to set a basic set of access permissions
  • 15. Setting Up the Website (con’t) • In the htdocs directory create an HTML file for the server to read when it starts – This can be any HTML file – The filename should be default.html • Start the httpd daemon – httpd –f /usr/www/ganesan/conf
  • 16. Setting Up the Website (con’t) • Test the web server by starting a browser and specify the URL http://127.0.0.1/ • If the system is working properly, you will see a screen with a list of files in the htdocs directory
  • 18. Server Configuration • Make sure the ServerType directive is set to “standalone” • Check the Port device to make sure it is set to the TCP/IP port to which your Apache server listens • Set the User directive to either the user ID (UID) or the user name used for all web visitors
  • 19. Server Configuration (con’t) • Set the Group directive to either the group ID (GID) or the group name assigned to all web users • Modify the ServerAdmin directive to include the e-mail address of the administrator • Set the ServerRoot directive to the absolute path to the directory where all Apache resource and configuration files are stored – /usr/apache/conf or /etc/httpd
  • 20. Server Configuration (con’t) • Set the ServerName directive to the fully qualified domain name of your server
  • 22. Starting and Stopping Apache • If you are running Apache as a standalone server, you need to start and stop Apache manually – Start with httpd –d rootdir –f configs – To stop Apache use ps to detect the httpd daemon’s PID and use the kill command to terminate the process
  • 23. A Note on Starting and Stopping Apache • Later versions of Apache include a script that does the start and stop tasks for you
  • 25. Virtual Hosts • A virtual host is a web server that resides on one domain but acts as if it was on another. For example, suppose you control ganesan.com and cis454.com. Instead of setting up 2 servers, you can set up a single machine that serves both domains. • Virtual hosting saves on machinery and allows for a lot of flexibility in setting up web servers
  • 26. Setting Up Virtual Hosting • If your network uses a name server for DNS, modify it so that the domain name points to your web server for each domain you’ll host • Use the ifconfig command to set up the IP address for each domain on your server – ifconfig eth0:1 xxx.xxx.xxx.xxx
  • 27. Setting Up Virtual Hosting (con’t) • Add the route to the network configuration using the route command – route add –host xxx.xxx.xxx.xxx dev eth0:1 • Edit the Apache httpd.conf file to set up virtual hosting – <VirtualHost www.cis454.com> DocumentRoot /usr/www/cis454/htdocs TransferLog /usr/www/cis454/logs/access ErrorLog /usr/www/cis454/logs/errors </VirtualHost>
  • 28. Setting Up Virtual Hosting (con’t) • The previous step defines the virtual host for cis454.com and specifies its DocumentRoot, since each virtual host will have different web directories • If more than one virtual host is defined, the entries are to be repeated for each
  • 29. A Final Note • There are many more configuration options possible with Apache, but they are usually used for commercial sites that require authentication or special handling characteristics
  • 30. Key Terms • Apache • conf • Server Name • Virtual Hosting • ifconfig
  • 31. Apache Resources • For more information on Apache go to – www.apache.org – www.apacheweek.com – dev.apache.org
  • 32. Thank You and Good Luck! If you have any questions regarding Apache and/or any part of this presentation, please feel free to email: Lonnye Bower at Lonnye@aol.com Chris Orona at corona@calstatela.edu Fardin Khan at Fardin24@aol.com

Editor's Notes

  1. As we all know, in the UNIX environment there are various flavors of this operating system. To name a few: IBM: AIX SUN: SOLARIS HP: HP-UX SILICON GRAPHICS: IRIX And there’s…………………...