Welcome! Log In Create A New Profile

Advanced

Re: How to setup nginx to make php works in site subdirectories

Francis Daly
February 12, 2012 04:54PM
On Sun, Feb 12, 2012 at 03:28:03PM -0500, dimentiy wrote:

Hi there,

> I'm quite stupid... I entirly can't think... There was <? ?> short tags
> disabled, all the scripts use short tags, but only the one I tested
> locating in root directory had <?php long tag... because I write it

Congratulations on finding that that was the problem.

Now that we know the answer, is there any way it could have been found
earlier? This could help the next person who has a similar problem and
is searching the mailing list archive.

I think that

curl -i http://one.example.com/stuff/new.php

would show the "X-Powered-By: PHP" header which indicates that the file
was handled by php (even if it was just a pass-through): and copying
new.php to new.txt and trying

curl -i http://one.example.com/stuff/new.txt

would show the same content but without the PHP header line.

Maybe that would point to the php configuration as being the next place
to look.

All the best,

f
--
Francis Daly francis@daoine.org

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

How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 06:00AM

Re: How to setup nginx to make php works in site subdirectories

Joe February 12, 2012 06:12AM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 06:33AM

Re: How to setup nginx to make php works in site subdirectories

Joe February 12, 2012 07:22AM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 12:48PM

Re: How to setup nginx to make php works in site subdirectories

Francis Daly February 12, 2012 08:00AM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 01:04PM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 01:14PM

Re: How to setup nginx to make php works in site subdirectories

dimentiy February 12, 2012 03:28PM

Re: How to setup nginx to make php works in site subdirectories

Francis Daly February 12, 2012 03:12PM

Re: How to setup nginx to make php works in site subdirectories

Francis Daly February 12, 2012 04:54PM

Re: How to setup nginx to make php works in site subdirectories

Max February 12, 2012 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready