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:
-
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
-
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
-
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
-
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
-
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.
-
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
-
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:
-
In the
httpd.conf
file, activate the following Apache modules:alias authz_host mime
-
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
-
Create an Adobe Campaign specific configuration file in the
/etc/httpd/conf.d/
folder. For exampleCampaignApache.conf
-
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
-
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
-
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.
-
Run Apache and the Adobe Campaign server.
For RHEL7:
systemctl start httpd systemctl start nlserver