did-vmonroig

Active Member
Feb 6, 2012
40
0
56
cPanel Access Level
Root Administrator
We currently use mod_fcgid and suEXE, with Apache 2.3 in MPM Worker. Other modules we're using are mod_qos, mod_security and mod_bwlimited. We've managed to activate APC, but of course, it does not make any good as processes are not sharing cache, and respawning every few minutes.

I think that this guide make things different, and this way APC is worth using.

Also, while cPanel continues ignoring this feature request, FastCGI Process Manager (FPM) SAPI | cPanel Feature Requests, the only known way to get MPM + FastCGI + APC is this guide, isn't it?

Could you confirm my suppositions are correct?

Thank you all.
 

MojoCreations

Active Member
Feb 14, 2012
31
0
56
cPanel Access Level
Root Administrator
I followed this guide to the 't' and am receiving errors when trying to compile FastCGI. I am using apache 2.4 with php 5.4, has anyone ran into this issue?

Any help would be greatly appreciated.


/home/cpeasyapache/src/httpd-2.4/include/http_log.h:456: note: expected 'apr_status_t' but argument is of type 'struct request_rec *'
mod_fastcgi.c:2867: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
/home/cpeasyapache/src/httpd-2.4/include/http_log.h:456: note: expected 'const struct request_rec *' but argument is of type 'char *'
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'log' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881: error: request for member 'server' in something not a structure or union
mod_fastcgi.c:2881: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
/home/cpeasyapache/src/httpd-2.4/include/http_log.h:456: note: expected 'apr_status_t' but argument is of type 'struct request_rec *'
mod_fastcgi.c:2881: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
/home/cpeasyapache/src/httpd-2.4/include/http_log.h:456: note: expected 'const struct request_rec *' but argument is of type 'char *'
make: *** [mod_fastcgi.slo] Error 1
 

goodmove

Well-Known Member
May 12, 2003
640
3
168
Hi,

I have written a script to automate Apache + PHP-FPM setup on cpanel . Everything is included in cpanel itself so this just adds a couple of hooks to get per user fpm pools etc

You can find the script here : /https://support.sysally.net/projects/cphstack
How does your script reconciliate with EasyApache? Do we need to go through the setup steps explained in your wiki every time we want to run EasyApache?
 

gnusys

Well-Known Member
Jan 18, 2013
49
10
58
cPanel Access Level
DataCenter Provider
How does your script reconciliate with EasyApache? Do we need to go through the setup steps explained in your wiki every time we want to run EasyApache?
It works fine with subsequent EasyApache..if you read the bash script..you can see it modifies only cpanel provided hooks and templates and if those are not preserved in EasyApache cPanel is the person you must blame :) . Its a simple script ..if you read and understand bash scripting .