Presentation is loading. Please wait.

Presentation is loading. Please wait.

Apache Server. -2--2- The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.

Similar presentations


Presentation on theme: "Apache Server. -2--2- The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident."— Presentation transcript:

1 Apache Server

2 -2--2- The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident program which waits for requests and serves them on demand.

3 Apache Server -3--3- How Can Apache Contribute to ALEPH? Apache is one of the fastest HTTP servers available. It can help to reduce the ALEPH server’s work, thus improving response time. Standard modules can be added to improve the Apache and ALEPH servers’ performance.

4 Apache Server -4--4- WEB Server ALEPH ALEPH ALEPH SERVER ALEPH FRONT SERVER (4505) http 1.0 CLIENT listens to client & transfers to server parses request & calls appropriate program Includes: database ALEPH tables html pages programs icons

5 Apache Server -5--5- WEB Server ALEPH ALEPH ALEPH SERVER ALEPH FRONT SERVER (4505) CLIENT listens to client & transfers to front (cgi or fast cgi) parses request & calls appropriate program Includes: database ALEPH tables html pages programs icons APACHE SERVER http 1.1 CGI or FAST CGI (Kept in Cache)

6 Apache Server -6--6- You Can Use Apache to Load icons and pictures for better performance.

7 Apache Server -7--7- You “Must” Use Apache to Run ALEPH as a cgi ( common gateway interface ) or as a fastcgi. (ALEPH 12.3 and higher) Starting from version 14.2 - ALEPH runs only as cgi. Transfer external files (that are linked to ALEPH) of types other than plain text. Download the PDF version of Documentation (ALEPH 12.1 and higher).

8 Apache Server -8--8- Before Installation Check that Perl is installed in your system. Check that you have an ANSI C compiler (gcc is preferred) (e.g. native c of sun - not ansi) Download Apache source (tar). If you want to run fastcgi - install the fastcgi development kit. If you want to use fastcgi - download the fastcgi module source and the fastcgi devkit.

9 Apache Server -9--9- Installing and Configuring Download and install the Apache Server package. Change Apache configuration file to enable access to ALEPH. Change ALEPH files to enable communication with the Apache Server. Make links from the Apache Document root directory to ALEPH files.

10 Apache Server -10- Installing and Configuring Run the Apache server (you need root permission). Add the proper commands to run Apache upon startup (depending on the operating system).

11 Apache Server -11- Apache Installation Run the configure script, use the --enable-module=headers and --enable-module=expires options. If you want to run fastcgi - use the --activate-module=src/modules/fastcgi/libfastcgi.a option. Type make make install

12 Apache Server -12- Apache Configuration Edit the httpd.conf file. Change and/or add lines relevant to Aleph: Port 80 user aleph group aleph ServerAdmin webmaster@exlibris.co.il ServerRoot root_to_Apache_files

13 Apache Server -13- Configuration File (cont.) Set the ALEPH environment: SetEnv alephe_tab /aleph/$aleph_version/alephe/tab SetEnv ALEPH_VERSION $aleph_version SetEnv aleph_proc /aleph/$aleph_version/aleph/proc SetEnv USER user_for_$aleph_version

14 Apache Server -14- Configuration File (cont.) If you will run Aleph as fastcgi, add the lines AllowOverride None Options ExecCGI Order allow,deny Allow from all AddHandler fastcgi-script.fcgi If you will run fastcgi, add the line FastCgiConfig

15 Apache Server -15- Configuration File (cont.) If you will run Aleph as cgi or fastcgi, add the proper ScriptAlias line. ScriptAlias "/ALEPH” "/aleph/a50_5/aleph/exe/www_front_cgi/ALEPH" ScriptAlias "/S" "/aleph/a50_5/aleph/exe/www_front_cgi/S" ScriptAlias "/X" "/aleph/a50_5/aleph/exe/www_front_cgi/X" ScriptAlias "/R" "/aleph/a50_5/aleph/exe/www_front_cgi/R" ScriptAlias "/B" "/aleph/a50_5/aleph/exe/www_front_cgi/B" ScriptAlias "/V" "/aleph/a50_5/aleph/exe/www_front_cgi/V" ….

16 Apache Server -16- Last Configuration Steps Go to the DocumentRoot directory. Make soft-links to directories you want to access as detailed in the HowTo document. Prepared script from 15.1 Get root permissions and run the apache server: /bin/httpd -d

17 Apache Server -17- ALEPH Files Changes: Edit $alephe_root/www_server_defaults –Change the icon path definition. –Define the doc_path variable. –In version 14.2 and up, define setenv server_media http://ram42.exlibris.co.il:80

18 Apache Server -18- ALEPH Files Changes: Edit $alephe_root/aleph_start_505… –Define the following variables: setenv HTTPD_PORT 80 setenv httpd_bin /aleph/product/apache/bin setenv httpd_root ${ALEPH_MOUNT}/a5${VERSION_NUMB ER}_5/alephe/apache

19 Apache Server -19- Aleph_start variables: Add the line to run Apache upon startup (depends on Operating System).


Download ppt "Apache Server. -2--2- The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident."

Similar presentations


Ads by Google