我正在尝试在Ubuntu上启用mod_php。我得到了
/etc$ sudo a2enmod mod_php
ERROR: Module mod_php does not exist!但我相信它已经安装在
etc$ sudo apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.有什么建议吗?
发布于 2015-01-19 09:59:44
我会尝试这个命令:sudo a2enmod php5
另外,请看这里。你甚至不需要"a2enmod“就能让事情正常工作,这是非常好的机会:
http://php.net/manual/en/install.unix.debian.php
http://chipersoft.com/p/Setting-up-a-LAMP-server-ubuntu/
发布于 2015-01-19 09:48:44
你试过mod_php5吗?我已经有几年没有使用ubuntu了,但是我想你可以看看/etc/apache2/mods-available中的模块名称(甚至把它们符号链接到/etc/apache2/mods-enabled,这几乎就是a2en所做的
发布于 2017-01-18 18:24:42
在Mageia5上,您可以像这样启用它:
urpmi apache-mod_php
systemctl restart httpd.servicehttps://stackoverflow.com/questions/28015896
复制相似问题