Help – Apache NFS Mount

Installing Apache2 on an NFS share

Apache2 is a complex packages. If you don’t understand how to properly use it, you may have problems. Such problems are your responsibility. Please read the instructions below fully and carefully before you do any installation.

  1. install all the packages under /usr/local
  2. Mount NFS file system for /opt/apache2
  3. Move contents /usr/local/apache2 to /opt/apache2
  4. Make the following modifications in /opt/apache2/apachectl script (or create a new startup script)
    export LD_LIBRARY_PATH
  5. Make the following mods in httpd.conf
    ServerRoot "/opt/apache2"
    LoadModule slotmem_shm_module modules/
    LoadModule rewrite_module modules/
    DocumentRoot "/opt/apache2/htdocs"
    <Directory "/opt/apache2/htdocs">
    <Directory "/opt/apache2/cgi-bin">
    RewriteEngine on
    RewriteRule .* - [F]
  6. Startup Apache using the following command line options
    /opt/apache2/bin/apachectl start -d /opt/apache2/htdocs -f /opt/apache2/conf/httpd.conf