内部服务器错误 - CPanel托管

时间:2015-11-04 02:49:04

标签: php hosting cpanel

我很新,之前从未托管过网站。我正在使用cPanel并拥有一个我使用XAMPP开发的php网站。我很困惑如何使用cPanel以及如何上传我的网站,就像在XAMPP上一样。

我使用public_html文件夹中的文件管理器上传了我的所有文件和文件夹。我在主屏幕上选择了预览网站选项,并收到了500内部服务器错误:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@previewmywebsitenow.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 Server at www.previewmywebsitenow.com Port 80

我试图查明其含义,但我不确定如何解决我的错误。我按照我应该的方式上传了所有内容吗?此外,如果这是我上传时没有发生的错误,我如何找到文件或执行我需要的程序来解决此问题?

我很欣赏任何关于如何继续这样做的解释或说明。我很新,请原谅我的无知。

2 个答案:

答案 0 :(得分:1)

自从您与XAMPP合作以来,您就发现CPanel非常友好。而不是将目录放在htdocs目录中,而是将工作文件和目录放在public_html目录中。

使用PHP解决内部服务器错误:

请检查您的重定向header()功能。您可能缺少location关键字。

示例:

错误: 标头(“ home.php”);

提示: 添加Location

解决方案: header("Location: home.php);

答案 1 :(得分:0)

qwerty.getPosition('W')是最友好的托管平台,非常欢迎那些没有丰富托管经验的人。所以,它不会比这更容易!

现在关于您获得的内部服务器错误。你在使用Joomla还是WordPress?如果是,则需要分别更改cPanelconfiguration.php文件以容纳服务器。您还需要使用wp-config.php中的MySQL数据库工具在Web服务器上创建数据库(以及数据库的用户),然后从cPanel导出您的实际数据库,然后在那里导入它(您可以在XAMPP)中创建数据库后,使用phpMyAdmin执行导入过程。

相关问题