警告:模块ini文件在/etc/php/7.0/mods-available下不存在 [英] WARNING: Module ini file doesn't exist under /etc/php/7.0/mods-available

查看:383
本文介绍了警告:模块ini文件在/etc/php/7.0/mods-available下不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从ubuntu卸载了php7及其所有模块,当我尝试重新安装模块时,每个php模块都收到以下错误消息,尽管安装了该模块,但由于此错误,它没有被激活并我不能使用它们. 有什么办法解决这个问题? 每个模块的错误(安装时):

Not replacing deleted config file /etc/php/7.0/mods-available/intl.ini
WARNING: Module [module name] ini file doesn't exist under /etc/php/7.0/mods-available
WARNING: Module [module name] ini file doesn't exist under /etc/php/7.0/mods-available
WARNING: Module [module name] ini file doesn't exist under /etc/php/7.0/mods-available

解决方案

问题是因为使用sudo apt-get remove [package]删除了php,并且采用这种形式,配置文件无法从计算机中清除,而下次您尝试安装该文件时,软件包,Ubuntu不会让软件包配置文件覆盖. 解决方案是使用purgeautoremove软件包完全删除该软件包,以便将其及其配置文件从计算机中完全删除,并在下次尝试安装时创建该配置文件.

I have uninstalled php7 and all its modules from ubuntu, and when I try to reinstall the modules, I get the following error for each php module, and although the module is installed, because of this error, it is not activated and I cannot use them. Is the any way to solve this issue ? the error for each module(when installing):

Not replacing deleted config file /etc/php/7.0/mods-available/intl.ini
WARNING: Module [module name] ini file doesn't exist under /etc/php/7.0/mods-available
WARNING: Module [module name] ini file doesn't exist under /etc/php/7.0/mods-available
WARNING: Module [module name] ini file doesn't exist under /etc/php/7.0/mods-available

解决方案

The problem was because of deleting php with sudo apt-get remove [package] and with this form, configuration files won't clean from computer and the next time you try to install the package, Ubuntu won't let the package configuration files to overwrite. the solution is to delete the package completely with purge and the autoremove the package so that It will completely remove from the computer with its configuration files and the next time you try to install, the configuration files with be created.

这篇关于警告:模块ini文件在/etc/php/7.0/mods-available下不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆