I just followed this guide https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian Then I choose another PHP version, then check phpinfo. No effect, still using php5(default) Using ISPConfig 3.0.5.4p8
Try this https://www.howtoforge.com/community/threads/problem-with-multiple-php-versions.72192/page-2 if you created init.d file make sure to disable / remove it - I added instructions on 3rd page of that thread if I recall correctly.
I have already one site with php7. I changed it before I upgraded ISPConfig. Only that site works with php7, no other sites. By the way im using fastcgi not php-fpm.
Have you set ISPConfig logging level to debug and checked if there's an issue? Did it create the php5 fpm config file but did not change the vhost? Is there an .err file for that vhost after switching php version?
Edit: Problem solved. I had to uninstall systemd which I had previously installed. Thanks for your assistance. Link to .vhost: http://pastebin.com/XJtccZXb Link to .vhost.err: http://pastebin.com/F4E3jYcw Output from ispconfig.log: 28.03.2016-13:57 - WARNING - Apache did not restart after the configuration change for website mysite.com. Reverting the configuration. Saved non-working config as /etc/apache2/sites-available/mysite.com.vhost.err 28.03.2016-13:57 - WARNING - Reason for Apache restart failure: Failed to get D-Bus connection: No connection to service manager. How can I make it work with init.d instead of systemd? My server is running Debian 7.
ispconfig detects the init system automatically, no need for any reconfiguration. if systemd is not present, then the init scripts are used automatically. The lines that you posted from the log show that the init system is working nicely, the issue is just that you either added some incompatible config in the apach directives field of this website or that one of the standard apache modules from perfect server tutorial is missing and therefor apache does not understand the config so that ispconfig has to revert to the last working config. Remove the .err file ending from the file and restart apache, you will then see the error message that apache complains about on the shell.
Actually the Failed to get D-Bus connection is because it still tries to use system - you might want to check at your init system files. Did you --purge remove systemd ? Did you try reconfigureing / reinstalling $apt-get install sysvinit-core sysvinit-utils ? Check your /etc/inittab, if unsure make a backup and cp /usr/share/sysvinit/inittab /etc/inittab
Yes, I had previously installed systemd, and just left it there without thinking. But systemd doesn't work on Debian 7 (according to google). The solution was to uninstall it.