<div dir="ltr"><div>Hello,<br><br>I had CDash 2.0.2 successfully working on Ubuntu 15.10, using a PostgreSQL database.<br><br><br>I just upgraded to Ubuntu 16.04 and now when I go to my main CDash page (http://<myhostname>.local/CDash/), the output looks like some code that was not executed and passed directly to the client instead:<br><br>the title of the page is ".$CDASH_MAININDEX_TITLE."<br><br>the page itself starts with:<br><br>'; $xml .= add_XML_value("title","CDash"); $xml .= "".$CDASH_CSS_FILE.""; $xml .= "".$CDASH_VERSION.""; $Banner = new Banner; $Banner->SetProjectId(0); $text = $Banner->GetText(); if($text !== false) { $xml .= ""; $xml .= add_XML_value("text",$text); $xml .= ""; } $xml .= "".$_SERVER['SERVER_NAME'].""; $xml .= "".date("r").""; // Check if the database is up to date if(!pdo_query("SELECT updateid FROM build2update LIMIT 1") ) { $xml .= "1"; } $xml .= "<br>[...]<br><br>Do you know what could cause this behavior?<br><br>At this point, should I just try to switch to a more recent version of CDash, or will the effort result in the same type of error?<br><br>The following link seems to suggest that php7 is now the default on Ubuntu 16.04. Is the most recent version of CDash using php7 instead of php5?<br><a href="https://by-example.org/ubuntu-16-04-xenial-downgrade-php-7-to-php-5-6/">https://by-example.org/ubuntu-16-04-xenial-downgrade-php-7-to-php-5-6/</a><br><br><br><br>The remaining part of this message is about the different steps I tried so far to put CDash back in a working state:<br><br>One thing I noticed is that Ubuntu 16.04 does not have the php5-dev package<br>available anymore. However this package seems required when using the PostgreSQL<br>database (is the CDash wiki documentation up-to-date?).<br>ref: <a href="http://www.vtk.org/Wiki/CDash:Installation#PostgreSQL_Database">http://www.vtk.org/Wiki/CDash:Installation#PostgreSQL_Database</a><br><br>When I try to install the package php5-dev, the system does not find it but it recommends to install php5-json instead:<br><br>$ apt-get install php5-dev<br>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>Package php5-dev is not available, but is referred to by another package.<br>This may mean that the package is missing, has been obsoleted, or<br>is only available from another source<br>However the following packages replace it:<br>  php5-json<br><br>E: Package 'php5-dev' has no installation candidate<br><br><br></div><div>php5-json is already installed and provides the following files:<br>$ dpkg-query -L php5-json<br>/etc<br>/etc/php5<br>/etc/php5/mods-available<br>/etc/php5/mods-available/json.ini<br><br><br><br>If I try this other command line from the CDash/PostgreSQL section above, it fails too:<br><br>$ sudo pecl install pdo<br><br>The result is:<br>WARNING: "pecl/PDO" is deprecated in favor of "channel://<a href="http://svn.php.net/viewvc/php/php-src/trunk/ext/pdo//ext/PDO">http://svn.php.net/viewvc/php/php-src/trunk/ext/pdo//ext/PDO</a>"<br>downloading PDO-1.0.3.tgz ...<br>Starting to download PDO-1.0.3.tgz (52,613 bytes)<br>.............done: 52,613 bytes<br>12 source files, building<br>running: phpize<br>sh: 1: phpize: not found<br>ERROR: `phpize' failed<br><br><br><br>Note that phpize is part of the missing package php5-dev.<br><br><br><br>The last piece of information I can provide  is the list of currently installed packages on my server with the php keyword in it:<br><br>$  dpkg --get-selections | grep php<br>libapache2-mod-php5                deinstall<br>php-cli                        install<br>php-common                    install<br>php-pear                    install<br>php-xml                        install<br>php5-cli                    deinstall<br>php5-common                    deinstall<br>php5-curl                    deinstall<br>php5-gd                        deinstall<br>php5-json                    deinstall<br>php5-pgsql                    deinstall<br>php5-readline                    deinstall<br>php5-xsl                    deinstall<br>php7.0-cli                    install<br>php7.0-common                    install<br>php7.0-json                    install<br>php7.0-opcache                    install<br>php7.0-readline                    install<br>php7.0-xml                    install<br></div><div><br><br></div><div>Thanks in advance for your help<br></div><div><br>--<br></div>François Bertel<br></div>