Error: 'simplexml' extension is not loaded

Tagged:  

Hi all, I'm really excited to test out projectpier because I've heard so many cool things about it, but when i try to install it I get the following:

* OK: PHP version is 5.2.6
* OK: 'mysql' extension is loaded
* OK: 'gd' extension is loaded
* Error: 'simplexml' extension is not loaded
* OK: /config/config.php is writable
* OK: /public/files is writable
* OK: /cache is writable
* OK: /upload is writable

My fileserver is a Synology DS207, and when i checked their forums it said simplexml was not installed so i installed PHP-apache using ipkg but it still hasn't fixed the issue. Any help would be greatly appreciated!

Cheers

Mick

Hi Mick,

the installation script is using the PHP function extension_loaded() (http://us3.php.net/manual/en/function.extension-loaded.php) to check if the required extensions are installed and loaded or not.

One thing you can do is have a basic PHP file like

<?php
if (extension_loaded('simplexml')) {
  echo
"Why isn't ProjectPier happy then?";
} else {
  echo
"Well, maybe I need to check if it's really installed and enabled...";
}
?>

You need to check that the extension is enabled in php.ini. (some confusing info here: http://us3.php.net/manual/en/ini.php)

You can also check what's enabled with

<?php
print_r
(get_loaded_extensions());
?>

or

<?php
phpinfo
();
?>

Tim

Hi Tim,

Thanks for taking the time to help me out, its really appreciated.

I did what you suggested and here is the output.

1. I ran the getloaded extensions php:
"Well, maybe I need to check if it's really installed and enabled..."

2. I ran the php extension loaded file:

Array ( [0] => xml [1] => tokenizer [2] => session [3] => pcre [4] => SPL [5] => sockets [6] => standard [7] => Reflection [8] => posix [9] => pgsql [10] => mysqli [11] => mysql [12] => mbstring [13] => json [14] => imap [15] => iconv [16] => hash [17] => gettext [18] => gd [19] => ftp [20] => filter [21] => exif [22] => date [23] => curl [24] => ctype [25] => calendar [26] => bcmath [27] => zlib [28] => apache2handler [29] => eAccelerator )

3. I ran the phpinfo file and there was a simplexml comment in there under configuation files

- Configure Command './configure.syno' '--host=powerpc-unknown-linux' '--target=powerpc-unknown-linux' '--build=i686-pc-linux' '--with-apxs2=/usr/local/apache/bin/apxs' '--prefix=/usr/syno/php' '--with-config-file-path=/usr/syno/etc' '--with-pgsql=/usr/syno/pgsql' '--with-mysql=/usr/syno/mysql' '--with-mysqli=/usr/syno/mysql/bin/mysql_config' '--with-iconv=/usr/syno/libiconv' '--enable-mbstring' '--with-gd' '--enable-gd-native-ttf' '--with-zlib-dir=/usr/local/powerpc-linux' '--with-png-dir=/usr/local/powerpc-linux' '--with-jpeg-dir=/usr/local/powerpc-linux' '--enable-exif' '--with-imap=../imap-2004g' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--with-libexpat-dir=/usr/syno' '--disable-dom' '--disable-simplexml' '--disable-libxml' '--disable-xmlreader' '--disable-xmlwriter' '--disable-ipv6' '--disable-pdo' '--without-pdo-sqlite' '--without-sqlite' '--with-curl=/usr/syno' '--disable-cgi' '--enable-bcmath' '--with-gettext'

I think the problem may be that php is still using my old install of apache and not the php-apache service that I installed. Would you know how to change this? Is it in the php.ini file?

Thanks again

Mick