Welcome! Log In Create A New Profile

Advanced

Re: Compiled nginx doesn't work with PHP

Maxim Dounin
November 27, 2013 04:50AM
Hello!

On Wed, Nov 27, 2013 at 02:32:15AM -0500, joshua1991 wrote:

> Hello there, I have posted this question on stackoverflow already but
> thought this place would be more appropriate.
>
> I have a properly installed (apt-get) nginx that works perfectly with html
> and php (php5-fpm) but when I download the source of the same version (I
> don't modify it for testing purposes), I configure it with "sudo ./configure
> --prefix=/etc/nginx --sbin-path=/usr/sbin --without-http_gzip_module" then
> make, install, reload and restart it. All the PHP files stop working after
> that, they are being served as binary so the browser prompts to save them,
> HTML files continue to be served properly.
>
> Any insights on where to start debugging this issue? All the configs
> remained the same from the working version, the only difference is that .php
> files don't work.

Compare "nginx -V" output for both versions, most likely they use
diferent prefixes and/or conf paths.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Compiled nginx doesn't work with PHP

joshua1991 November 27, 2013 02:32AM

Re: Compiled nginx doesn't work with PHP

Maxim Dounin November 27, 2013 04:50AM

Re: Compiled nginx doesn't work with PHP

joshua1991 November 27, 2013 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
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