我可以在现有的 Apache 上安装 LAMP 吗?

我可以在现有的 Apache 上安装 LAMP 吗?

我正在设置我的第一个 VPS,在意识到有 LAMP 包可以帮我完成这项工作之前,我安装并配置了 Apache。我可以直接运行吗?sudo apt-get install lamp-server^还是必须先卸载现有的 Apache?据我所知,卸载 Apache 可能有点麻烦,所以如果可以的话,我宁愿避免它。

答案1

sudo apt-get install lamp-server^将安装一堆软件包。您将看到类似以下内容的内容:

Note, selecting 'libdbd-mysql-perl' for task 'lamp-server'
Note, selecting 'tcpd' for task 'lamp-server'
Note, selecting 'libdbi-perl' for task 'lamp-server'
libaio1 is already the newest version.
libaio1 set to manually installed.
libwrap0 is already the newest version.
ssl-cert is already the newest version.

如您所见,如果您已经安装了包(通过 apt),则不会再次安装它。

相关内容