I just fresh installed aapanel on cent os 7 with its recommended server setup like php, apache, phpmyadmin,etc.
I have to deploy a laravel project in my server so I cloned my project through git but when I try to run command composer install it is asking me to uncomment fileinfo extension from php.ini file. After uncommenting it php command is giving this warning
PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo (/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo: cannot open shared object file: No such file or directory), /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so (/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Also composer install is giving error like:
Problem 1
- intervention/image[2.5.0, ..., 2.5.1] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires intervention/image 2.5 -> satisfiable by intervention/image[2.5.0, 2.5.1].
To enable extensions, verify that they are enabled in your .ini files:
- /www/server/php/74/etc/php.ini
You can also run php --ini
inside terminal to see which files are used by PHP in CLI mode.