Custombuild script Apache php-cgi with Debian 9

andych

Verified User
Joined
May 3, 2013
Messages
47
Location
New Zealand
Hi DA Support / smtalk,

It was a known issue where apache mod_php + mod_ruid2 compile has error on Debian 9, but that was like 5 months ago.

I'm wondering if this still an issue now? Because we've been using php-fpm as our 'temporary' solution rather than reloading the whole system using Debian 8.

Please advise. Thanks :eek:
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,766
Location
LT, EU
The bug is still there. I'd recommend using PHP-FPM or lsphp mode (if you run LiteSpeed webserver).
 

andych

Verified User
Joined
May 3, 2013
Messages
47
Location
New Zealand
We are currently using php-fpm but the performance different is real. And the problem is we are getting php apps incompatible issue.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,766
Location
LT, EU
Incompatibility might appear from the absence of htscanner=yes in the options.conf.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,766
Location
LT, EU
Everything what's compatible with mod_php (+mod_ruid2) should still be compatible with PHP-FPM. That's what I mean :) The only thing that might not work is php_flag/php_value in .htaccess, but you can enable them with htscanner=yes in the options.conf file of CB.
 

andych

Verified User
Joined
May 3, 2013
Messages
47
Location
New Zealand
I just tried again and it looks like now I managed to compile using mod_php on Debian 9 (no debug needed, probably this bugs has been fixed by Debian team)

However, I got this message:
Code:
root@cana:/usr/local/directadmin/custombuild# ./build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using 1.2.3.4 for your server IP
**************************************

Apache 2.4.27 and higher will not negotiate http2 with mpm_prefork. Please do not use mod_php or disable http2 in the directadmin.conf
http://www.apache.org/dist/httpd/CHANGES_2.4.27

**************************************
Restarting apache.
root@cana:/usr/local/directadmin/custombuild#
Should I ignore this message?
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,128
Location
GMT +7.00
As far as I see you addressed your questions to DA support and smtalk. In such a case no other is welcomed to post here, or not?

If you need a quicker reply from DA support you'd better open a ticket here:
https://tickets.directadmin.com/
 
Top