Questions tagged [mod-php]
The mod-php tag has no summary.
58 questions
0 votes
0 answers
41 views
How can I detect if apache has low resources or limits incoming connections?
I have some issues with an LAMP webserver, some clients experience a call timeout during peak hours. I checked the historical usage of VM resources with sar, cpu is under 30% and memory is under 60/70%...
0 votes
1 answer
606 views
Apache + PHP with mod_php No timeout
I am actually working on Apache server 2.4 with PHP 8.2 (mod_php) & debian 11.2 Recently I sent a HTTP Request with more than 100 seconds without a timeout. This request executed a large MySQL ...
0 votes
0 answers
392 views
$_POST is empty when obtaining in "ErrorDocument 404" (nginx + apache + mod_php)
I try to transfer website from old server to new, and stucked with one problem. PHP/JS code on both servers is the same, but on new server it is not working - $_POST data are empty in AJAX-request. ...
0 votes
0 answers
744 views
Apache+mod_php so slow
I have a problem setting up my Apache server with mod_php. I have a website whose index.php page is generated in ~200ms. But Apache serves it in about 1.5sec. Why is this slowdown taking place? If ...
0 votes
1 answer
9k views
mod_php is not installed on CentOS 7 with remi's php 5.4 - a bit of confusion
I have a fresh installation on CentOS 7 with httpd and following remi's wizard I installed php 5.4 as single version (I know it's old, but part of my requirements !!). My problem is that httpd cannot ...
0 votes
0 answers
133 views
How to debug strange HTTP/PHP server behavior (garbled text in some files)
This is a weird one. I'm administering a FreePBX server using their standard CentOS 7 based distribution running in a virtual machine. Every so often (usually a few months in between occurrences), ...
1 vote
1 answer
386 views
Vagrant & Puppetlabs/apache setting two MPM's
Currently I'm attempting to update my Vagrant machine with Puppet modules to PHP7, and ofcourse, with updated modules. However since updating the puppetlabs/apache module to version 3.0.0, it is ...
-1 votes
2 answers
2k views
.htaccess vs php.ini in mod_php and CGI
As far as I know, mod_php can be configured either by means of php.ini or .htaccess files while, for CGI, .htaccess files cannot be used. Does the fact that mod_php can use .htaccess files makes it ...
0 votes
1 answer
2k views
Apache 2.4 w/ PHP 7: PHP7.1-FPM and/or libapache2-mod-fastcgi
I am in the process of upgrading a web server from using the slower, resource-intensive mod_php, and all has been well, until I noticed that PHP 7.1 is running successfully using only the php7.1-fpm ...
0 votes
1 answer
492 views
Apache mod_filter + PHP (mod_php)
I'm trying to configure my server to automatically insert a tracking code (Piwik) to all pages served. I'm using both static sites and some PHP sites. I've used the following method found on Piwik ...
0 votes
0 answers
356 views
Apache strace getsockname call is slow
While load testing I am getting almost 100% CPU usage by Apache processes. To find out the root cause I attached Apache process with strace and found slow calls. 11840 0.000063 accept4(3, {...
1 vote
1 answer
2k views
Debian apache2 is not executing php scripts, instead it's showing the source
I know this is probably most discussed topic online, I did search here and stackexchange and tried various answers but none of them seems to be working for me, hence why I am posting this. I have a ...
2 votes
1 answer
1k views
httpd memory usage (Apache/2.4.16 (Amazon))
I'm running an apache server (default configuration, mod_php) on an amazon linux VM with just 1G of RAM. There are two kinds of php applications running: memory heavy ones that are executed not so ...
3 votes
1 answer
1k views
Nginx as reverse proxy in front of Apache
Current Setup Single CentOS 6 VPS with 6G memory running apache 2.2, mariadb & PHP via FastCGI. Server has mostly wordpress sites, but also has some other PHP based sites. Right now we are not ...
108 votes
2 answers
131k views
Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM
There are few different php "wrappers"(?). What are differences between them? Tried to google some, but cant seem to find informations. (mod-php is not googleable). Why might I choose one over ...