我是系统管理员新手,在使用Apache 2服务器时,我需要在Ubuntu 16.04上安装php。
我尝试了基本的sudo apt-get install php
,但只加载了一个空白页面(php文件)。
但是安装libapache2_mod_php
解决了我的问题。
我想了解它们之间的区别。
我是系统管理员新手,在使用Apache 2服务器时,我需要在Ubuntu 16.04上安装php。
我尝试了基本的sudo apt-get install php
,但只加载了一个空白页面(php文件)。
但是安装libapache2_mod_php
解决了我的问题。
我想了解它们之间的区别。
php
is just a binary that can execute php code, much likejava
.libapache2_mod_php
is a php binary that is designed and compiled to work with the Apache webserver, so that Apache that interpret php and handle it. Apache can't know if you have a php binary unless you give it the very specific instructions that you have: insertlibapache2_mod_php
- Loek