Clonweb: Difference between revisions
Line 54: | Line 54: | ||
AddType application/x-httpd-php .php3 | AddType application/x-httpd-php .php3 | ||
AddType application/x-httpd-php .phtml | AddType application/x-httpd-php .phtml | ||
Edit /www/apache2.2.3/htdocs/index.html file. | |||
To start/stop apache server do following: | |||
/www/apache2.2.3/bin/apachectl start | |||
/www/apache2.2.3/bin/apachectl stop | |||
== mediawiki == | == mediawiki == |
Revision as of 15:15, 2 January 2007
clonweb is CLON group web server holding monitoring and utility tools as well as documentation. It assume to be viewed by everybody but can be modified by CLON system experts only. It is running RHEL4 in almost standard configuration, with extra 'clonweb' partition from file server mounted as '/www' where all CLON applications are held. There are some restrictions since 'clonweb' is visible from outside of JLAB firewalls. Access to 'clonweb' is opened through port 80 only, so only web browsing shell be used. Main index.html menu contains full list of applications running on 'clonweb'.
Those restrictions includes:
Following procedures were used to install an applications:
apache
su download 'httpd-2.2.3.tar.gz' from web to '/usr/local/download/' cp /usr/local/download/httpd-2.2.3.tar.gz /usr/local/src cd /usr/local/src gunzip httpd-2.2.3.tar.gz tar xvf httpd-2.2.3.tar mv httpd-2.2.3 httpd-2.2.3_clonweb cd /usr/local/src/httpd-2.2.3_clonweb ./configure --enable-module=so --prefix=/www/apache2.2.3 make make install
make sure that user set to 'apache' (should exist already):
grep "^User" /www/apache2.2.3/conf/httpd.conf emacs /www/apache2.2.3/conf/httpd.conf set User (and Group) to 'apache' if necessary
php
su download 'php-5.2.0.tar.gz' from web to '/usr/local/download/' cp /usr/local/download/php-5.2.0.tar.gz /usr/local/src cd /usr/local/src gunzip php-5.2.0.tar.gz tar xvf php-5.2.0.tar mv php-5.2.0 php-5.2.0_clonweb cd /usr/local/src/php-5.2.0_clonweb ./configure --with-mysql --with-apxs2=/www/apache2.2.3/bin/apxs make ##make install cp /usr/local/src/php-5.2.0_clonweb/libs/libphp5.so /www/apache2.2.3/modules
Fix apache config file /www/apache2.2.3/conf/httpd.conf:
DirectoryIndex index.php index.html LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .phtml
Edit /www/apache2.2.3/htdocs/index.html file.
To start/stop apache server do following:
/www/apache2.2.3/bin/apachectl start /www/apache2.2.3/bin/apachectl stop
mediawiki
Create user 'clonwiki' with private group.
Create database:
ssh root@clondb1 mysql -u root -p create database wikidb\g grant create, select, insert, update, delete, lock tables on wikidb.* to boiarino@clonweb.jlab.org identified by '*********'\g flush privileges\g \q
Download and install mediawiki:
su download 'mediawiki-1.6.8.tar.gz' from web to '/usr/local/download' cp mediawiki-1.6.8.tar.gz /www/apache2.2.3/htdocs/ cd /www/apache2.2.3/htdocs gunzip mediawiki-1.6.8.tar.gz tar xvf mediawiki-1.6.8.tar mv mediawiki-1.6.8 wiki
Installation procedure was not recorded - next time ...