Actions

Modules:ModLSPHP-Dependencies

From OpenLiteSpeed Wiki

This wiki discusses how to install dependencies for mod_lsphp on Centos 7. You need to install this addition libs after installation of OpenLiteSpeed

Addition repository

To install clang version 5 you will need 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


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


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