Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
/usr/lib/php//.so /etc/php/7.0/mods-available simply map to one of the above .so files ie they contain a single line of real importance extension=phpenmod does nothing more than creating a reference file in the /etc/php/7.0/apache/conf.d & /etc/php/7.0/cli/conf.d folder.So in short.. you need to ensure the .so file exists, the ini file in mods available exists and that it is being referenced in the relevant place, eg apache, fpm or cli.
Hope this helps anyone in the same pos i was.
As mentioned in one of the comments there is a posisble bug regarding php and mysql... it is in the load order. The alphabetical ordering of the reference files in say /etc/php/7.0/apache/conf.d is actually the order the modules will be loaded by php. If you get mysqli issues, try ensuring the mysqlnd module is loaded before the mysqli module... this fixed things for me.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
OK has something fundamentally changed with ubuntu 16 and php7 regarding installing php extensions?
I just upgraded a server from ubuntu 14 to 16. The server needs to run own cloud. I also cannot rebuild it from scratch :/
apt-cache search php- | less
It lists as expected the available extentions.. eg here is a snippet:
So i went ahead and installed php ImageMagick:
apt-get install php-imagickThe last line of the installation was
WARNING: Module imagick ini file doesn't exist under /etc/php/7.0/mods-availableSure enough under
.../mods-availablethere is no ini file for imagik.What is the cause of this does anyone know?
I am toying with either, php is not installed properly or the system somehow has multiple php versions installed and there is some kind of collision going on somewhere.. in
usr/bini can seephp@andphp7.0*I'm completely stuck though.