Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/hosts:
- 127.0.0.1 localhost
- 127.0.1.1 adam-desktop
- 127.0.0.1 php7.home #php7
- apache mod: proxy, proxy_fcgi enabled
- php5:
- /etc/php5/fpm/pool.d/www.conf:
- [www]
- user = www-data
- group = www-data
- listen = 127.0.0.1:9000
- listen.allowed_clients = 127.0.0.1
- php7:
- /opt/php-7.0/etc/php-fpm.d/www.conf:
- [www]
- user = www-data
- group = www-data
- listen = 127.0.0.2:8999
- listen.allowed_clients = 127.0.0.2
- ************************************************************************************************
- /etc/apache2/sites-available/localhost.conf:
- <VirtualHost *:80>
- ServerName localhost
- #ServerAlias www.localhost.com
- DocumentRoot /var/www/html/
- <Directory /var/www/html>
- #Options -Indexes +FollowSymLinks +MultiViews
- #AllowOverride All
- Require all granted
- </Directory>
- <FilesMatch \.php$>
- # 2.4.10+ can proxy to unix socket
- # SetHandler "proxy:unix:/var/run/php7-fpm.sock|fcgi://localhost/"
- # Else we can just use a tcp socket:
- SetHandler "proxy:fcgi://127.0.0.1:9000"
- </FilesMatch>
- ErrorLog /var/www/logs/001-localhost-error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog /var/www/logs/001-localhost-access.log combined
- </VirtualHost>
- ************************************************************************************************
- /etc/apache2/sites-available/php7.conf:
- <VirtualHost *:80>
- ServerName php7.home
- #ServerAlias www.php7.home
- DocumentRoot /var/www/html/php7/
- <Directory /var/www/html/php7>
- #Options -Indexes +FollowSymLinks +MultiViews
- #AllowOverride All
- Require all granted
- </Directory>
- <FilesMatch \.php$>
- # 2.4.10+ can proxy to unix socket
- # SetHandler "proxy:unix:/var/run/php5-fpm.sock|fcgi://localhost/"
- # Else we can just use a tcp socket:
- SetHandler "proxy:fcgi://127.0.0.1:9000"
- Action application/x-httpd-php "/opt/php-7.0/bin/php"
- </FilesMatch>
- ErrorLog /var/www/logs/001-localhost-error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog /var/www/logs/001-localhost-access.log combined
- </VirtualHost>
- ************************************************************************************************
- phpinfo() kimenet (5.6.15):
- PHP Version 5.6.15-1+deb.sury.org~trusty+1
- System.......................................................Linux adam-desktop 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64
- Server API...................................................FPM/FastCGI
- Virtual Directory Support....................................disabled
- Configuration File (php.ini) Path............................/etc/php5/fpm
- Loaded Configuration File..................................../etc/php5/fpm/php.ini
- Scan this dir for additional .ini files....................../etc/php5/fpm/conf.d
- stb...
- phpinfo() kimenet (7.0.0):
- PHP Version 5.6.15-1+deb.sury.org~trusty+1
- System.......................................................Linux adam-desktop 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64
- Server API...................................................FPM/FastCGI
- Virtual Directory Support....................................disabled
- Configuration File (php.ini) Path............................/etc/php5/fpm
- Loaded Configuration File..................................../etc/php5/fpm/php.ini
- Scan this dir for additional .ini files....................../etc/php5/fpm/conf.d
- stb...
- php7-fpm error log: teljes
- [26-Nov-2015 23:31:52] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
- [26-Nov-2015 23:31:52] ERROR: FPM initialization failed
- [26-Nov-2015 23:33:10] NOTICE: fpm is running, pid 5377
- [26-Nov-2015 23:33:10] NOTICE: ready to handle connections
- [26-Nov-2015 23:34:55] ERROR: unable to bind listening socket for address '127.0.0.2:8999': Address already in use (98)
- [26-Nov-2015 23:34:55] ERROR: FPM initialization failed
- [26-Nov-2015 23:35:23] ERROR: unable to bind listening socket for address '127.0.0.2:8999': Address already in use (98)
- [26-Nov-2015 23:35:23] ERROR: FPM initialization failed
- [26-Nov-2015 23:37:08] ERROR: unable to bind listening socket for address '127.0.0.2:8999': Address already in use (98)
- [26-Nov-2015 23:37:08] ERROR: FPM initialization failed
- [26-Nov-2015 23:37:52] NOTICE: fpm is running, pid 5803
- [26-Nov-2015 23:37:52] NOTICE: ready to handle connections
- [26-Nov-2015 23:47:43] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
- [26-Nov-2015 23:47:43] ERROR: FPM initialization failed
- [26-Nov-2015 23:48:11] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
- [26-Nov-2015 23:48:11] ERROR: FPM initialization failed
- [26-Nov-2015 23:49:33] ERROR: unable to bind listening socket for address '127.0.0.2:8999': Address already in use (98)
- [26-Nov-2015 23:49:33] ERROR: FPM initialization failed
- [26-Nov-2015 23:56:18] ERROR: unable to bind listening socket for address '127.0.0.2:8999': Address already in use (98)
- [26-Nov-2015 23:56:18] ERROR: FPM initialization failed
- [27-Nov-2015 00:02:41] NOTICE: fpm is running, pid 6535
- [27-Nov-2015 00:02:41] NOTICE: ready to handle connections
- [27-Nov-2015 00:04:41] NOTICE: Terminating ...
- [27-Nov-2015 00:04:41] NOTICE: exiting, bye-bye!
- [27-Nov-2015 00:04:41] WARNING: [pool www] child 5378 exited on signal 15 (SIGTERM) after 1890.219741 seconds from start
- [27-Nov-2015 00:04:41] NOTICE: [pool www] child 6842 started
- [27-Nov-2015 00:04:41] WARNING: [pool www] child 5379 exited on signal 15 (SIGTERM) after 1890.219720 seconds from start
- [27-Nov-2015 00:04:41] NOTICE: [pool www] child 6843 started
- [27-Nov-2015 00:04:41] NOTICE: Terminating ...
- [27-Nov-2015 00:04:41] NOTICE: exiting, bye-bye!
- [27-Nov-2015 00:04:41] ERROR: Unable to remove the PID file (/opt/php-7.0/var/run/php7-fpm.pid).: No such file or directory (2)
- [27-Nov-2015 00:04:41] WARNING: [pool www] child 5804 exited on signal 15 (SIGTERM) after 1608.672855 seconds from start
- [27-Nov-2015 00:04:41] NOTICE: [pool www] child 6845 started
- [27-Nov-2015 00:04:41] WARNING: [pool www] child 5805 exited on signal 15 (SIGTERM) after 1608.673323 seconds from start
- [27-Nov-2015 00:04:41] NOTICE: [pool www] child 6846 started
- [27-Nov-2015 00:04:41] NOTICE: Terminating ...
- [27-Nov-2015 00:04:41] NOTICE: exiting, bye-bye!
- [27-Nov-2015 00:04:41] ERROR: Unable to remove the PID file (/opt/php-7.0/var/run/php7-fpm.pid).: No such file or directory (2)
- apache2 error log:
- ...
- [Fri Nov 27 09:53:23.756849 2015] [mpm_event:notice] [pid 5702:tid 139649715455872] AH00489: Apache/2.4.17 (Ubuntu) configured -- resuming normal operations
- [Fri Nov 27 09:53:23.757006 2015] [core:notice] [pid 5702:tid 139649715455872] AH00094: Command line: '/usr/sbin/apache2'
- [Fri Nov 27 09:53:56.824246 2015] [mpm_event:notice] [pid 5702:tid 139649715455872] AH00491: caught SIGTERM, shutting down
- [Fri Nov 27 09:53:57.907257 2015] [mpm_event:notice] [pid 5826:tid 140694475126656] AH00489: Apache/2.4.17 (Ubuntu) configured -- resuming normal operations
- [Fri Nov 27 09:53:57.907405 2015] [core:notice] [pid 5826:tid 140694475126656] AH00094: Command line: '/usr/sbin/apache2'
- [Fri Nov 27 10:00:33.927841 2015] [mpm_event:notice] [pid 5826:tid 140694475126656] AH00491: caught SIGTERM, shutting down
- [Fri Nov 27 10:00:35.000889 2015] [mpm_event:notice] [pid 6040:tid 140592894453632] AH00489: Apache/2.4.17 (Ubuntu) configured -- resuming normal operations
- [Fri Nov 27 10:00:35.001205 2015] [core:notice] [pid 6040:tid 140592894453632] AH00094: Command line: '/usr/sbin/apache2'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement