-
Increased php available memory
In order to increase php performance it is advisable that you increase the php allocable memory.
Modify the
/etc/php.ini to have the folloving line (at least 128) :
memory_limit = 128M
-
Secure http enabled (required for enabling user stats web access)
The WMSMON server needs a valid host certificate stored in a HOST_CERTIFICATE_DIR (i.e.
/etc/grid-security)
Install the accepted ca packages, i.e. you can execute the following:
- $> wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo -O /etc/yum.repos.d/egi-trustanchors.repo
- $> yum install ca-policy-egi-core
Edit the
/etc/httpd/conf/httpd.conf and add the following at the end of the configuration (please modify according to your hostname where you find HOST.NAME.SOMETHING):
<Directory "/var/www/html">
Options FollowSymLinks
AllowOverride None
Allow from all
SSLRequireSSL
SSLVerifyClient require
SSLVerifyDepth 10
</Directory>
<VirtualHost *:80>
ServerName HOST.NAME.SOMETHING
DocumentRoot /var/www/html/wmsmon
RewriteEngine On
RewriteCond %{HTTPS} !=on
# RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 <https://%{server_name}/$1>[L,R,NC]
RewriteRule ^/(.*) https://HOST.NAME.SOMETHING/$1
</VirtualHost>
Edit the
/etc/httpd/conf.d/ssl.conf and:
- set the
SSLCertificateFile variable to HOST_CERTIFICATE_DIR/hostcert.pem and comment any other line that set this variable.
- set the
SSLCertificateKeyFile variable to HOST_CERTIFICATE_DIR/hostkey.pem and comment any other line that set this variable.
- set the
SSLCACertificatePath variable to the name of the directory containing the CA file (i.e.
/etc/grid-security/certificates if you installed the
ca-policy-egi-core metapackage) and comment any other line that set this variable.
- $> restart Apache
service httpd restart