
I'm attempting to upgrade phpMyAdmin on one of my domains. However, I get the message:
This script cannot be installed, as this virtual server does not meet its requirements : Could not work out exact PHP version
This script cannot be installed, as it requires PHP version 5.
I'm running Ubuntu 10.04 LTS with PHP 5.3.2 in Apache 2.2.14 using fcgi. Please advise.
Status:
Closed (fixed)
Comments
Submitted by andreychek on Thu, 06/21/2012 - 10:15 Comment #1
Howdy -- I've seen errors like that when the DocumentRoot had been changed from the default.
Does this particular Virtual Server have an unusual setup of some kind? A non-default DocumentRoot perhaps?
Also, what kind of Virtual Server is it -- top-level, a Sub-Server, a Sub-Domain, or an Alias Server?
DocumentRoot has been changed from the default. However, the change was made through a standard Virtualmin setting as found in System Settings -> Server Templates -> Default Settings -> Apache website -> "Users' website subdirectory to create". All my Virtual Servers use 'www' instead of 'public_html'. If it's broken because of this change, then that looks like a bug to me.
This is a top-level Virtual Server. However, I don't believe I've found that to make a difference.
Submitted by JamieCameron on Thu, 06/21/2012 - 21:13 Comment #3
What PHP execution mode is set for this domain? You can see this at Server Configuration -> Website Options.
Also, if you SSH in as root and run :
virtualmin validate-domains --domain yourdomain.com --all-features
what does it output?
PHP execution mode is ... nothing. Neither 'CGI Wrapper' or 'FCGId' is checked. That's rather odd.
root@montgomery:~# virtualmin validate-domains --domain ssl.montgomery.al --all-features
ssl.montgomery.al
All features OK
root@montgomery:~#
Once I fixed the PHP execution mode, the script upgrade worked fine. All good hear.
However, there may be value in updating Virtualmin to detect such things on script upgrades and then fix or report problems.
Closing ticket.
Submitted by JamieCameron on Fri, 06/22/2012 - 22:13 Comment #6
I would be interested to see what was in the Apache <Virtualhost> for the domain before you fixed it ..
Sorry, Jamie. I wouldn't be comfortable with posting that config. However, I did compare the current file with a backup. The only thing that changed was whitespace.