Wordpress now working on OpenVMS
Posted: Thu Jul 21, 2005 12:08 am
I've now installed Wordpress (v1.5.1.3 ?Strayhorn?) on my VAMP server.
It was *nearly* painless, with just 2 issues.
(i) I needed to upgrade my MySQL server to v4.1.12 (from v4.1.8) otherwise it choked on some Group By clauses.
(ii) I had to edit one file <b>classes.php</b> as follows,
<i>
************
File WEBROOT:[WORDPRESS.WP-INCLUDES]classes.php;2
501 $where .= " AND (post_status = 'static')";
502 } elseif ($this->is_single) {
503 $where .= " AND (post_status != 'static')";
504 } else {
505 $where .= " AND (post_status = 'publish'";
506
******
File WEBROOT:[WORDPRESS.WP-INCLUDES]classes.php;1
501 $where .= ' AND (post_status = "static")';
502 } elseif ($this->is_single) {
503 $where .= ' AND (post_status != "static")';
504 } else {
505 $where .= ' AND (post_status = "publish"';
506
************
</i>
The quotes being reversed with double quotes seems to affect the PHP parser on VMS, but not on either Linux or Windows.
I intend on feeding this last discovery back to the Wordpress developers.
I'm going to make the blog public soon so watch this space.
It was *nearly* painless, with just 2 issues.
(i) I needed to upgrade my MySQL server to v4.1.12 (from v4.1.8) otherwise it choked on some Group By clauses.
(ii) I had to edit one file <b>classes.php</b> as follows,
<i>
************
File WEBROOT:[WORDPRESS.WP-INCLUDES]classes.php;2
501 $where .= " AND (post_status = 'static')";
502 } elseif ($this->is_single) {
503 $where .= " AND (post_status != 'static')";
504 } else {
505 $where .= " AND (post_status = 'publish'";
506
******
File WEBROOT:[WORDPRESS.WP-INCLUDES]classes.php;1
501 $where .= ' AND (post_status = "static")';
502 } elseif ($this->is_single) {
503 $where .= ' AND (post_status != "static")';
504 } else {
505 $where .= ' AND (post_status = "publish"';
506
************
</i>
The quotes being reversed with double quotes seems to affect the PHP parser on VMS, but not on either Linux or Windows.
I intend on feeding this last discovery back to the Wordpress developers.
I'm going to make the blog public soon so watch this space.