Configuring the Apache Web server with Debian

This process applies if you have installed Apache under a distribution based on APT.

Apply the following steps:

  1. Disable the modules loaded by default using the following command:

    a2dismod auth_basic authn_file authz_default authz_user autoindex cgi dir env negotiation userdir
    

    Ensure that the alias, authz_host and mime modules are still enabled. To do this, use the following command:

    a2enmod  alias authz_host mime
    
  2. Create the file nlsrv.load in /etc/apache2/mods-available and insert the following content:

    In Debian 8:

    LoadModule requesthandler24_module /usr/local/[INSTALL]/nl6/lib/libnlsrvmod.so
    
  3. Create the file nlsrv.conf in /etc/apache2/mods-available using the following command:

    ln -s /usr/local/[INSTALL]/nl6/conf/apache_neolane.conf /etc/apache2/mods-available/nlsrv.conf
    
  4. Activate this module with the following command:

     a2enmod nlsrv
    

    If you are using the mod_rewrite module for Adobe Campaign pages, you need to rename the nlsrv.load and nlsrv.conf files to zz-nlsrv.load and zz-nlsrv.conf. To activate the module, run the following command:

    a2enmod zz-nlsrv
    
  5. Edit the /etc/apache2/envvars file, add the following lines:

    # Added Neolane
    if [ "$LD_LIBRARY_PATH" != "" ]; then export LD_LIBRARY_PATH="/usr/local/neolane/nl6/lib:$LD_LIBRARY_PATH"; else export LD_LIBRARY_PATH=/usr/local/neolane/nl6/lib; fi
    export USERPATH=/usr/local/neolane
    

    Save the changes.

  6. Then add Adobe Campaign users to the Apache user group and vice versa using the following type of command:

    usermod neolane -G www-data
    usermod www-data -G neolane
    
  7. Restart Apache:

    invoke-rc.d apache2 restart
    

Configuring Apache web server in RHEL

This procedure applies if you have installed and secured Apache under a RPM (RHEL, CentOS and Suse) based package.

Apply the following steps:

  1. In the httpd.conf file, activate the following Apache modules:

    alias
    authz_host
    mime
    
  2. Deactivate the following modules:

    auth_basic
    authn_file
    authz_default
    authz_user
    autoindex
    cgi
    dir
    env
    negotiation
    userdir
    

    Comment the functions linked to deactivated modules:

    DirectoryIndex
    IndexOptions
    AddIconByEncoding
    AddIconByType
    AddIcon
    DefaultIcon
    ReadmeName
    HeaderName
    IndexIgnore
    LanguagePriority
    ForceLanguagePriority
    
  3. Create an Adobe Campaign specific configuration file in the /etc/httpd/conf.d/ folder. For example CampaignApache.conf

  4. For RHEL7, add the following instructions in the file:

    LoadModule requesthandler24_module /usr/local/neolane/nl6/lib/libnlsrvmod.so
    Include /usr/local/neolane/nl6/conf/apache_neolane.conf
    
  5. For RHEL7:

    Add the /etc/systemd/system/httpd.service file with the following content:

    .include /usr/lib/systemd/system/httpd.service
    
    [Service]
    Environment=USERPATH=/usr/local/neolane LD_LIBRARY_PATH=/usr/local/neolane/nl6/lib
    

    Update the module used by systemd:

    systemctl daemon-reload
    
  6. Then add Adobe Campaign operators into the Apache operators group and vice-versa, by running the command:

    usermod -a -G neolane apache
    usermod -a -G apache neolane
    

    The group names to use depend on the way Apache is configured.

  7. Run Apache and the Adobe Campaign server.

    For RHEL7:

    systemctl start httpd
    systemctl start nlserver