So I wanted to play with some Linux-only PHP performance tools and installed Ubuntu Server 10.10 in VirtualBox (for the record I have little clue about Linux, never used it extensively).
Turned out Ubuntu (Debian) has WordPress package that does some things differently then I am used to.
I was especially puzzled with this instead of usual wp-config.php
:
$debian_server = preg_replace('/:.*/', "", $_SERVER['HTTP_HOST']);
$debian_server = preg_replace("/[^a-zA-Z0-9.\-]/", "", $debian_server);
$debian_file="/etc/wordpress/config-".strtolower($debian_server).'.php';
if (!file_exists($debian_file)) {
header("HTTP/1.0 404 Not Found");
echo "<b>$debian_file</b> could not be found. The file is either not readable by this process or does not exist. <br>
Please check if <b>$debian_file</b> exists and contains the right password/username.";
exit(1);
}
require_once($debian_file);
define('ABSPATH', '/usr/share/wordpress/');
define('WP_CORE_UPDATE', false);
define('WP_ALLOW_MULTISITE', true);
require_once(ABSPATH.'wp-settings.php');
Why does it do stuff this way? Does it play well with multisite and WordPress in general? Do I understand right that I won’t be able to update WordPress core of such install, other than by updating package?