Re: Getting PHP-FPM working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Browser:  No Input File Specified

---------------------------------------
Apache access Log 
	206.248.138.118 - - [14/May/2017:23:58:23 -0400] "GET /info HTTP/1.1" 
404 25 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 
Firefox/45.0"

---------------------------------------
Apache error log
	[Sun May 14 23:58:23.049153 2017] [proxy_fcgi:error] [pid 867:tid 
140553157863168] [client 206.248.138.118:57741] AH01071: Got error 'Unable 
to open primary script: /httpd/iliffe/i_phpinfo.php (No such file or 
directory)\n'

---------------------------------------
php-fpm log
	[14-May-2017 23:58:23] WARNING: [pool www] child 7552 said into 
stderr: "ERROR: Unable to open primary script: /httpd/iliffe/i_phpinfo.php 
(No such file or directory)"

----------------------------------------
php www pool conf file

	; Chroot to this directory at the start. This value must be defined as 
an
; absolute path. When this value is not set, chroot is not used.
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
; of its subdirectories. If the pool prefix is not set, the global prefix
; will be used instead.
; Note: chrooting is a great security feature and should be used whenever
;       possible. However, all PHP paths will be relative to the chroot
;       (error_log, sessions.save_path, ...).
; Default Value: not set
chroot = /

; Chdir to this directory at the start.
; Note: relative path can be used.
; Default Value: current directory or / when chroot
;chdir = /var/www
;chdir = /httpd/iliffe


John
===========================================

On Sunday 14 May 2017 17:55:41 Daniel wrote:
> The fpm pool, which chdir/chroot values they have? if they do, set
> chroot to "/" and comment chdir and try again, just in case.
> 
> 2017-05-14 17:42 GMT+02:00 Eric Covener <covener@xxxxxxxxx>:
> > On Sat, May 13, 2017 at 11:01 PM, John Iliffe <john.iliffe@xxxxxxxxx>
> > 
> > wrote:
> > > Sure:
> > > 
> > > ----------------------
> > > # namei -m /httpd/iliffe/i_phpinfo.php
> > > f: /httpd/iliffe/i_phpinfo.php
> > > 
> > >  dr-xr-xr-x /
> > >  drwxr-xr-x httpd
> > >  drwxr-xr-x iliffe
> > >  -rw-r--r-- i_phpinfo.php
> > > 
> > > ----------------------
> > 
> > There's something odd  about that code/logging (no parameter on the
> > open call repesenting the name!) Can you strace the FPM process and
> > see what it actually tries to open?
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux