Home > Article > Backend Development > What should I do if the plug-in is installed in php7.0 but it still shows that it is not installed?
PHP 7.0 plug-in does not show installed solutions
When you encounter the situation that plug-ins do not show installed in PHP 7.0, you can try the following solutions:
1. Check the plug-in configuration
Make sure the plug-in is enabled in the php.ini configuration file. Search for the following line and uncomment it:
<code>extension=插件名.so</code>
2. Restart PHP
After making any changes to the php.ini file, you need to restart PHP for the changes to take effect . You can use the following command:
<code>service php7.0-fpm restart</code>
3. Check file permissions
Make sure the plugin file has appropriate file permissions. Plug-in files are usually located in the /usr/lib64/php/modules
directory. Check the file permissions using the following command:
<code>ls -l 插件名.so</code>
The file permissions should be similar to the following:
<code>-rw-r--r-- 1 root root 440804 Apr 20 08:36 插件名.so</code>
4. Install missing dependencies
Some Plugins may require additional dependencies to work. Check your system for missing dependencies using the following command:
<code>yum install php70-依赖项名</code>
5. Rebuild PHP
If none of the above steps resolve the issue, you may need to rebuild PHP. You can use the following command:
<code>yum reinstall php70</code>
6. Other reasons
In some cases, the plug-in may not show installed, the reasons may be:
If none of the above solutions solve the problem, it is recommended to consult the system administrator or the PHP forum.
The above is the detailed content of What should I do if the plug-in is installed in php7.0 but it still shows that it is not installed?. For more information, please follow other related articles on the PHP Chinese website!