473,505 Members | 15,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enable php extensions on shared server?

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

Oct 12 '06 #1
4 6114

<yo*******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
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
interesting question, let's see.
mine's inexpensive too :) a piggyback on someone elses $7 a month...
on shared LAMP servers the usual way to "local copy of php.ini" is with a
directive in the .htaccess
in the folder you are using PHP, if they'll let you, like
php_value register_globals Off

php_admin_value open_basedir none
PHP4 you might be OK since its bundled but since PHP5 DOM XML functions are
moved to PECL

I just looked in phpinfo on mine and under Configure command it has these
entries
'--with-dom' '--with-dom-xslt' '--with-dom-exslt'

so I'll see if I can turn them off.....
OK the docs say:
Any directive type set with php_admin_value can not be overridden by
..htaccess or virtualhost directives.

So I'll try to see if I can do
php_admin_value open_basedir none

OK it cauesed an error when I tried to do

phpinfo();

so I gues you can't

Looks like another host is the go. Good luck.

Oct 12 '06 #2
yo*******@gmail.com wrote:
>
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,
no.
or
local copies of the proper *.so files,
If they are already on the server you may be able to use dl() to load them
at runtime. If their not there already then a sure fire way to upset your
provider is to start uploading binaries into a shared webserver.
Or should I just look for a new host.
Probably the best bet.

IIRC there were a couple of pure PHP XML parsers but last time I looked XSLT
was a bit flaky.

HTH

C.

Oct 12 '06 #3

"Colin McKinnon"
<co**********************@ntlworld.deletemeunlessU RaBot.comwrote in
message news:AB*****************@newsfe2-gui.ntli.net...
yo*******@gmail.com wrote:

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,

no.
or
local copies of the proper *.so files,
If they are already on the server you may be able to use dl() to load them
at runtime. If their not there already then a sure fire way to upset your
provider is to start uploading binaries into a shared webserver.
Thanks for that info Colin.
I see on php,net there is an expoit related to dl() and I just checked a
couple of hosts of clienst and enable_dl is on on both
and I don't seem to be able to turn it off using .htaccess
I tried
php_value enable_dl Off

and it accepted that but phpinfo() showed it still on

should I be concerned or is this a rare exploit?

Oct 12 '06 #4

Colin McKinnon wrote:
yo*******@gmail.com wrote:

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,

no.
or
local copies of the proper *.so files,
If they are already on the server you may be able to use dl() to load them
at runtime. If their not there already then a sure fire way to upset your
provider is to start uploading binaries into a shared webserver.
Thanks Colin, dl() seems to work. cha ching. I owe ya a beer.

Oct 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8195
by: George Adams | last post by:
I like the idea of compiling DSO modules for Apache. It allows me to turn on or off things we may or may not need at a given time (like mod_ssl, mod_auth_mysql, mod_auth_ldap, etc.) and also...
2
3376
by: Douglass Turner | last post by:
Hi, Please release me from my own private hell. Platform: SuSE 8.1 I'm installing python 2.3 tarball as follows: ../configure --enable-shared make
10
3034
by: Berthold Hoellmann | last post by:
Hello, When I use ./configure --with-thread --with-fpectl --with-signal-module \ --with-pymalloc --enable-shared --with-cxx=g++ make test on 2.3.3 I get
3
1369
by: Lothar Scholz | last post by:
Help, i tried to generate a dynamic library from the official Python-2.4.0.tgz on MacOSX 10.3 but when i do the ../configure --enable-shared ; make ; sudo make install or ../configure...
1
1339
by: Morten | last post by:
Hi! I'm trying to configure Frontpage Server Extensions by means of an ASP page. I've used the following code to configure it: Sub ConfigureFrontpageExtensions (FPUser, HostHeader) FPRoot =...
0
1118
by: Rahul Apte | last post by:
Hi, I want to add a preinstall check in my installer to ensure that Frontpage 2002 Server Extensions are installed on a Windows 2003 (All editions) box. Currently I am checking for the...
1
2046
by: Robert Scheer | last post by:
Hi. Is there any article that talks about the purpose of each of the Frontpage extensions folders (_vti_cnf, _vti_pvt, _vti_script, and _vti_txt)? When I create a new ASP.NET application, these...
10
2507
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
2
2781
by: Mark Harrison | last post by:
I've built a python with --enable-shared in order to support mod_python, but now I have to set LD_LIBRARY_PATH to $prefix/lib. Worse, it seems mod_python will die on some import statements, I'm...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.