在apache2 confing中添加行

时间:2022-10-05 21:13:01

I need to add this to my apache2.conf in my VPS:

我需要在我的VPS中将它添加到我的apache2.conf中:

Include /etc/phpmyadmin/apache.conf
extension=mysql.so

extension=memcache.so

extension=mbstring.so

extension=gd.so

extension=mcrypt

After I add this and save the apache.conf, and trying to restart the apache, i get an error - Failed.

在我添加这个并保存apache.conf并尝试重新启动apache后,我收到错误 - 失败。

Why?

为什么?

2 个解决方案

#1


1  

You find that error because you put php directives in apache.

您发现该错误是因为您将php指令放在apache中。

#2


0  

You have to add these lines in php.in file.

你必须在php.in文件中添加这些行。

you can find php.ini file location using,

你可以找到php.ini文件的位置,

#php -i | grep php.ini

#1


1  

You find that error because you put php directives in apache.

您发现该错误是因为您将php指令放在apache中。

#2


0  

You have to add these lines in php.in file.

你必须在php.in文件中添加这些行。

you can find php.ini file location using,

你可以找到php.ini文件的位置,

#php -i | grep php.ini