Welcome! Log In Create A New Profile

Advanced

migrating a working server - apache/mod_php to nginx/fastcgi

November 24, 2013 01:57PM
I have a working server running apache (mod_php) with nginx in reverse proxy and this is working OK (I am sure it could be improved!).

I want to migrate this server to nginx with php-fastcgi (ultimately php-fpm but that would require an upgrade) but not in one go in case it all falls over and there are a few sites which still require apache for .htaccess/password issues.

This would mean running both apache mod_php (on a high port) and php-fastcgi (on a socket or another port).

Is this possible?

The reason I ask is that I have a test setup where the php-fastcgi works but the apache link doesn't - it persistently returns a 301 but I cannot see where this is being generated - on its own the apache mod_php link works (with a proxy_pass etc). I suspect it is in the apache setup but it was working OK.

So I was wondering if such a setup was possible.

nginx 1.4.4, php 5.3.10-1~lucid+2uwsgi2 and apache 2.2.14, ubuntu 10.04 LTS server. Leave caching until later.

TIA
Subject Author Posted

migrating a working server - apache/mod_php to nginx/fastcgi

Loggy November 24, 2013 01:57PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready