Apache WEB Server
-
Upload
henry-barlow -
Category
Documents
-
view
37 -
download
0
description
Transcript of Apache WEB Server
![Page 1: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/1.jpg)
Apache WEB Server
![Page 2: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/2.jpg)
Apache WEB Server
Ce este un server de WEB?
Serverul ce se afla in spatele World Wide Web
Cel mai popular server
Comunica cu clienti browser folosind protocolul HTTP ca: Internet Explorer Netscape Communicator Mosaic,
![Page 3: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/3.jpg)
Protocolul HTTP
Serverele WEB folosesc Hypertext Transfer Protocol pentru a comunica cu programele client
HTTP - Protocol simplu ce standardizeaza cererile si raspunsurile( intre clienti si server)
Hypertext permite referinta la alte documente stocate pe acelasi computer sau pe un alt computer aflat in orice parte a lumii
![Page 4: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/4.jpg)
De ce Apache WEB Server?
• Freeware• Usor de instalat• Usor de configurat• Versiune precompilata pentru orice fel de platforma• Foarte rapid• Ofera suport pentru autentificarea userilor • Permite implementare “multihomed” si “virtual
servers”• Securitae mai buna decat alte servere WEB
![Page 5: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/5.jpg)
Server Brand Market Share
• Apache 35.68% • NCSA 18.25% • Netscape Communications 7.25% • Netscape Commerce 6.83% • CERN 6.22% • Microsoft Internet Information Server
5.49%• WebSite 3.40% • WebSTAR 1.95% • Apache SSL US 1.43% • Purveyor 1.38% • WebSitePro 1.07%
![Page 6: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/6.jpg)
Instalare si configurare
Serverul Apache exista in forma precompilata pentru mai multe platforme.
In acest caz entru instalare se urmaresc urmatorii pasi:
1. Download httpd-architecture2. Dezarhivare sursa3. cd /usr/local/etc/httpd4. cp src/httpd-linux httpd 5. Chown root.wheel httpd6. Chmod 755 httpd
![Page 7: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/7.jpg)
Instalare si configurare
Instalare folosind codul sursa ofera posibilitatea configurarii modulelor ce se doresc a se introduce in serverul de WEB.
In acest caz entru instalare se urmaresc urmatorii pasi:
1. Editare fisier configurare, src/Configuration. 2. Rulare script Configure . 3. make.
4. Make install
![Page 8: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/8.jpg)
Instalare si Configurare
Editare httpd.conf
Este fisierul ce contine toate directivele de configurare, fisierul de unde se controleaza functionalitatea server-ului. Trebuie sa editati neaparat o parte din aceste directive pntru ca site-ul sa functioneze:
ServerAdmim User and Group ServerName ServerRoot DocumentRoot Port
![Page 9: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/9.jpg)
Startare si stopare server
httpd [-d ServerRoot] [-f ConfigurationFile] [-x] [-v] [-?]
start, stop, restart Scriptschmod 755 start stop restartstart#!/bin/sh/usr/local/etc/httpd/httpd -f /usr/local/etc/httpd/conf/httpd.confstop#!/bin/shkill 'cat /usr/local/etc/httpd/logs/httpd..pid’restart#!/bin/shkill -HUP 'cat /usr/local/etc/httpd/logs/httpd..pid'
![Page 10: Apache WEB Server](https://reader035.fdocumente.com/reader035/viewer/2022072013/56812a44550346895d8d7393/html5/thumbnails/10.jpg)
Directoare pentru useri
Utilizatorii unui sistem isi pot crea site-urile personale. Apache ofera suport prin intermediul directivei UserDir:
UserDir ”/home/user/public_html/”
Suport pentru directoarele cgi ale userilor:
<Directory /home/user/public_html/cgi-bin>AllowOverride NoneOptions ExecCGI</Directory>