I'm helping a friend prepare his new web server to go live with a Xenforo site. You'll have to forgive my ignorance - I'm not used to Plesk (although it's been fairly straightforward thus far)!
Here are the server specs:
I can't say I've encountered the update hang myself. I did some updates (minor stuff), checked security etc. I added Java and Elasticsearch for the better search plugin. All was well.
Now we're getting a salmon bar at the top of the panel:
The logs had dependency issues.
And enabled webtatic.
All good! Or so I thought. I tried to restart apache and got:
systemctl status httpd.service had the following issue:
The line is:
I found this page relating to the matter. I tried adding the LoadServer line (ls /usr/lib64/httpd/modules | grep lib showed that only libphp5.so was present), but this gave me:
In Plesk panel, I noticed the following:
...and if I go to add components, the list of PHP versions is completely missing!
rpm -q httpd php gives:
whilst php -v gives:
I'm rather stumped here! There was obviously something wrong in the first place... I "solved" the issue of Plesk not updating, but it seems to have updated something poorly and borked mod_php (and apache).
This is getting to the limit of my knowledge, and searches aren't coming up with the answers. Can anyone suggest how I may be able to resolve this? Should I leave the LoadModule I added in httpd.conf or remove it? Should those two commands be giving two different versions of PHP?
Thanks in advance!
Here are the server specs:
- Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz (8 core(s))
- 8Gb RAM
- 250Gb SSD
- Plesk Onyx v17.0.17_build1700161028.14 os_CentOS 7
- CentOS Linux 7.3.1611 (Core)
I've updated OS, removed the centos 7 php5 (they don't have 7 as standard yet).
Installed php 7 and opcache for the server. Plesk uses its own internal PHP setup, so it will provide a menu of which one to use (server or plesk). Server is of course faster.
Updated again, then went to plesk and removed all the wordpress and other unnecessary programs like
ruby on rails and CGI support, python, webmail.
Added via plesk fail2ban, kaspersky and spamassasin, php 7.1 support, cloudflare support.
For some reason after every update, plesk will hang the installer. I had to kill the task via CLI for two upgrades, twice; after they were installed, plesk panel works fine but will time out the upgrades page even though it is done upgrading. I have to ask why on the support forum.
I can't say I've encountered the update hang myself. I did some updates (minor stuff), checked security etc. I added Java and Elasticsearch for the better search plugin. All was well.
Now we're getting a salmon bar at the top of the panel:
Failed to update Plesk. To solve this problem, you can send the update log to Plesk support. View the update logs (Feb 17, 2017). View the update logs (Feb 18, 2017). View the update logs (Feb 19, 2017). Copy the logs to your computer before you close this message. To close this message, click here.
The logs had dependency issues.
I disabled the webtatic repo, removed the offending dependencies and ran the plesk installer:Loading mirror speeds from cached hostfile
* base: mirror.sjc02.svwh.net
* epel: mirror.n5tech.com
* extras: mirror.supremebytes.com
* updates: repos.lax.quadranet.com
* webtatic: us-east.repo.webtatic.com
No package matched to remove: php71w-common
Attempt to remove 'php71w-common' to resolve conflict has failed
No package matched to remove: php-common
Attempt to remove 'php-common' to resolve conflict has failed
Attempt to remove 'php70w-common' to resolve conflict has succeeded
No package matched to remove: php71w-common
Attempt to remove 'php71w-common' to resolve conflict has failed
Attempt to remove 'php70w-common' to resolve conflict has succeeded
No package matched to remove: php71w-common
Attempt to remove 'php71w-common' to resolve conflict has failed
No package matched to remove: php-common
Attempt to remove 'php-common' to resolve conflict has failed
No package matched to remove: php71w-common
Attempt to remove 'php71w-common' to resolve conflict has failed
No package matched to remove: php-common
Attempt to remove 'php-common' to resolve conflict has failed
No package matched to remove: php71w-common
Attempt to remove 'php71w-common' to resolve conflict has failed
No package matched to remove: php-common
Attempt to remove 'php-common' to resolve conflict has failed
No package matched to remove: php71w-common
Attempt to remove 'php71w-common' to resolve conflict has failed
No package matched to remove: php-common
Attempt to remove 'php-common' to resolve conflict has failed
Exception: Failed to solve dependencies:
php71w-common conflicts with php-common-5.4.16-42.el7.x86_64
Code:
plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
All good! Or so I thought. I tried to restart apache and got:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
systemctl status httpd.service had the following issue:
AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
Invalid command 'php_value'
The line is:
php_value session.save_handler "files"
I found this page relating to the matter. I tried adding the LoadServer line (ls /usr/lib64/httpd/modules | grep lib showed that only libphp5.so was present), but this gave me:
So I assume it's now running the wrong flavour or PHP. Not being familar with Plesk, I don't know what to do about that.Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
In Plesk panel, I noticed the following:

...and if I go to add components, the list of PHP versions is completely missing!
rpm -q httpd php gives:
httpd-2.4.6-45.el7.centos.x86_64
php-5.4.16-42.el7.x86_64
whilst php -v gives:
PHP 7.1.2 (cli) (built: Feb 17 2017 13:42:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.2, Copyright (c) 1999-2017, by Zend Technologies
I'm rather stumped here! There was obviously something wrong in the first place... I "solved" the issue of Plesk not updating, but it seems to have updated something poorly and borked mod_php (and apache).
This is getting to the limit of my knowledge, and searches aren't coming up with the answers. Can anyone suggest how I may be able to resolve this? Should I leave the LoadModule I added in httpd.conf or remove it? Should those two commands be giving two different versions of PHP?
Thanks in advance!