我很新,之前从未托管过网站。 我正在使用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我试图查明含义,但我不确定如何解决我的错误。 我是否按照我应有的方式上传了一切? 另外,如果这是我上传时未发生的错误,那么如何找到这些文件或执行我需要的步骤来解决此问题?
我很欣赏任何关于如何继续这样做的解释或说明。 我很新,请原谅我的无知。
I'm very new and have never hosted a website before. I'm using cPanel and have a php website I've developed using XAMPP. I'm very confused as to how to use cPanel and how to upload my website to work as it did on XAMPP.
I uploaded all my files and folders using File Manager within the public_html folder. I selected the preview website option on the home screen and received a 500 Internal Server Error that stated:
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 80I tried to look up the meaning, but I wasn't sure of how to fix my mistake. Did I upload everything the way I was supposed to? Also, if this is an error not occurred from my upload, how do I find the files or do the procedure I need to in order to fix this?
I appreciate any sort of explanation or instruction on how to continue this. I'm very new and please forgive my ignorance.
最满意答案
cPanel是最友好的托管平台,非常欢迎那些没有丰富托管经验的人。 所以,它不会比这更容易!
现在谈谈你遇到的内部服务器错误。 你使用Joomla或WordPress? 如果是,则需要分别更改configuration.php或wp-config.php文件以适应服务器。 您还需要使用cPanel的MySQL数据库工具在Web服务器上创建数据库(和数据库的用户),然后从XAMPP导出实际数据库,然后将其导入到那里(您可以使用phpMyAdmin执行导入过程,之后在cPanel创建数据库)。
cPanel is by the friendliest platform for hosting and is very welcoming for those who don't have huge experience in hosting. So, it won't get easier than that!
Now about the Internal Server Error that you're getting. Are you using Joomla or WordPress? If yes, you will need to change the configuration.php or the wp-config.php file respectively to accommodate the server. You will also need to create the database (and the database's users) on the web server using the MySQL Database tool in cPanel and then by exporting your actual database from XAMPP and then importing it there (you can do the import process using phpMyAdmin, after creating the database in cPanel).
更多推荐
发布评论