Upgrade Script

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

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?

wohlford's picture
Submitted by wohlford on Thu, 06/21/2012 - 11:21 Pro Licensee

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.

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?

wohlford's picture
Submitted by wohlford on Fri, 06/22/2012 - 15:49 Pro Licensee

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:~#
wohlford's picture
Submitted by wohlford on Fri, 06/22/2012 - 16:03 Pro Licensee

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.

I would be interested to see what was in the Apache <Virtualhost> for the domain before you fixed it ..

wohlford's picture
Submitted by wohlford on Sat, 06/23/2012 - 11:26 Pro Licensee

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.