My goal was to get Nginx up 'n running with PHP FPM. Short story: it's working pretty well!
Some observations. Please forgive me if I'm stating some very obvious things, I'm not a Linux packaging expert at all :)
1) I was surprised that the PHP package seems to have a dependency on Apache. I understood later that php can depend on a number of packages, including php-fpm, and that Apache is simply the first it finds. No biggie, something for the tutorials :)
2) The php-fpm package currently refers to php5.6:
Package php-fpm is a virtual package provided by:
php7.0-fpm 7.0.3-3
php5.6-fpm 5.6.18+dfsg-3
You should explicitly select one to install.
3) The default nginx config file has a php 5.6 reference for php-fpm:
4) I was a bit confused that the php-fpm service is called php7.0-fpm.service, whilst the binary is called php-fpm7.0. Although I guess that will be automatically cleared up once the 7.0 is dropped?
5) The phpmyadmin package has php 5.6 dependencies:
sudo apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dbconfig-common dbconfig-mysql javascript-common libjs-jquery
libjs-sphinxdoc libjs-underscore libmcrypt4 php-gd php-gettext php-mcrypt
php-pear php-phpseclib php-readline php-tcpdf php5-common php5-gd php5-mysql
php5.6-common php5.6-phpdbg php7.0-gd php7.0-mcrypt
First of all, thank you for the great work! I'm very much looking forward to PHP7 in the new Ubuntu LTS.
I installed the latest 16.04 server image (http:// cdimage. ubuntu. com/ubuntu- server/ daily/current/ xenial- server- amd64.iso) in a VM and added the php-ubuntu/php7.0 PPA.
My goal was to get Nginx up 'n running with PHP FPM. Short story: it's working pretty well!
Some observations. Please forgive me if I'm stating some very obvious things, I'm not a Linux packaging expert at all :)
1) I was surprised that the PHP package seems to have a dependency on Apache. I understood later that php can depend on a number of packages, including php-fpm, and that Apache is simply the first it finds. No biggie, something for the tutorials :)
2) The php-fpm package currently refers to php5.6:
Package php-fpm is a virtual package provided by:
php7.0-fpm 7.0.3-3
php5.6-fpm 5.6.18+dfsg-3
You should explicitly select one to install.
3) The default nginx config file has a php 5.6 reference for php-fpm:
/etc/nginx/ sites-available /default: 57 run/php5- fpm.sock; php/php7. 0-fpm.sock;
- # fastcgi_pass unix:/var/
+ # fastcgi_pass unix:/run/
4) I was a bit confused that the php-fpm service is called php7.0-fpm.service, whilst the binary is called php-fpm7.0. Although I guess that will be automatically cleared up once the 7.0 is dropped?
5) The phpmyadmin package has php 5.6 dependencies:
sudo apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dbconfig-common dbconfig-mysql javascript-common libjs-jquery
libjs-sphinxdoc libjs-underscore libmcrypt4 php-gd php-gettext php-mcrypt
php-pear php-phpseclib php-readline php-tcpdf php5-common php5-gd php5-mysql
php5.6-common php5.6-phpdbg php7.0-gd php7.0-mcrypt
That's it for now! :)