【发布时间】:2017-02-05 10:32:49
【问题描述】:
下午好!这是我第一次来论坛,我来这里是因为我有一个关于迁移我在 Wordpress 中制作的网站的问题。
首先,请注意,我建立了托管在 Hostinger 上的网站,但在临时区域中,仅用于测试。 http://www.sitepf.esy.es
在此区域中,网站正常打开并运行。但是,当尝试将站点转移到我的主域 http://www.piscinafacil.com.br 时,它会显示以下错误:500 - Internal Server Error.
我的主要区域与附加域在同一个测试站点帐户 Hostinger 中。
为了将站点迁移到另一个域,我将旧站点和mysql数据库组成,然后通过ftp发送站点,创建一个新的mysql数据库,通过phpMyAdmin导入文件“sql.gz”然后更改数据库wp-config.php 中的设置。
在 phpMyAdmin 中也检查了 siteurl 字段将指向所需的地址 (piscinafacil.com.br),一切正常。
尝试输入 piscinafacil.com.br 地址时,显示错误 500 - Internal server error。
可能出了什么问题? 谢谢你的帮助
编辑: 我的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
【问题讨论】:
-
很难用这些信息来判断。检查服务器上的错误日志,它会告诉你为什么它会抛出 500 错误。
-
如果您无权访问您的服务器日志,那么您需要向您的主机询问您的错误日志,并从中确定实际错误是什么。没有这个,任何试图回答的人都只会陷入黑暗。另外我建议删除 phpmyadmin 标签,这与 phpmyadmin 无关
-
感谢您的回答...日志错误已添加到问题中