gpt4 book ai didi

php - WordPress 迁移 - 500 内部服务器错误

转载 作者:行者123 更新时间:2023-11-29 11:16:01 26 4
gpt4 key购买 nike

下午好!这是我第一次来到论坛,我来这里是因为我有一个与在 Wordpress 中制作的网站迁移相关的问题。

首先,请注意,我在 Hostinger 上构建了托管网站,但在临时区域中,仅用于测试。 http://www.sitepf.esy.es

在此区域中,网站可以正常打开和运行。但是,当尝试将该网站转移到我的主域 http://www.piscinafacil.com.br 时,它显示以下错误:500 - 内部服务器错误。

我的主要区域与附加域位于同一测试站点帐户 Hostinger 中。

为了将站点迁移到另一个域,我制作了旧站点和mysql数据库,然后通过ftp发送站点,创建了一个新的mysql数据库,通过phpMyAdmin导入文件“sql.gz”,然后更改数据库wp-config.php 中的设置。

还在 phpMyAdmin 中检查了 siteurl 字段是否指向所需的地址 (piscinafacil.com.br),一切正常。

尝试输入 piscinafacil.com.br 地址时,显示错误 500 - 内部服务器错误。

可能出了什么问题?谢谢您的帮助

编辑:我的 php 日志错误:

[27-Sep-2016 17:54:17 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/u588888949/public_html/wp-content/uploads/2016/09) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1611
[27-Sep-2016 17:54:17 UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/home/u588888949/public_html/wp-content/uploads/2016) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1616
[27-Sep-2016 17:54:17 UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/home/u588888949/public_html/wp-content/uploads) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1616
[27-Sep-2016 17:54:17 UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/home/u588888949/public_html/wp-content) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1616
[27-Sep-2016 17:54:17 UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/home/u588888949/public_html) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1616
[27-Sep-2016 17:54:17 UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/home/u588888949) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1616
[27-Sep-2016 17:54:17 UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1616
[27-Sep-2016 17:54:17 UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/u113554601:/tmp:/var/tmp:/opt/php-5.5/pear:/usr/local/bin:/etc/pki/tls/certs) in /home/u113554601/public_html/wp-includes/functions.php on line 1616

最佳答案

很难说无法访问您的服务器,但似乎 WordPress 文件位于错误用户的文件夹中。您的服务器似乎有一个限制,只允许 php 文件系统访问一组特定的文件夹:

/home/u588888949/public_html 是存储文件的位置
/home/u113554601 是您的 php 脚本有权访问的文件夹

您可能需要修改 PHP 服务器配置以添加对 /home/u588888949 文件夹的访问权限。

关于php - WordPress 迁移 - 500 内部服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39730659/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com