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. Link to comment https://forums.phpfreaks.com/topic/175989-multiple-extension_dir/ 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. Link to comment https://forums.phpfreaks.com/topic/175989-multiple-extension_dir/#findComment-927340 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; Link to comment https://forums.phpfreaks.com/topic/175989-multiple-extension_dir/#findComment-927344 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 Link to comment https://forums.phpfreaks.com/topic/175989-multiple-extension_dir/#findComment-927351 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." Link to comment https://forums.phpfreaks.com/topic/175989-multiple-extension_dir/#findComment-927354 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. Link to comment https://forums.phpfreaks.com/topic/175989-multiple-extension_dir/#findComment-927382 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.