biolocal:HttpdOnCluster
From Wiki CEINGE
(Difference between revisions)
Revision as of 10:44, 4 October 2007 (edit) Gianluca (Talk | contribs) (New page: Extract the apache package and cd into the main source directory Edit the file containing all the the predefined profiles: vi config.layout Add: <pre> # My layout <Layout cluster> ...) ← Previous diff |
Current revision (12:51, 18 February 2008) (edit) (undo) Gianluca (Talk | contribs) m (Bioinfolocal:httpdOnCluster moved to biolocal:HttpdOnCluster: moving to the right namespace) |
Current revision
Extract the apache package and cd into the main source directory
Edit the file containing all the the predefined profiles:
vi config.layout
Add:
# My layout <Layout cluster> prefix: /opt/apache2 exec_prefix: ${prefix} bindir: ${exec_prefix}/bin sbindir: ${exec_prefix}/sbin libdir: ${exec_prefix}/lib libexecdir: ${exec_prefix}/libexec mandir: ${prefix}/man sysconfdir: ${prefix}/etc datadir: ${prefix}/www installbuilddir: ${datadir}/build errordir: ${datadir}/error iconsdir: ${datadir}/icons htdocsdir: ${datadir}/htdocs manualdir: ${datadir}/manual cgidir: ${datadir}/cgi-bin includedir: ${prefix}/include localstatedir: /var runtimedir: ${localstatedir}/run logfiledir: ${localstatedir}/log/apache2 proxycachedir: ${localstatedir}/cache/apache2 </Layout>
Make the compilation steps, using the cutomized configuration layout:
./configure --with-layout=cluster
make
make install
Edit the httpd.conf file and perform the following actions:
vi /opt/apache2/conf/httpd.conf
Modify:
< User daemon < Group daemon --- > User apache > Group apache
Add:
# PHP include Include conf/extra/httpd-php.conf
Add the file /opt/apache2/conf/extra/httpd-php.conf:
# # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. # LoadModule php5_module modules/libphp5.so # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php # # Uncomment the following line to allow PHP to pretty-print .phps # files as PHP source code: # #AddType application/x-httpd-php-source .phps