loquela Posted September 29, 2009 Share Posted September 29, 2009 Hi there, I'm working with a graphics generation api that uses custom php modules. I'm on shared hosting so need to put the module in my local cgi-bin and issue the directive extension_dir=/home/sites/pdf.co.uk/cgi-bin/ this gets the api working great. However, it overrides the default extension_dir=/usr/lib/php5/, so now none of the other php modules can be loaded. Can I set multiple parameters for extension_dir? if so, what's the syntax? Many thanks in advance, S. Quote Link to comment Share on other sites More sharing options...
trq Posted September 29, 2009 Share Posted September 29, 2009 I'm not sure you can or not but if you could each directory would be separated by : on Linux or ; on windows. Quote Link to comment Share on other sites More sharing options...
loquela Posted September 29, 2009 Author Share Posted September 29, 2009 Thanks for that, extension_dir= /usr/lib/php5/ : /home/sites/pdf.co.uk/cgi-bin/ ; This didn't work. Is there anything else I should be doing? Thanks in advance; Quote Link to comment Share on other sites More sharing options...
trq Posted September 29, 2009 Share Posted September 29, 2009 Try... extension_dir="/usr/lib/php5:/home/sites/pdf.co.uk/cgi-bin" I'm not sure why you had the ; at the end, this isn't php Quote Link to comment Share on other sites More sharing options...
loquela Posted September 29, 2009 Author Share Posted September 29, 2009 Thanks thorpe, But this just throws this error : dl(): Unable to load dynamic library '/usr/lib/php5:/home/sites/pdf.co.uk/cgi-bin/phpchartdir520.dll' - /usr/lib/php5:/home/sites/pdf.co.uk/cgi-bin/phpchartdir520.dll: cannot open shared object file: No such file or directory "It appears the PHP extension directory of this system is configured as "/usr/lib/php5:/home/sites/pdf.co.uk/cgi-bin", but this directory does not exist or is inaccessible. PHP will then refuse to load extensions from any directory due to invalid directory configuration." Quote Link to comment Share on other sites More sharing options...
trq Posted September 30, 2009 Share Posted September 30, 2009 My guess then is that you cannot configure multiple directories. In fact a quick Google reveals a few proposals on the subject posted within the internal mailing lists. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.