Hi, i just upgraded mine debian 8 ispconfig server to 9, what would be the easiest way now to enable php7 for my users? Do i need to add an additonal php version or can i just switch to PHP7? Thanks
Debian 9 has PHP 7. So unless you somehow have set up some other PHP only PHP 7 is available for users.
Hi, yes but it was debian 8 before i did the dist upgrade to 9 so now i have php7 when i run php -v but every website is still using php5. I also have 2 php folders under /etc/php one php that is version 7 and one php5 folder.
Why do you ask if you already have two PHP versions running? Whether a website works with PHP 7 depends on the website. Check what is running there and look it up in the application documentation or switch it to PHP 7 and test if it works. ISPConfig can deal with multiple PHP versions, and each website can run with the PHP it needs. I guess similar system can be made without ISPConfig, but do not know how it is done.
Hi, i know the websites are working with PHP7 the question is how do i make ispconfig use php7? Every website is now using PHP5, so do i need to add in ispconfig an additional php version and point it to the php7 folder?
I would say ISPConfig is using PHP 7. Have you some indication it is not? ISPconfig uses the default PHP that comes with the operating system. If you read the htf_report.txt that you get from following https://www.howtoforge.com/community/threads/please-read-before-posting.58408/ you can see what PHP version ISPConfig uses.
i placed an php info file on the webserver and accessed it it shows Configuration File (php.ini) Path /etc/php5/cgi Loaded Configuration File /etc/php5/cgi/php.ini Scan this dir for additional .ini files /etc/php5/cgi/conf.d but php7 is under /etc/php/7.0
Sorry for the late Answer php -v shows php7 @florian030 i will check that now edit: ah heck.. Installing "fonts-lato libapache2-mod-passenger libapache2-mod-php libtidy5 libuv1 libxmlrpc-epi0 passenger php-imagick php-memcache php7.0-cgi php7.0-imap php7.0-intl php7.0-mcrypt php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl ruby ruby-rack" solved it the php info shows now php7 Thanks for the help.
Hello. I've upgraded debian 8 to debian 9 using https://www.howtoforge.com/tutorial/how-to-upgrade-debian-8-jessie-to-9-stretch/ everything works fine and without any issues - multiserver, updated debians on slaves. No issues. But I made this update mainly because of abandoning PHP 5.6 so... after upgrade there is php -v PHP 7.0.33-0+deb9u1 (cli) (built: Dec 7 2018 11:36:49) ( NTS ) but websites still using PHP 5.6 - also I noticed that checking services i see service --status-all or systemd-cgtop /system.slice/php5-fpm.service and there is no PHP 7.0 service running. I was looking for solution for few hours and tried to install missing packages (last post) but whithout success. Now i got several servers to upgrade and I want to upgrade them to Debian 9 and make PHP 7 default and than install PHP 7.1 - but this DEFAULT PHP problem makes me sick :/ I dont want to install PHP 7.0 as additional I want to change default PHP. P.s. I havent checked fail2ban yet but will post here if found any issues. Postfix, apache, mysql, ufw... are OK. Waiting for Your kindly reply.
UPDATE - installed apt-get install php7.0-fpm and service is online: /system.slice/php7.0-fpm.service but not as default. update-alternatives --config php update-alternatives --config php-cgi shows * 0 /usr/bin/php7.0 70 * 0 /usr/bin/php-cgi7.0 70
Is it really the case that upgrading Debian 8 to Debian 9 leaves PHP 5.6 in the host? I have not noticed this on my upgrades. Is this a symptom of a failed upgrade or not yet completed upgrade?
I didnt notice any problems while upgrading - and made it on 2 VPS. I did it using "safe" howtos because most of PHP-upgrade-topics suggested that You must upgrade distro. So I made it. Maybe i will try to make it on another VPS snapshot them and try to figure out whats wrong. PHP 7.0 works fine after upgrade as additional PHP.
UPDATE: PHP 7.0 version is default for server - i've checked PHPMYADMIN, Roundcube on server IP and it is on PHP 7.0. But in ISPCONFIG default is still PHP 5.6 - I want to change it.
OK, so after dist upgrade we have to edit default PHP manually in ISPCONFIG panel - You saved my day. Thank You.