For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2006 > Enable php extensions on shared server?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Enable php extensions on shared server?
Tony

2006-10-12, 6:59 pm

Hi, bona-fide php newbie here.

I have a very cheap php-enabled linux hosting account.

Unfortunately, this host does not have some extensions enabled which I
need, namely, the dom-xml and xslt extensions.

Assuming that the server admins ignore my pleas, is there a way to locally
enable these extensions for my account, with a local copy of php.ini, or
local copies of the proper *.so files, or some magic in the .htaccess file?

Or should I just look for a new host.

Thanks
Tony
Andy Hassall

2006-10-14, 6:56 pm

On Thu, 12 Oct 2006 03:00:49 GMT, Tony <toyoder@earthlinkdotnet.net> wrote:

>I have a very cheap php-enabled linux hosting account.
>
>Unfortunately, this host does not have some extensions enabled which I
>need, namely, the dom-xml and xslt extensions.
>
>Assuming that the server admins ignore my pleas, is there a way to locally
>enable these extensions for my account, with a local copy of php.ini, or
>local copies of the proper *.so files, or some magic in the .htaccess file?


Well, there's the (deprecated) dl() function to load extensions at runtime,
but your administrator should have disabled that.

And it will depend on the directory pointed to by the extension_dir option,
which you will not be able to change.

>Or should I just look for a new host.


Yes, that would be better than attempting a fairly dubious method of trying to
compile up these extensions and load them at runtime on each request. If you
get it wrong, remember you'd be loading these modules into the apache worker
process and potentially causing wider problems.

If it were your own dedicated server you could do this but it's not the sort
of thing you should be trying on a shared server.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com