Oct 282014
 

VPS 500 Internal Server Error Dropbox post will guide you in correcting the server error between your VPS and dropbox using ManageWP services.

Lucky for me I receive great support from Managewp staff. They are unbelievable in the way they provide solutions and the way they help you.

Servers Specs.

  • Centos 6.5
  • WHM 11.44.1 (build 19)

Credit for this tutorial is to be given to the following ManageWP staff for their help.

  • Nemanja
  • Olivera
  • Nebojsa
  • Petar
  • And a special thanks to Bojan for his great sever knowledge

I was having issues delivering my backups between my VPS and Dropbox through Managewp. I was always receiving the following error message. See image below.

VPS-500-Internal-Server-Error-Dropbox

VPS 500 Internal Server Error Dropbox Steps

The 500 error seems to be related to the site server timeout that cuts the connection between ManageWP and the site server, but the PHP continues running in the background.

These are some of the suggestions to fix the timeout issue.

1 ) PHP parameters that can cut the running script:

These parameters can be found at php.ini file, usually located in the /etc/php(5)/..

  • max_execution_time: “600″
  • max_input_time: “600″
  • memory_limit: “256M”
  • file_uploads: “On”
  • upload_max_filesize: “20M”
  • post_max_size: “20M”
  • max_file_uploads: “20″

These parameters can be found only if you are using fastcgi, and locations can vary, i suggest searching with find or grep command for those.

  • FcgidIdleTimeout 600
  • FcgidIOTimeout 600
  • FcgidProcessLifeTime 600

Also, check web-server timeouts and configuration, it can be found at /etc/httpd or /etc/apache2 or /etc/nginx depending on which web-server is running.

  • Apache : check timeouts
  • nginx: proxy_read_timeout = 600
  • fastcgi_read_timeout = 600

2 ) The following images illustrates some of the changes made to correct the 500 server timeout issue.

Go to Home -> Server Configuration -> Tweak Settings -> PHP to change the following settings.

VPS-500-Internal-Server-Error-Dropbox-php-settings

Go to Home -> Service Configuration -> Apache Configuration -> Global Configuration to make the following changes.

Note: You can check my previous post vps-server-htaccess-403-error for a visual illustration.

VPS-500-Internal-Server-Error-Dropbox-server-settings

All of the above improved the functionality of the VPS but the error still persisted. The following changes plus the above fixed the 500 error timeout.

3 ) The final changes that finally fixed the issue was made within Apache web-server configuration via terminal, after that everything worked well without any more 500 errors.

To carry out the following changes you need to go to the following path /usr/local/apache/conf/php.conf.

Timeouts Additional Changes:

  • ProcessLifeTime 7200
  • IPCConnectTimeout 600
  • IPCCommTimeout 600

After the above is carried out, reset the PHP and Apache for the configuration to be implemented.

I hope the above helps you with your VPS.

If you have any questions please let me know. I will be updating this tutorial from time to time. Come back to read the latest updates.

Enjoy

Manuel Ballesta Ruiz is a web developer, Blogger and WordPress Enthusiast.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

The following GDPR rules must be read and accepted:
This form collects your name, email and content so that we can keep track of the comments placed on the website. For more info check our privacy policy where you will get more info on where, how and why we store your data.