Questions tagged [mod-php]

56 questions
102
votes
1 answer

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 another?
Gacek
  • 1,181
  • 2
  • 9
  • 10
33
votes
3 answers

PHP: What are the advantages of FastCGI over mod_php?

It was recently suggested to me that I use FastCGI with PHP. Now I went to the FastCGI page and read it but I don't really understand what the advantages are.
cletus
  • 9,779
  • 9
  • 36
  • 40
30
votes
3 answers

Apache vs Nginx

I have been investigating the differences between Apache and Nginx recently and am confused about which I should choose. I have done some searching but there is no definitive comparison between the two and I was wondering if someone here could give…
Sammaye
  • 679
  • 1
  • 8
  • 16
10
votes
2 answers

How long do Apache processes stay alive?

When apache forks a process for mod-php, how long does it stay alive? Does the process die as soon as the response is sent, or will it stay alive until the browser receives the full response?
Jamie Clinton
  • 203
  • 1
  • 2
  • 4
8
votes
2 answers

How can I use SELinux to confine PHP scripts?

I want to compartmentalize different PHP applications on my SL6.4 (RHEL 6.4 rebuild) web server so that they cannot access each others' data. It seems that SELinux might be able to do this, but I am not sure on the details. My question has two…
5
votes
1 answer

Apache 2.4: mod_php vs php-fpm performance

There are plenty of old benchmarks on Apache mod_php vs nginx with php-fpm However, with version 2.4, Apache can use php-fpm. Are there any sensible benchmarks comparing mod_php with php-fpm (both on Apache 2.4.x)?
OC2PS
  • 539
  • 2
  • 8
  • 21
5
votes
1 answer

What is difference of PHP handler (CGI vs FastCGI vs Mod_PHP vs suPHP )?

I understand that there are four different PHP handlers out there (AFAIK). CGI (php-cgi) FastCGI (php-fpm) Mod_PHP suPHP I need to know the pros and cons of these handler and what environments each are suited for? For example if I'm running a…
2hamed
  • 469
  • 1
  • 5
  • 23
4
votes
1 answer

mod_spdy problems and speculations

I'm trying out mod_spdy and I've run into a problem - it seems to be incompatible with AJAX requests and mod_php as in this: https://www.modspdy.com/blog/2012/04/15/using-mod_spdy-with-php/ The solution seems to be to run php scripts through…
donk
  • 163
  • 10
4
votes
4 answers

What could cause Apache's time/timezone to change intermittently?

I run a server with some PHP-powered forums (Vanilla 1.1.5a) on it, and I've recently noticed posts going out of order on them. Some digging revealed that Apache seems to be changing the current timezone back and forth from +0000 to -0500 on a…
user9598
4
votes
2 answers

Comparing Nginx+PHP-FPM to Apache-mod_php

I'm running Drupal and trying to figure out the best stack to serve it. Apache + mod_php or Nginx + PHP-FPM I used ApacheBench (ab) and Siege to test both setups and I'm seeing Apache performing better. This surprises me a little bit since I've…
Rushi
  • 181
  • 6
4
votes
3 answers

PHP: gethostbyname() suddenly no longer resolves names to IPs when run in Apache

One of our older legacy servers which gets no further updates or reconfigurations suddenly stopped resolving hostnames to IPs when PHP is executed within Apache. However, it still works fine when executed from the CLI. From the RSS caches last…
hurikhan77
  • 567
  • 3
  • 9
  • 22
3
votes
1 answer

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 using HTTPS for any site, but plan to add it for…
firex
  • 73
  • 5
2
votes
1 answer

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 often (httpd processes get 50mb in size each) and…
glennv
  • 121
  • 1
2
votes
2 answers

When does main www/mod_php5 port get updated?

I haven't been able to find any info regarding this anywhere while burying through the thousands of results I have been getting concerning php5 so here goes. We have several FreeBSD 9.2 machines and one FreeBSD 10.0 machine all with mod_php5…
Mat
  • 135
  • 1
  • 1
  • 8
2
votes
1 answer

php-fpm process running when using mod_php

I've been having some out of memory issues. Pretty much there after tuning Apache but I have noticed something odd when analyzing memory usage. php-fpm is running in the background when, as far as I am aware, it has no use when running mod_php. I've…
Chris B
  • 23
  • 1
  • 4
1
2 3 4