/etc/apache2/conf-available/phpmyadmin 中没有 phpmyadmin.conf
there is no phpmyadmin.conf in /etc/apache2/conf-available/phpmyadmin
我关注 this tutorial,但找不到本教程第二步的 phpmyadmin.conf
。我在 /etc/apache2/conf-available/
中只有以下文件
charset.conf
other-vhosts-access-log.conf
javascript-common.conf
security.conf
localized-error-pages.conf
serve-cgi-bin.conf
我必须编辑哪一个?
你确定你没听错吗?
When the first prompt appears, apache2 is highlighted, but not
selected. If you do not hit "SPACE" to select Apache, the installer
will not move the necessary files during installation. Hit "SPACE",
"TAB", and then "ENTER" to select Apache.
这是我之前忽略的第一步中非常重要的部分,可能会导致此问题
作为另一种补救措施,您可以试试这个:
来自文档: https://help.ubuntu.com/community/phpMyAdmin
If this does not work, then you can do the following to include the
phpMyAdmin-shipped Apache configuration into Apache:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload
Since Ubuntu 13.10 (Saucy Salamander), Apache no longer loads
configuration files from the /etc/apache2/conf.d directory. Instead,
they are placed in the /etc/apache2/conf-available directory which is
managed with the a2enconf command. Therefore, if you need to manually
include the phpMyAdmin-shipped Apache configuration file, you must run
the following:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo /etc/init.d/apache2 reload
出现第一个提示时,apache2 会突出显示,但不会 selected。如果您不点击“SPACE”到select Apache,安装程序将不会在安装过程中移动必要的文件。点击“SPACE”、“TAB”,然后点击“ENTER”进入 select Apache。
如果您没有这样做,请输入以下命令:
sudo dpkg-reconfigure phpmyadmin
Select 不重新配置数据库,然后您将按照上述步骤获得 select Apache 的选项。
在此服务器上找不到请求的 URL。
Apache/2.4.41 (Ubuntu) 服务器位于 expample.com 端口 80
如果这不起作用,那么您可以执行以下操作以将 phpMyAdmin 提供的 Apache 配置包含到 Apache 中:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 重新加载
从 Ubuntu 13.10 (Saucy Salamander) 开始,Apache 不再从 /etc/apache2/conf.d 目录加载配置文件。相反,它们被放置在 /etc/apache2/conf-available 目录中,该目录由 a2enconf 命令管理。因此,如果您需要手动包含 phpMyAdmin 附带的 Apache 配置文件,您必须 运行 以下内容:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-可用/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo /etc/init.d/apache2 重新加载
或
出现第一个提示时,apache2 会突出显示,但不会 selected。如果您没有点击“SPACE”到select Apache,安装程序将不会在安装过程中移动必要的文件。点击“SPACE”、“TAB”,然后点击“ENTER”进入 select Apache。
如果您这样做,请输入以下命令
sudo dpkg-重新配置 phpmyadmin
select 不重新配置数据库然后你可以选择 select apache 按照上面的步骤
我关注 this tutorial,但找不到本教程第二步的 phpmyadmin.conf
。我在 /etc/apache2/conf-available/
charset.conf
other-vhosts-access-log.conf
javascript-common.conf
security.conf
localized-error-pages.conf
serve-cgi-bin.conf
我必须编辑哪一个?
你确定你没听错吗?
When the first prompt appears, apache2 is highlighted, but not selected. If you do not hit "SPACE" to select Apache, the installer will not move the necessary files during installation. Hit "SPACE", "TAB", and then "ENTER" to select Apache.
这是我之前忽略的第一步中非常重要的部分,可能会导致此问题
作为另一种补救措施,您可以试试这个:
来自文档: https://help.ubuntu.com/community/phpMyAdmin
If this does not work, then you can do the following to include the phpMyAdmin-shipped Apache configuration into Apache:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf sudo /etc/init.d/apache2 reload
Since Ubuntu 13.10 (Saucy Salamander), Apache no longer loads configuration files from the /etc/apache2/conf.d directory. Instead, they are placed in the /etc/apache2/conf-available directory which is managed with the a2enconf command. Therefore, if you need to manually include the phpMyAdmin-shipped Apache configuration file, you must run the following:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf sudo a2enconf phpmyadmin sudo /etc/init.d/apache2 reload
出现第一个提示时,apache2 会突出显示,但不会 selected。如果您不点击“SPACE”到select Apache,安装程序将不会在安装过程中移动必要的文件。点击“SPACE”、“TAB”,然后点击“ENTER”进入 select Apache。
如果您没有这样做,请输入以下命令:
sudo dpkg-reconfigure phpmyadmin
Select 不重新配置数据库,然后您将按照上述步骤获得 select Apache 的选项。
在此服务器上找不到请求的 URL。
Apache/2.4.41 (Ubuntu) 服务器位于 expample.com 端口 80
如果这不起作用,那么您可以执行以下操作以将 phpMyAdmin 提供的 Apache 配置包含到 Apache 中:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf sudo /etc/init.d/apache2 重新加载 从 Ubuntu 13.10 (Saucy Salamander) 开始,Apache 不再从 /etc/apache2/conf.d 目录加载配置文件。相反,它们被放置在 /etc/apache2/conf-available 目录中,该目录由 a2enconf 命令管理。因此,如果您需要手动包含 phpMyAdmin 附带的 Apache 配置文件,您必须 运行 以下内容:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-可用/phpmyadmin.conf sudo a2enconf phpmyadmin sudo /etc/init.d/apache2 重新加载
或
出现第一个提示时,apache2 会突出显示,但不会 selected。如果您没有点击“SPACE”到select Apache,安装程序将不会在安装过程中移动必要的文件。点击“SPACE”、“TAB”,然后点击“ENTER”进入 select Apache。
如果您这样做,请输入以下命令
sudo dpkg-重新配置 phpmyadmin select 不重新配置数据库然后你可以选择 select apache 按照上面的步骤