E405 TweakPHP does not accept valid PHP binary path on Linux · Issue #148 · tweakphp/tweakphp · GitHub
[go: up one dir, main page]

Skip to content

TweakPHP does not accept valid PHP binary path on Linux #148

@Alexander-Calderon

Description

@Alexander-Calderon

Describe the bug
In the Settings > PHP Path field, setting the path to t 6ADB he PHP binary as /usr/bin/php (which is correct on most Linux systems) triggers an 'Invalid path' error. However, if I input /usr/bin/ (directory only), the error disappears — even if the directory is incorrect or fake (e.g., /invalid/path/), which is misleading. Regardless of the input, PHP code (e.g. echo "test";) does not execute.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Settings
  2. In PHP Path, enter /usr/bin/php
  3. Go to a project
  4. Try to run a simple script (e.g. echo "test";)
  5. See error: 'Invalid path'

Expected behavior
The field should properly validate the actual PHP binary path (/usr/bin/php) and execute code when a valid binary is set. It should also reject directories or incorrect paths with proper feedback.

Screenshots
https://imgur.com/a/AGHneLi

Desktop (please complete the following information):

  • OS: Kubuntu 24.04.2 LTS (x86_64)

Additional context
Other Linux users may face this too, as PHP is typically located in /usr/bin/php. Behavior on macOS appears to differ — perhaps the validation logic not properly implemented on Linux. A more reliable cross-platform path validation would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0