How to enable the soap.dll extension in LSMRemote using php file on Linux? - LabCollector

Search Knowledge Base by Keyword

You are here:
← All Topics
SUMMARY:

For test labs that receive a request to perform tests (jobs) on a sample from a requester (clinic, hospital, etc), our Lab Service Management (LSM) add-on is the best option. However, to make the process easier we offer our utility LSMRemote which helps both you and the requester. LSMRemote application can be integrated into the website of the requester (clinic, hospital, etc).

This Knowledge Base article, gives you a step-by-step guide on how to enable the PHP SOAP extension on Linux for LSMRemote.

1. Prerequisites

2. Installation Steps

Prerequisites:
Before proceeding with the installation and configuration of LSMRemote on Linux servers, ensure the following prerequisites are met:

1. Access to a Linux server running Apache.
2. Administrative privileges to install packages and modify server configurations.
3. Basic understanding of working with terminal commands in Linux.

Installation Steps:

1. Installing php-soap Extension:

Depending on your Linux distribution, use one of the following commands to install the php-soap extension:

– For Debian-based distributions (e.g., Ubuntu):
sudo apt install php-soap

– For Red Hat Enterprise Linux (RHEL) based distributions (e.g., CentOS, Amazon Linux, etc.):
sudo yum install php-soap

 

2. Enabling mod_headers and mod_rewrite:

– Enabling mod_rewrite:

  • In Debian-based distributions, Apache’s mod_rewrite module is typically installed but disabled by default. Enable it using the following command:
    sudo a2enmod rewrite

 

  • Restart Apache to apply the changes:
    sudo systemctl restart apache2

 

– Setting Up .htaccess:

  • Apache needs to allow the use of .htaccess files for applying rewrite rules. Open the Apache configuration file using a text editor:
    sudo vim /etc/apache2/sites-available/000-default.conf
  • Inside the `<VirtualHost *:80>` block, add the following configuration to allow .htaccess overrides:
    <Directory “/var/www/html/”>
    Options FollowSymLinks
    Require all granted
    AllowOverride All
    </Directory>
  • Save and close the file. Then, restart Apache to apply the changes:
    sudo systemctl restart apache2

 

3. Enabling mod_headers:

– Install mod_headers using the following command:
sudo a2enmod headers

– Restart Apache to enable the module:
sudo systemctl restart apache2

– Verify that mod_headers is enabled by running either of the following commands:
apachectl -M | headers

OR
apache2ctl -M | grep headers

If the output includes “headers_module (shared)“, mod_headers is successfully enabled.

Related topics: