How to install WHMCS on my PC?

Posted June 14, 2018 1.4k views
ApacheUbuntu 16.04

Hello, I’m trying to install WHMCS on my PC (Ubuntu 16.04 64 bit) and always gives the following error in the config:

CURL with SSL Support
XML Unavailable

how to install this?

PHP 7.0

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hi bieelowx,

I faced the same problem today, have solved it as follows (I am using the LAMP template in the list of one-click apps):

I. Installed the source code of CURL: wget

II. Installed the tools that are necessary to compile CURL: apt-get -y install binutils make gcc

III. Unzipped the file with CURL: unzip

IV. Went to the CURL directory: cd curl-7.60.0

V. Ran these commands:
./configure –with-nghttp2 –prefix=/usr/local –with-ssl=/usr/local/ssl
sudo make install
sudo ldconfig

VI. Created a certificate authority (important, as the WHMCS error won’t go away until this and below steps are done):

mkdir /usr/local/ssl
cd /usr/local/ssl
openssl genrsa -out cert.key 2048
openssl req -x509 -new -nodes -key cert.key -sha256 -days 3650 -out cert.pem

VII. Opened the configuration file /etc/php/7.0/apache2/php.ini and edited two lines there, as follows:

curl.cainfo = /usr/local/ssl

VIII. Installed the php-xml module: apt-get -y install php-xml

IX. Restarted the Apache service: service apache2 restart

X. Rechecked the requirements on the WHMCS installation webpage, and both errors are gone.

I am sure there are easier ways to achieve this, but the trial and error resulted in the steps above, which worked for me. I invite others to provide better instructions (Googling for such didn’t yield anything so far).



Submit an Answer