LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2010, 05:29 PM   #1
dcinadr
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Apache PHP 5 simplexml is not loading


When I try to run the command simplexml_load_string() in my php file i keep getting the error:

Fatal error: Call to undefined function: simplexml_load_string() in <file> - on line <line>

I checked phpinfo() and it doesn't seem to be installed. But I am using PHP 5 and as I've heard this is installed by default. When I compiled the PHP I did not purposely exclude simplexml.

What could be my problem?
 
Old 01-08-2010, 12:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Simplexml is enabled by default, so I guess that maybe you don't have libxml2 installed, as it depends on it

Regards
 
Old 01-09-2011, 12:18 AM   #3
cparapat
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26

Rep: Reputation: 0
Hi, I have the same problem also. But I also was checking that libxml2 was install correctly, libxml2-devel, libxml2, and libxml2-python. What's other issue regarding to this problem ?
 
Old 01-09-2011, 01:29 AM   #4
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
SimpleXML support is enabled or disabled when compiling the PHP module or CGI interpreter. To make sure it is enabled, add --enable-simplexml to your ./configure command; it's only enabled by default in PHP 5.1.2 and later. Also verify you have libxml version 2.6.0 or later installed when compiling, and no --disable-libxml in your ./configure command.

You can check your libxml version in the phpinfo() output.
Nominal Animal

Last edited by Nominal Animal; 03-21-2011 at 02:01 AM.
 
Old 01-10-2011, 12:07 AM   #5
cparapat
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26

Rep: Reputation: 0
Hi,
Thanks for your help.
Actually I was check this module. And was see in phpinfo() where this module was enable. And it was installed. I guess this is a bug.
I try to update with repo from webtatic, and I am not find that issue come again.
My current version is php 5.3.5 version from webtatic repository.
I get that issue when I used php 5.1.6 (where this is default package for php comes from centos 5)
Now, I don't have issue for SimpleXML again.
Thank you, guys..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu & Apache php not loading MSCTC Linux - Server 6 07-28-2007 05:09 PM
LXer: SimpleXML processing with PHP LXer Syndicated Linux News 0 10-10-2006 10:54 PM
Apache/PHP - loading file from another server Ultrus Linux - Software 7 04-19-2006 08:56 AM
PHP not loading on Apache, help! enteal Linux - Software 3 04-19-2004 10:30 AM
Loading PHP into Apache dwpondscum Linux - Software 2 10-18-2003 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration