HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Weird FTP error messages

Login / Search

 [ Join | More ]
#48406 (In Topic #10579)

It is possible those using the quick installer, or other aspects of ocPortal that use FTP connections may receive strange error messages relating to FTP commands that don't look like real error messages.

One example is:
ftp_put() [function.ftp-put]: Connecting to port 34031

This illustrates ocPortal failed to upload a file ('ftp_put') but the attached error message makes no sense at all.

How did this happen?

The reason for this is PHP's FTP support is rather poor on occasions, unable to generate accurate error messages. In this example 'Connecting to port 34031' is actually a status message for the FTP connection, routinely put out, and PHP misinterprets it and relays it as the error message that caused the failure.

How do I fix it?

There is no clear fix as PHP was not able to relay an appropriate error message.

Here are some potential solutions…

  1. You should try refreshing to see if it works a second time around (it could have been a random anomaly).
  2. Consider whether the FTP connection settings you entered were corrected. In the example above it is likely there is actually no FTP server running where it was specified, as the last status message (which PHP considered 'the error') was one prior to any connection being confirmed as established.
  3. If you get this when installing, consider using the manual installer.
  4. If you have a SuEXEC configuration or Windows server then you have no need at all for an FTP server to be running.
  5. … otherwise you can avoid the need for an FTP server by setting extra permissions. Try saying you don't need FTP, noting the error message you see, setting extra 777 directory permissions (full write permissions) accordingly, and refreshing.
  6. Contact your web host saying your server PHP cannot connect to the FTP server (and say what FTP details you used). Ask them to give you the correct FTP details, fix the FTP server, or fix PHP FTP support.

Last edit: by Chris Graham

Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
1 guests and 0 members have just viewed this: None