Unable to complete php 7 build - Mcrypt.h Not Found

whatsup

Active Member
#1
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1488275303.3.progress
Start building PHP 7.0.15 with LSAPI
Configuring PHP build (2-3 minutes)
**ERROR** Could not configure PHP build


checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
**ERROR** Could not configure PHP build

I am using the Web Admin Console in WHM - going to action - compile php 7.0.15 or 7.1.1 but always get the same error.
Libmcrypt is installed on my CENTOS 7.3 x86_64 server. Using LS 5.1.13

Could someone help suggest how to fix this, Thank you. :))

Yes I have tried to reinstall LS, used EasyApache 4 to recompile many ways - no luck.
 
Last edited:

whatsup

Active Member
#3
[root@server ~]# yum check-update

Loaded plugins: fastestmirror, universal-hooks

Loading mirror speeds from cached hostfile

* EA4: 216.38.56.98

[root@server ~]# yum install libmcrypt-devel

Loaded plugins: fastestmirror, universal-hooks

Loading mirror speeds from cached hostfile

* EA4: 216.38.56.98

No package libmcrypt-devel available.

Error: Nothing to do

[root@server ~]#

SSH usage is not my strong point - I just upgraded my VPS server to 64bit Centos. Normally I just use the WHM Litespeed plugin and everything has been working for years. Any more suggestion ?

Thank you.
 

whatsup

Active Member
#4
This method fixed it: :)

yum clean all

yum remove epel-release

yum install epel-release

yum install php-mcrypt

yum install libmcrypt-devel
 
Top