Difference between revisions of "Apache Module for Linux"
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) m (Yvonne.milne moved page Apache Plugin for Linux to Apache Module for Linux without leaving a redirect) |
(No difference)
|
Revision as of 09:14, 25 August 2017
Under Construction
See Also
Lianja Server Manager on Linux
Installing and Configuring the Lianja Module for Apache
If you want to integrate Lianja Cloud Server in with Apache you need to install and configure the Lianja Module for Apache.
This will provide both HTTP and HTTPS (SSL) access to your Lianja Apps and the whole Lianja APaaS with integrated Login, App Center and Logout.
To install and configure the Lianja Module for Apache perform the following steps.
Ubuntu
==
1. Copy mod_lianja.so from /opt/lianja/drivers/ to /usr/lib/apache2/modules/ 2. Create file /etc/apache2/mods-available/lianja.load with following contents: LoadModule recital_module /usr/lib/apache2/modules/mod_lianja.so 3. Edit the required conf files in /etc/apache2/sites-enabled/ - Set the 'DocumentRoot' to: DocumentRoot /opt/lianja/cloudserver/tenants/public/wwwroot ('public' is the default tenancy, set an alternative tenancy as required) 4. Edit /etc/apache2/apache2.conf - Add the following access (changing tenancy as required): <Directory /opt/lianja/cloudserver/tenants/public/wwwroot/>
Options Indexes FollowSymLinks AllowOverride None Require all granted
</Directory> 5. Enable the lianja module: $ sudo a2enmod lianja 6. Restart apache $ sudo service apache2 restart
Centos
==
1. Copy mod_lianja.so from /opt/lianja/drivers/ to /etc/httpd/modules/ 2. Edit /etc/httpd/conf/httpd.conf file - Change the DocumentRoot to: DocumentRoot "/opt/lianja/cloudserver/tenants/public/wwwroot" ('public' is the default tenancy, set an alternative tenancy as required) - Add the following access (changing tenancy as required): <Directory "/opt/lianja/cloudserver/tenants/public/wwwroot">
AllowOverride None # Allow open access: Require all granted
</Directory> - Create /etc/httpd/conf.d/lianja.conf with the following line: LoadModule recital_module modules/mod_lianja.so 4. Restart apache
- systemctl restart httpd.service
Note: If running SELINUX you need to run the command below to allow HTTPD scripts and modules to connect to the network.
- /usr/sbin/setsebool -P httpd_can_network_connect 1
And to allow http and https firewall access:
- firewall-cmd --zone=public --permanent --add-service=http
- firewall-cmd --zone=public --permanent --add-service=https