Hey guys,
So I'm having problems with php5 on apache2. Basically, instead of the server executing the php scripts, it prompts you to dl the source.
The php files in question are for my wiki (dokuwiki) which was running fine until i upgraded my solaris10 box the other night (using blastwave pkg manager). As far as I can tell, the configuration for both php and apache remained in tact and properly setup.
I know the first thing I thought was that somehow the loadmodule and AddType directives in apache's httpd.conf file must not be set properly. This is not the case as far as I can tell.
In any case, here are the directives just in case I'm mistaken.
##
LoadModule php5_module libexec/libphp5.so
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
##
And the only message that appears in my error logs:
PHP Warning: Cannot load module 'SPL' because required module 'simplexml' is not loaded in Unknown on line 0
----
Ok -- so judging from this, I'm missing a module here that's keeping SPL from starting up and running properly? But it was my understanding that php5 came reconfigured with simplexml (maybe I'm wrong?).
I had read of similar issues with simplexml being resolved by setting the following line in php.ini to off (which it is): zend.ze1_compatibility_mode = Off
And these are the modules that php5 lists as present:
[root@zone001 etc]$ php -m
[PHP Modules]
bz2
ctype
curl
dba
domxml
ftp
gd
gettext
iconv
imap
ldap
mcal
mssql
mysql
odbc
openssl
overload
pcre
pgsql
posix
readline
session
standard
tokenizer
xml
zlib
[Zend Modules]
----
I haven't come across any good documentation on how to manually configure php5 for simplexml, but I can't imagine it's too difficult. Has anyone already gone through this? Love to hear from you if you have.
Thanks!
mark
So I'm having problems with php5 on apache2. Basically, instead of the server executing the php scripts, it prompts you to dl the source.
The php files in question are for my wiki (dokuwiki) which was running fine until i upgraded my solaris10 box the other night (using blastwave pkg manager). As far as I can tell, the configuration for both php and apache remained in tact and properly setup.
I know the first thing I thought was that somehow the loadmodule and AddType directives in apache's httpd.conf file must not be set properly. This is not the case as far as I can tell.
In any case, here are the directives just in case I'm mistaken.
##
LoadModule php5_module libexec/libphp5.so
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
##
And the only message that appears in my error logs:
PHP Warning: Cannot load module 'SPL' because required module 'simplexml' is not loaded in Unknown on line 0
----
Ok -- so judging from this, I'm missing a module here that's keeping SPL from starting up and running properly? But it was my understanding that php5 came reconfigured with simplexml (maybe I'm wrong?).
I had read of similar issues with simplexml being resolved by setting the following line in php.ini to off (which it is): zend.ze1_compatibility_mode = Off
And these are the modules that php5 lists as present:
[root@zone001 etc]$ php -m
[PHP Modules]
bz2
ctype
curl
dba
domxml
ftp
gd
gettext
iconv
imap
ldap
mcal
mssql
mysql
odbc
openssl
overload
pcre
pgsql
posix
readline
session
standard
tokenizer
xml
zlib
[Zend Modules]
----
I haven't come across any good documentation on how to manually configure php5 for simplexml, but I can't imagine it's too difficult. Has anyone already gone through this? Love to hear from you if you have.
Thanks!
mark