ModLSPHP Dependencies

You are here:
< Back

 

This wiki discusses how to install ModLSPHP dependencies on Centos 7: first install OpenLiteSpeed, then these additional libraries, and finally ModLSPHP itself.

Alonid Repository

To install Clang version 5 you will need the Alonid repo. You can do that this way:

cd /etc/yum.repos.d/
vi alonid.repo

Add the following to the alonid.repo file:

[alonid-llvm-5.0.0]
name=Copr repo for llvm-5.0.0 owned by alonid
baseurl=https://copr-be.cloud.fedoraproject.org/results/alonid/llvm-5.0.0/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/alonid/llvm-5.0.0/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1

City-Fan Repository

For cUrl updates you will need the City-Fan repository. Create a new file (again in /etc/yum.repos.d/) called city-fan.repo and add the following lines:

[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0

Installation

Install clang5:

yum install clang-5.0.0.x86_64

The default install path is in the /opt directory so you will need to create two symlinks:

ln -s /opt/llvm-5.0.0/bin/clang /usr/bin/clang
ln -s /opt/llvm-5.0.0/bin/clang++ /usr/bin/clang++

Update cUrl:

yum update curl.x86_64

Install some libs:

yum install libcurl-devel libwebp libjpeg libpng libXpm freetype libjpeg-devel libwebp-devel libpng-devel libXpm-devel freetype-devel libicu-devel libxml2-devel

Note – Depending on your Centos 7 version you may need to install development tools too:

yum group install "Development Tools"

Now you can install ModLSPHP