我正在尝试在我的ubuntu服务器16.04上安装libriache2-mod-php7.3。
我的错误越来越少
sudo apt install libapache2-mod-php7.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-mod-php7.3
E: Couldn't find any package by glob 'libapache2-mod-php7.3'
E: Couldn't find any package by regex 'libapache2-mod-php7.3'请帮助我在我的服务器上安装libapache2模块。
谢谢
发布于 2022-04-02 17:57:13
你试过这个吗?
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.3 php7.3-cli php7.3-mysql php7.3-gd php7.3-imagick php7.3-recode php7.3-tidy php7.3-xmlrpc php7.3-common php7.3-curl php7.3-mbstring php7.3-xml php7.3-bcmath php7.3-bz2 php7.3-intl php7.3-json php7.3-readline php7.3-zip
sudo apt install libapache2-mod-php7.3
sudo a2enmod php7.3成功安装后,执行:
sudo service apache2 restartFYI,我建议您使用最新的PHP或切换到LTS版本。
https://stackoverflow.com/questions/71719790
复制相似问题