Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

juanantonioguzmanhidalgo's avatar

Error: Octane + FrankenPhp + FTP driver : Undefined constant "FTP_BINARY"

Hi All. I wonder if someone can bring a bit of light to my issue.

Short Summary:

  • I have a Laravel App using a Ftp disk to store media files (there is no issue running the app with artisan serve).
  • Running the app with octane with franken php Im having an error: Undefined constant "FTP_BINARY"
  • Im running everything in a Linux machine (Ubuntu 22 LTS)

Im I missing binary? How can I isntall or build? Or is just a constant missing?

More deatils with screenshots here https://github.com/laravel/octane/issues/845

Thankyou in advance!

0 likes
1 reply
tudorr89's avatar

Where did you define FTP_BINARY? is it in .env or config folder?

Please or to participate in this conversation.