Wiki

New Case Case Status
Log In

Wiki

 
Oyez 6 Setup

Last modified on 3/20/2009 10:17 AM by User.

Tags:

Oyez 6 Setup

Setup Instructions

The following steps can be used to set up Oyez 6 (Drupal) on RedHat Enterprise 5.3.

0. Update the site to the following software versions:

Apache 2.2.8 with mod_rewrite and mod_deflate enabled
MySQL 5.051a
PHP 5.2.4
PHP_GD
eAccelerator 0.9.5.3 with cache size modified to at least 32 MB
Apache Solr 1.3.0

Note: RHEL's PHP packages are older than the ones above, so a more recent Yum repository is needed. I used packages from

http://www.jasonlitka.com/yum-repository/ 

For older Fedora systems, see:

http://www.zygmund.net/blog/?p=17 

mod_rewrite & mod_deflate are both enabled in the stock Apache configuration.

1. Copy the Drupal files to the web root:

cp DRUPAL_FILES /var/www/html/

2. Configure /etc/httpd/conf/httpd.conf to allow .htaccess files to override site options:

AllowOverride All

For testing, change the Apache port number:

Listen 88

3. Download and compile the eaccelerator files from 

http://eaccelerator.net/ 

The php-devel package must be installed to build eaccelerator.

After uncompressing the package, use the following commands to build and install:

./configure
make
make install

Copy eaccelerator.ini to /etc/php.d to enable the module. Bump the cache up to 32MB in eaccelerator.ini:

eaccelerator.shm_size = "32"

Make the cache folder and set the owner:

mkdir /tmp/eaccelerator
chown -R apache /tmp/eaccelerator/

4. Download and install Apache Solr to

/var/www/solr/apache-solr-1.3.0

5. Copy the Drupal indexes to Solr:

rm -Rf /var/www/solr/apache-solr-1.3.0/example
cp -R /var/www/html/example /var/www/solr/apache-solr-1.3.0/

6. Start Solr:

cd /var/www/solr/apache-solr-1.3.0/example
nohup java -jar start.jar &

7. Update the permissions of /var/www/html:

chgrp -R oyezadmin /var/www/html
chgrp -R oyezadmin /var/www/solr
chmod -R 775 /var/www/html
chmod -R 777 /var/www/html/sites/default/files/
chmod -R 775  /var/www/solr

8. Set up a database (start the database if needed):

mysql - u root -p

create database oyez;

<Ctrl-D>

Add the following to my.cnf:

max_allowed_packet=32M

Add content to the database

cat oyez.sql.dump | mysql -u root -p oyez

9. Start the httpd server:

/etc/init.d/httpd start

10. Add the following to /etc/crontab:

0,30 * * * * root /usr/bin/wget –O - -q –t 1 <site>/cron.php > /dev/null

11. Add the following to /etc/rc.local:

cd /var/www/solr/apache-solr-1.3.0/example/
nohup java -jar start.jar &

12. Verify that the httpd and mysqld services launch on boot.

Open Questions

 

5. Set up instructions for starting the services on reboot (cjkarr todo)