473,804 Members | 3,031 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 6128

<yo*******@gmai l.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.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_global s 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************ **********@ntlw orld.deletemeun lessURaBot.comw rote in
message news:AB******** *********@newsf e2-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
8222
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 allows me to compile in new versions of modules without having to rebuild Apache from scratch. Now, when I build PHP, I tend to put in a lot of things. Like:
2
3407
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
3090
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
1389
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 --enable-shared=yes ; make ; sudo make install
1
1352
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 = """C:\Program Files\Common Files\Microsoft Shared\web server extensions\50\bin\owsadm.exe""" Set WshNetwork = Server.CreateObject("WScript.Network")
0
1138
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 HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\5.0\Location registry key. This key does not get removed, if I uninstall Frontpage 2002 Server Extentions from the Windows Components. Please help.
1
2061
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 folders are automatically created. Thanks, Robert Scheer
10
2541
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. Anyway, I decided to have a go at loading them as web projects from our Win2k3 server. It gets so far and then says "The web server does not appear to have FrontPage server extensions installed".
2
2792
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 suspecting ones that need to pull in .so's. Any clues appreciated... Mark. --
0
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10564
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10320
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10308
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10073
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7609
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5513
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4288
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 we have to send another system
3
2981
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.