Questions tagged [mod-php]
56 questions
2
votes
1 answer
Using both mod_php(Apache) and php-fpm(nginx) in one server
Is it possible to use Apache+mod_php and nginx+php-fpm in same server?
I know these two servers can NOT share same port, but is it possible to run two different PHP modules in one server?
I'm planning to use some website with Apache and some with…

ComMania
- 61
- 2
- 7
2
votes
2 answers
How to run mod_php and fastcgi side-by-side?
How would it be possible to run certain scripts (this could be in either a vhost or directory setting in the apache conf) to run as mod_php when the current server configuration is running FPM/FastCGI?
Server OS: Ubuntu-Server 11.04

Highway of Life
- 506
- 1
- 7
- 14
2
votes
1 answer
How to reduce Nginx tasks running under php-fpm?
What is Apache's mod_php equivalent in Nginx? I have Nginx with php-fpm. Everything is perfect but the problem is that it works like fcgi in Apache not mod_php. This means that a task is added for every host I add. I have 50 hosts with few static…

Googlebot
- 1,047
- 2
- 15
- 30
2
votes
2 answers
Running mod_php and suPHP same time
I recently went from Debian Lenny with 5.2.x and was able to use mod_php for any php files that were not located in /home/ and suPHP for all the php files that were located in /home/.
I did this because I needed a default php.ini (given me all…

ParoX
- 302
- 1
- 7
- 21
2
votes
1 answer
How can Django/WSGI and PHP share / on Apache?
I have a server running an established PHP site, as well as some Django apps.
Currently, a VirtualHost set up for PHP listens on port 80, and requests to certain directories are proxied to a VirtualHost set up for Django with WSGI.
I'd like to…

Mark Snidovich
- 133
- 1
- 5
2
votes
5 answers
Own server, multiple website: most secure PHP setup
We have a company server with a variety of websites. They are maintained by different people from within our company. All websites are public. The server access is limited to our company only. This is NOT a shared hosting environment.
We are…
user60129
1
vote
1 answer
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 failing when it's trying to install…

WesselV
- 121
- 4
1
vote
1 answer
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 Debian with LAMP stack and recently had to upgrade…

Latheesan
- 357
- 2
- 6
- 19
1
vote
2 answers
Need to determine how php files are being rendered in a LAMP configuration (CGI, FastCGI, or mod-php)
How do I determine how our php files are being rendered in a simple LAMP configuration?
phpinfo shows:
-- Configure Command --
--enable-force-cgi-redirect
--enable-fastcgi
-- Server API --
CGI/FastCGI
-- cgi-fcgi --
Directive Local…

Chris Williams
- 265
- 2
- 5
- 14
1
vote
1 answer
Give PHP a fake request URL and protocol with Apache2 and mod_php
I run a web server with multiple users. The machine provides Apache-based virtual hosts to a bunch of users, who can serve static content or use PHP. No other forms of server-side scripting are available.
Here's how a typical request is…

Tom Marthenal
- 2,116
- 7
- 25
- 37
1
vote
1 answer
forbid custom php config settings on apache 2.2 + mod_php server
I have a server where php is running as an apache module.
Every user on the server is restricted to his own directory with open_basedir.
I have disabled the following functions:
disable_functions =…

wlf
- 371
- 2
- 13
1
vote
0 answers
amazon ec2-medium apache requests per second terrible
EDITED -- test running from localhost now to rule out network...
i have a c1.medium using EBS. when i do an apache benchmark and i'm just printing a "hello" for the test from localhost - no database hits, it's very slow. i can repeat this test…

TheDayIsDone
- 139
- 4
1
vote
0 answers
Apache 2.2.16 with mod_php on Debian Squeeze CPU high load
Configuration:
CPU 16 cores
14 GB RAM
Apache 2.2.16
PHP 5.3.3-7 with enabled APC
Apache mpm config:
StartServers 50
MinSpareServers 50
MaxSpareServers 256
MaxClients 256
MaxRequestsPerChild …

Vitaly Baev
- 131
- 5
1
vote
2 answers
mod_wsgi and mod_php running together - possible?
Is it possible to run apache with mod_wsgi and mod_php running together to serve python and php pages?
If so where can I find info on doing this?

aburger
- 11
- 2
1
vote
1 answer
Re: How can Django/WSGI and PHP share / on Apache?
in response to: How can Django/WSGI and PHP share / on Apache?
Hello,
could you please post the complete config file from /sites-available
I am having a problem seems like rewrite engine redirects all requests to django, so static and php files are…

Bogdan
- 31
- 3