简体   繁体   English

Ruby On Rails:-WHM VPS服务器

[英]Ruby On Rails :- WHM VPS server

I am new in Ruby on Rails. 我是Ruby on Rails的新手。 I successfully upload and run very well my ROR project on Web Host Manager- VPSserver. 我在Web Host Manager- VPSserver上成功上传并很好地运行了ROR项目。 When I try to upload small size of video like 7 MB is successfully upload. 当我尝试上传较小尺寸的视频时,例如7 MB的视频已成功上传。 And on my local host here I can upload 200 MB video successfully but I facing problem on WHM VPS server and When I try to upload 30 MB video file browser given me below error: 在我的本地主机上,我可以成功上传200 MB视频,但是在WHM VPS服务器上却遇到问题,当尝试上传30 MB视频文件浏览器时,出现以下错误:

The connection was reset The connection to the server was reset while the page was loading. 重置连接加载页面时重置了与服务器的连接。 The site could be temporarily unavailable or too busy. 该站点可能暂时不可用或太忙。 Try again in a few moments. 请稍后重试。 If you are unable to load any pages, check your computer's network connection. 如果您无法加载任何页面,请检查计算机的网络连接。 If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. 如果您的计算机或网络受到防火墙或代理的保护,请确保允许Firefox访问Web。

I change the configuration of WHM VPS (PHP Configuration Editor). 我更改了WHM VPS(PHP配置编辑器)的配置。

magic_quotes_gpc = Off; magic_quotes_gpc =关; register_globals = Off; register_globals =关闭; default_charset = UTF-8; default_charset = UTF-8; memory_limit = 500M; memory_limit = 500M; max_execution_time = 30000; max_execution_time = 30000; upload_max_filesize = 999M; upload_max_filesize = 999M; safe_mode = Off; safe_mode =关; mysql.connect_timeout = 20; mysql.connect_timeout = 20; session.use_cookies = On; session.use_cookies =开; session.use_trans_sid = Off; session.use_trans_sid =关; session.gc_maxlifetime = 12000000; session.gc_maxlifetime = 12000000; allow_url_fopen = on; allow_url_fopen = on;

But I did not get any solution. 但是我没有任何解决办法。

That definitely sounds like you're hitting a limit somewhere in your php configuration. 这绝对听起来像是您在php配置中达到某个极限。 You should be able to identify which limit you're hitting in the apache error log. 您应该能够在apache错误日志中确定要达到的限制。

With root access, you can check it on the command line ( /usr/local/apache/logs/error_log ). 具有root用户访问权限,您可以在命令行(/ usr / local / apache / logs / error_log)上进行检查。 If you only have access to cPanel, you can view the most recent errors on the Errors page in cPanel. 如果您只能访问cPanel,则可以在cPanel的“错误”页面上查看最新错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM