UK PHP MySql Website Hosting

Please choose your currency: Pounds Sterling £ US Dollars $

Menu
 ·  Home
 ·  Open a Reseller Account
 ·  Domain Names
 ·  Web Hosting Accounts
 ·  Online Website Designer New
 ·  Who-is
 ·  Our Price List
 ·  Help/FAQ
 ·  News
 ·  PHP Faq
 ·  PHP/MySQL Links
 ·  Contact Us
 ·  Terms and Conditions
 
 ·  Our Blog / Offsite News
 ·  Money Back Guarantee
 

Server Solutions
 
 ·  Dedicated Servers
 


!! Domain Managment !!
 
 ·  Recover Password
 ·  Manage Global Domains
 ·  Manage UK Domains
 ·  Renew Domain
 



!! New Features !!
 
 ·  Online Website Designer
 ·  Free Webmail
 ·  E-Mail Anti Virus Scanning
 ·  MySQL4.1 Optional Support
 ·  PHP5 Optional Support
 ·  Latest PHPMyAdmin
 ·  Free Multiple FTP Accounts
 ·  Free SpamAssassin Install
 

Join Mail List
 
 

php hosting MySQL hosting
Get Firefox!

php + Secure hosting (SSL)
 

Question :
I have errors trying to install libxml so I can use --with-dom for PHP (checking for DOM in default path... not found)?
Answer :
This is an example that works for us. It may not work for you but its a start.

Before reinstalling PHP you need the libxml librarys.
wget ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.4/libxml2-2.4.28.tar.gz
tar -pxzf libxml2-2.4.28.tar.gz
cd libxml2-2.4.28
./configure --with-zlib
make
make install

Check /etc/ld.so.conf for the line /usr/lib if its there don't worry about the next step, if its not then add it.

Then run ldconfig

Then create a symlink so PHP knows where to find the librarys :-
ln -s /usr/local/include/libxml2/libxml /usr/local/include/libxml

Before we added this line we were getting the following error on the PHP cofigure :-
checking for DOM in default path... not found
configure: error: Please reinstall the libxml >= 2.2.7 distribution

A search of google found nothing so we went hunting in the configure source.

The basic check does the following, if a directory is supplied int he configure line for the DOM librarys it looks for :-
DIR/include/libxml/tree.h (DIR being the path you supplied)

If it can't find it or its not supplied it then goes to /usr and /usr/local it then runs through adding /include/libxml/tree.h to each one looking for the librarys.

The symlink basically means that :-
/usr/local/include/libxml/tree.h exists and points to /usr/local/include/libxml2/libxml/tree.h

We also had to create one more symlink
ln -s /usr/lib/libxml2.a /usr/lib/libxml.a

This had the desired effect of allowing PHP to configure and build.

Update
We just tried the above install for php4.2.2 we got the following error :-
checking for libxml version... configure: error: libxml version 2.4.2 or greater required.

Removing the directory :-

/usr/local/include/libxml

and re-running
ln -s /usr/local/include/libxml2/libxml /usr/local/include/libxml

Fixed the error


Categories


 

Questions

Installation
How to install PHP on Apache?
How do I install Apache, MySQL, PHP on Linux?
I am trying to install GD + Truetype with PHP4, but all I get is libgd was not built with TrueType font support
How did you install PHP with --mcrypt and --mhash?
When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good.
Can I compile php with mysql without having mysql sources?
How do I install PHP as a CGI?
How do I stop spammers using header injection with my PHP Scripts? (Webmasters)
How can I get PWS (Microsoft Personal Webserver) to work?
How do I install Sablotron with PHP?
Is there a Windows version of MySQL?
Is there an archive that installs mysql,php4,apache and perl on a windows system?
What do I have to do to convert PHP3 pages to PHP4 pages? Are there any compatibility problems?
I'm trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8), I get loads of errors.
Installing MySQL Perl Modules DBI
How do I install Sablotron to work with PHP on Windows?
How do I install the PostGRESQL client librarys so PHP can talk to remote PGSQL servers?
What version should I install?
make install gives an error saying i need LoadModule line in httpd.conf but its already there
Use ereg_replace to replace only the first occurence of a string instead of all?
error: conflicting types for `XML_FEATURE_UNICODE'
How do I stop spammers using header injection with my PHP Scripts? (Server Admin)
How do I install Curl?
Installing ioncobe with php5.2.3 gives the error Failed loading ioncube_loader_lin_5.2.so: ioncube_loader_lin_5.2.so: undefined symbol: zend_hash_destroy
 

Return to the main FAQ list


Registered Address: Waverley Braintree Road Cressing ESSEX CM77 8JE
Company Number:
All prices exclude VAT charged at 17.5%

Email:

Copyright Information
Copyright © 2000-2008 . All Rights Reserved

PHP Hosting