Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FrankenPHP aarch64 on Termux: Error Cannot create lock - Permission denied (13) #1356

Open
krzysztof113 opened this issue Feb 1, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@krzysztof113
Copy link

krzysztof113 commented Feb 1, 2025

What happened?

Hi, in Termux I start with ./frankenphp-linux-aarch64 run
It ends with: Cannot create lock - Permission denied (13)

Termux is a terminal emulator and Linux environment for Android

Build Type

Standalone binary

Worker Mode

No

Operating System

GNU/Linux

CPU Architecture

aarch64

PHP configuration

N/A

Relevant log output

Well described here:
https://caddy.community/t/frankenphp-aarch64-doesnt-work-on-unrooted-android-termux-lock-error/23395
@krzysztof113 krzysztof113 added the bug Something isn't working label Feb 1, 2025
@AlliBalliBaba
Copy link
Collaborator

Looks like the error comes from this line
https://github.com/php/php-src/blob/caf5e8a1673392d08f58a8c89a5b257a9a6387ac/ext/opcache/zend_shared_alloc.c#L509

I think PHP needs access to some kind of temporary folder for its temporary files. Usually this seems to be /tmp, so you'll need to give the user that runs PHP access to that folder or define an alternative temporary folder (sys_temp_dir = "/tmp" in the php.ini or something like that)

@krzysztof113
Copy link
Author

I see.

And I guess this is still valid:
#252#issuecomment-2395005986

@AlliBalliBaba
Copy link
Collaborator

AlliBalliBaba commented Feb 3, 2025

It's not possible to change php.ini settings yet via the Caddyfile. It will probably be possible in the next version once #1266 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants