Home > centOS, Fedora 12, PHP, Zend > PHP – How to solve the problem when error shows like PHP Warning: SimpleXMLElement::__construct()

PHP – How to solve the problem when error shows like PHP Warning: SimpleXMLElement::__construct()

In CentOS 5.5 i solved this as following steps, where i needed PHP APC, and i need to make YahooBoss.php work. Basically its a url which allow to grab search, was not friendly, it does not mean i cant? I am a scientist ūüôā i can do anything. Here is for future reference:

Problem: SimpleXMLElement::__construct() /application/search/models/Search/Adapter/Web/YahooBoss.php on line 39, referer:
Prase error or whatever etc etc.

Solution:

1) I included the repository from REMI: http://blog.famillecollet.com/pages/Config-en

cd /tmp
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
cd /etc/yum.repos.d
wget http://rpms.famillecollet.com/enterprise/remi.repo

yum -y install php53.x86_64 php53-cli.x86_64 php53-common.x86_64 php53-dba.x86_64 php53-devel.x86_64 php53-mbstring.x86_64 php53-mysql.x86_64 php53-odbc.x86_64 php53-process.x86_64 php53-soap.x86_64 php53-xml.x86_64 php53-xmlrpc.x86_64
yum --enablerepo=remi install php-ZendFramework-Cache-Backend-Apc.noarch php-ZendFramework-Cache-Backend-Memcached.noarch

2) I installed the Base php53 packages from default repository, only the APC installed from REMI.

# yum list installed *php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.symnds.com
* base: mirror.rackspace.com
* epel: mirror.cogentco.com
* extras: centos.aol.com
* updates: mirror.symnds.com
Installed Packages
php.x86_64                                                                                          5.3.6-4.el5.remi                                                      installed
php-ZendFramework.noarch                                                                            1.11.9-1.el5.remi                                                     installed
php-ZendFramework-Cache-Backend-Apc.noarch                                                          1.11.9-1.el5.remi                                                     installed
php-ZendFramework-Cache-Backend-Memcached.noarch                                                    1.11.9-1.el5.remi                                                     installed
php-bcmath.x86_64                                                                                   5.3.6-4.el5.remi                                                      installed
php-cli.x86_64                                                                                      5.3.6-4.el5.remi                                                      installed
php-common.x86_64                                                                                   5.3.6-4.el5.remi                                                      installed
php-devel.x86_64                                                                                    5.3.6-4.el5.remi                                                      installed
php-pdo.x86_64                                                                                      5.3.6-4.el5.remi                                                      installed
php-pear.noarch                                                                                     1:1.4.9-6.el5                                                         installed
php-pecl-apc.x86_64                                                                                 3.1.9-1.el5.remi                                                      installed
php-pecl-memcache.x86_64                                                                            3.0.6-1.el5.remi                                                      installed
php-process.x86_64                                                                                  5.3.6-4.el5.remi                                                      installed
php-xml.x86_64

# php -m
[PHP Modules]
apc
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
json
libxml
memcache
mhash
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]

Advertisements
Categories: centOS, Fedora 12, PHP, Zend
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: