Description
Atom Version: 1.58.0 (x64)
System: Linux Mint 20
Error: IDE-PHP could not launch your PHP runtime. spawn /usr/bin/php ENOENT
I've been going round in circles across various places before finally posting here - about 3hrs lost so far. I cannot get PHP linting to work because the path cannot be found.
PHP Version
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
(Without amending the version of PHP, my version above has no other updates)
Result of which php Command
/usr/bin/php
Result of whereis php Command
php: /usr/bin/php7.4 /usr/bin/php /usr/lib/php /etc/php /usr/share/php7.4-mbstring /usr/share/php7.4-gd /usr/share/php7.4-json /usr/share/php7.4-mysql /usr/share/php7.4-bz2 /usr/share/php7.4-opcache /usr/share/php7.4-xml /usr/share/php7.4-zip /usr/share/php7.4-readline /usr/share/php7.4-curl /usr/share/php7.4-common /usr/share/php /usr/share/man/man1/php.1.gz
Therefore the paths I've tried in the "PHP Path" field in Settings are:
- /usr/bin/php
- /usr/bin/php7.4
- /usr/lib/php
- /etc/php
- /usr/share/php
And all of these result in the above error: spawn /whatever/path/to/php ENOENT
Please help! Thanks.