How to install a PHP extension if I do not have access to the extension directory on the server?

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)?

Tags: , , , ,

2 Responses to “How to install a PHP extension if I do not have access to the extension directory on the server?”

  1. voltar86 says:

    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. http://us3.php.net/manual/en/function.dl.php

    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.

  2. Sean C says:

    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
    http://www.hostmysite.com/?utm_source=bb

Trackbacks/Pingbacks


Leave a Reply

Security Code:

Categories