Apache 服务器网站应该指向 Vhost,但在升级时正在 html 文件夹中搜索

Apache 服务器网站应该指向 Vhost,但在升级时正在 html 文件夹中搜索

我将服务器从 2.2 升级到了 2.2.22。当我在 Chrome 中打开我的网站时,它显示已成功安装,并且

You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.

但之前托管在服务器上的 2 个网站位于

/var/www/vhosts/sitename/httpdocs/httpdocs

升级过程中我遇到了一个错误

错误:文件 /usr/lib64/apr-1/build 上的存档解压失败:cpio:重命名失败 - 是目录 执行命令 touch /var/lock/parallels-panel-upgrade-failure.flag ; rm -f /var/lock/parallels-panel-maintenance-mode.flag 执行命令 /usr/local/psa/admin/bin/send-error-report install 执行命令 /usr/sbin/getenforce Disabled 错误:安装软件包时发生错误。注意!您的软件可能无法运行。请联系产品技术支持。

我现在如何运行该网站?

答案1

尝试将内容从 /var/www/vhosts/sitename/httpdocs/httpdocs 移动到 /var/www/html,看看会发生什么?

相关内容