Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7194397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:21:46+00:00 2026-05-28T20:21:46+00:00

I am copying a file from a remote server using copy (and also tried

  • 0

I am copying a file from a remote server using copy (and also tried various versions with fopen, file_get_contents etc.) but after ~2 minutes the script times out. No errors, no exceptions. In the error log file it says: (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed

Any clue?

Here is my php.ini config for resource limits:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 0     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 104M     ; Maximum amount of memory a script may consume (8MB)

and this might be related, too:

; Default timeout for socket based streams (seconds)
default_socket_timeout = 60

I added a new php.ini in the folder

[PHP]

max_input_time = 3600

default_socket_timeout = 3600

max_execution_time = 3600

upload_max_filesize = 10M

But that didn’t help.

EDIT:
It seems to be a problem with the filesize. As soon as it reaches 2MB the server fails. I have to contact my hoster.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:21:47+00:00Added an answer on May 28, 2026 at 8:21 pm

    Your php.ini file is most likely configured to timeout after 120 seconds. I’m not sure what kind of server you have, but on mine the primary php.ini file is located in:
    /etc/php5/apache2/php.ini

    If you can’t find it, run phpinfo() in a script and you will find the directory to your main php.ini

    Under the RESOURCE LIMITS heading, change the timeout in seconds and restart your server

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I only need to copy a file from a remote server to a local
I'm new to SSH. How to copy a .gz file from one server to
Am using i5_command for copying a file from one location to another using i5
I'm copying a file from folder A to folder B and then trying to
If I start copying a huge file tree from one position to another or
What is a better option (in terms of performance): copying a file using fileinputstream
Hi I'm trying to use robocopy to copy a single file from my computer
I'm using a Java program to POST some XML data from a remote client
How can I instruct Eclipse to copy a file from my Android solution to
I'm copying a file from S3 to Cloudfiles, and I would like to avoid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.