I have a .so file generated with SWIG. I would like use the functions defined there as a php extension. How do I add them as a php extension?
I added the .so to the extensions directory, and in php.ini added a line: "extension=example.so", then restarted apache.
Still when I run: php -d "extension=example.so" -m
, it does not appear as an extension, and says:
"Unable to load dynamic library '/usr/lib/php5/...../example.so. cannot open shared object file: Permission denied in Unknown on line 0"
Yet, permissions are 777
Permisions
PHP .so folder
php.ini file
checking for extension [
Extension "example.so" not there.
chmod 755 {so}
– Gully