vlee

Well-Known Member
Oct 13, 2005
373
26
178
Spokane, Washington
cPanel Access Level
Root Administrator
I would like to know if these options below are effected by using "All PHP Options + ZendGuard" in EasyApache 4?

1. memcached ran as a daemon as its a memory cache

2. GeoIP as a PHP Pecl and using mod_geoip.


Plus I noticed that "All PHP Options + ZendGuard" in EasyApache 4 still installs OpCache and my understanding is that SuPHP does not support Opcache.

Is there a reason for OpCache being installed with SuPHP?
 

MattDees

Well-Known Member
Apr 29, 2005
416
1
243
Houston, TX
cPanel Access Level
Root Administrator
Currently we do not have support for either of those two options. There are currently plans to get better support for PECL modules in 11.54.

As for the "All PHP Options + ZendGuard" w/ opcache question. That profile installs EVERYTHING that it possible can as it tries not to presume the use case. Our hope is that when EA4 is further a long we can provide more tailored profiles for different server use cases. For example, an mpm_event & FPM profile for single site/few site systems, A mass shared hosting profile w/ suphp or itk + dso.
 

Jesse Lanning

Registered
Nov 27, 2015
2
5
3
Syracuse
cPanel Access Level
Root Administrator
I got this to work by editing the pecl script. From command line as root:
Code:
pico`which pecl`
On the last line where it says:
Code:
exec $PHP -C -n -q $INCARG -d date.....
I simply removed the -n flag and the PHP Pecl Module Installer in WHM began working again.

I am not sure if this breaks anything else so do so at your own risk.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
There's currently no update on the resolution, other than to note plans exist to address the issue in the next couple of weeks.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Any update on installing mod_geoip from EasyApache 4?
I see no update on support for Mod_GeoIP in EasyApache 4 at this time. However, there are plans to add documentation on creating RPM packages with EasyApache 4 in the future.

Thank you.
 

TravisAStrong

Registered
Mar 2, 2016
1
0
1
United States
cPanel Access Level
Root Administrator
vlee were you able to get mod_geoip installed?

Attempting to follow the install docs mentioned at
github.com/maxmind/geoip-api-mod_geoip2/blob/master/INSTALL.md

results in:

cannot open /usr/local/apache/build/config_vars.mk: No such file or directory at /usr/bin/apxs line 203
 
Last edited by a moderator:

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi,

Have you installed the old httpd-tools from EA3? EA4 APXS should be using /etc/, not /usr/local/. I'd recommend running:
yum remove httpd-tools
yum install ea-apache24-devel

This should install the EA4 version of APXS and allow this compilation.
 

Matt G

Registered
May 10, 2016
1
1
3
Canada
cPanel Access Level
Root Administrator
Hi. I wrote up a small tutorial for getting Mod_GEOIP working with Apache 2.4 and Easy Apache 4 on WHM/Cpanel if anyone is interested it's located here mattgibson.ca/compiling-mod_geoip2-use-easyapache-4-ea4-cpanel/.
 
Last edited by a moderator:
  • Like
Reactions: cPJacob

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi. I wrote up a small tutorial for getting Mod_GEOIP working with Apache 2.4 and Easy Apache 4 on WHM/Cpanel if anyone is interested it's located here mattgibson.ca/compiling-mod_geoip2-use-easyapache-4-ea4-cpanel/.
Matt, that is awesome, thank you very much for writing that up. I'm going to publicize this link a bit if you don't mind :)
 

vlee

Well-Known Member
Oct 13, 2005
373
26
178
Spokane, Washington
cPanel Access Level
Root Administrator
Hi. I wrote up a small tutorial for getting Mod_GEOIP working with Apache 2.4 and Easy Apache 4 on WHM/Cpanel if anyone is interested it's located here mattgibson.ca/compiling-mod_geoip2-use-easyapache-4-ea4-cpanel/.
Yes,

Thank you for taking the time to put this together. Will be very helpful.
 

Volt55

Member
Feb 20, 2017
17
1
3
UK
cPanel Access Level
Root Administrator
That looks like a good tutorial, thanks. I am however a bit wary about installing httpd-devel on my production server. Should I expect any issues and is there anything to look out for or backup? I'm only installing it to get apxs on there, maybe there is another way?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
That looks like a good tutorial, thanks. I am however a bit wary about installing httpd-devel on my production server. Should I expect any issues and is there anything to look out for or backup? I'm only installing it to get apxs on there, maybe there is another way?
You can install the ea-apache24-devel package:

Install httpd-devel

Note the ea-apache24-devel package isn't a replacement for the Apache web server:

Difference between httpd and httpd-devel package on CentOS 5

Thank you.