pinacoladaxb asked:
I need to install an extension for my php site, but since I am using a web hosting service (hostmonster), I do not have access to the directory that contains all the PHP extensions. I DO, however, have access to my php.ini file. How can I install this extension (dbg.so)?
I need to install an extension for my php site, but since I am using a web hosting service (hostmonster), I do not have access to the directory that contains all the PHP extensions. I DO, however, have access to my php.ini file. How can I install this extension (dbg.so)?


2 Comments to 'How to install a PHP extension if I do not have access to the extension directory on the server?'
February 10, 2010
I can tell you as a host that most reputable hosts are going to have PHP locked down to where you’re not allowed to load extensions. It is a huge security issue if you let your users load extensions, as you may have a nefarious user that attempts to load a malicious extension.
Aside from that, if your host didn’t secure PHP, you could try use dl() to load your extension.
If you get a message saying that dl() has been disabled for security reasons, or something along those lines, you may just have to ask your host if they will allow you to use dl() or if they will load the extension for you for a time period.
February 10, 2010
Hello,
You must contact their support team and have them install it for you, since you are most likely on a shared server.
Good Luck!
Sean Colicchio
Server Engineer
Host My Site
Leave a comment