Hi i'm still testing this, so i can redo almost everthing... i made a website for a customer. put the adress in my browser and could see that greetings page. i than installed Wordpress there, removed the index.html and reloaded the page. Guess what happened: 502 Bad gateway... the error.log of that domain says: 2014/07/23 13:55:40 [crit] 5266#0: *700 connect() to unix:/var/lib/php5-fpm/web1.sock failed (2: No such file or directory) while connecting to upstream, client: 91.66.235.207, server: siegfried.de, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web1.sock:", host: "siegfried.de" now whats wrong now ?
service php5-fpm restart stop: Unknown instance: php5-fpm start/running, process 16132 /var/log(php5-fpm.log says notice: configuration file /etc/php5/fpm/php-fpm.conf terst is succsessful ps aux | grep php show me 6 instances of php-fpm, pool apps, pool apps, pool www, pool www, pool ispconfig and pool ispconfig
no pool web1, and no web1.sock... does this mean there will be a pool and a .sock for every website running?
Yes.as every website is separated from other websites for security reasons. so each site ahs its own linux user and under this user, php-fpm is running. See here for debug instructions: http://www.howtoforge.com/forums/showthread.php?t=58408 especially the last chapter.
typical error message: 2014/07/23 13:55:40 [crit] 5266#0: *700 connect() to unix:/var/lib/php5-fpm/web1.sock failed (2: No such file or directory) while connecting to upstream, client: 91.66.235.207, server: siegfried.de, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web1.sock:", host: "siegfried.de" i installed it with nginx. System is Ubuntu 14.04 output of grep: root 7647 0.0 0.0 15800 900 pts/6 S+ 09:05 0:00 grep --color=auto php ispapps 32072 0.0 0.0 485504 1732 ? S Jul23 0:00 php-fpm: pool apps ispapps 32073 0.0 0.0 485504 1732 ? S Jul23 0:00 php-fpm: pool apps www-data 32074 0.0 0.0 485324 1560 ? S Jul23 0:00 php-fpm: pool www www-data 32075 0.0 0.0 485324 1560 ? S Jul23 0:00 php-fpm: pool www ispconf+ 32076 0.0 0.2 491456 16388 ? S Jul23 0:07 php-fpm: pool ispconfig ispconf+ 32077 0.0 0.1 488556 14904 ? S Jul23 0:07 php-fpm: pool ispconfig
If you like to find out the reasn, then please follow the debug instrctions I posted above and create a new website in debug mode.
Hi changed the logging to "debug". output of /usr/local/ispconfig/server/server.sh is ...set lock:... ... remove lock:... finished. ran the htf_report, file attached last lines of /var/www/domain.tld/log/error.log attached
Then you either did not disable the cronjob first or you did not add a new website in ispconfig before you run the server.sh script.
sorry - made a new website. Output of htf_report: root@h2323416:/var/www/siegfried.de/log# /usr/local/ispconfig/server/server.sh 24.07.2014-09:07 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 24.07.2014-09:07 - DEBUG - Found 1 changes, starting update process. 24.07.2014-09:07 - DEBUG - Calling function 'ssl' from plugin 'nginx_plugin' raised by event 'web_domain_insert'. 24.07.2014-09:07 - DEBUG - Calling function 'insert' from plugin 'nginx_plugin' raised by event 'web_domain_insert'. 24.07.2014-09:07 - DEBUG - Adding the user: web7 24.07.2014-09:07 - DEBUG - Creating symlink: ln -s /var/www/clients/client2/web7/ /var/www/sigiberlin.de 24.07.2014-09:07 - DEBUG - Creating symlink: ln -s /var/www/clients/client2/web7/ /var/www/clients/client2/sigiberlin.de 24.07.2014-09:07 - DEBUG - exec: chown -R web7:client2 /var/www/clients/client2/web7/web 24.07.2014-09:07 - DEBUG - exec: chown web7:client2 /var/www/clients/client2/web7/web 24.07.2014-09:07 - DEBUG - exec: usermod --groups sshusers web7 2>/dev/null 24.07.2014-09:07 - DEBUG - SSL Disabled. 24.07.2014-09:07 - DEBUG - Writing the vhost file: /etc/nginx/sites-available/sigiberlin.de.vhost 24.07.2014-09:07 - DEBUG - Creating symlink: /etc/nginx/sites-enabled/100-sigiberlin.de.vhost->/etc/nginx/sites-available/sigiberlin.de.vhost 24.07.2014-09:07 - DEBUG - Writing the PHP-FPM config file: /etc/php5/fpm/pool.d/web7.conf 24.07.2014-09:07 - DEBUG - Calling function 'restartPHP_FPM' from module 'web_module'. 24.07.2014-09:07 - DEBUG - nginx status is: running 24.07.2014-09:07 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. 24.07.2014-09:07 - DEBUG - nginx restart return value is: 0 24.07.2014-09:07 - DEBUG - nginx online status after restart is: running 24.07.2014-09:07 - DEBUG - Processed datalog_id 79 24.07.2014-09:07 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock finished. root@h2323416:/var/www/siegfried.de/log#
this looks fine so far. Do you have a php-fpm pool "web7" now? If not, does the file /etc/php5/fpm/pool.d/web7.conf exist?
/etc/php5/fpm/pool.d/web7.conf does exist, but there is no pool web7. in fact, there are only the pools i listed earlier
Ok, so ispconfig setup the pool correctly but php-fpm seems to ignore it. Maybe your php-fpm process is hanging and does not pick up changes on restart / reload. Try to stop php-fpm, then check with ps -aux if there are still any php processes. If thats the case, then kill the processes and then start php-fpm again and check if the webX pools are there. As alternative, reboot the server.