Atom does not find PHP

Asked

Viewed 341 times

0

i am testing the Atom but when installing the plugin Atom-beautify it works in all languages but when I try to ident in PHP it gives me this error.

Could not find 'PHP'. The program may not be installed.

See http://php.net/manual/en/install.php for program installation Instructions. You can configure Atom Beautify with the Absolute path to 'php' by Setting 'Executable - PHP - Path' in the Atom Beautify package Settings. Your program is properly installed if running 'which PHP' in your Terminal Returns an Absolute path to the Executable. If this does not work then you have not installed the program correctly and so Atom Beautify will not find the program. Atom Beautify requires that the program be found in your PATH Environment variable. Note that this is not an Atom Beautify Issue if beautification does not work and the above command also does not work: this is expected behaviour, Since you have not properly installed your program. Please properly setup the program and search through existing Atom Beautify issues before Creating a new Issue. See https://github.com/Glavin001/atom-beautify/search?q=PHP&type=Issues for Related Issues and https://github.com/Glavin001/atom-beautify/tree/master/docs for Documentation. If you are still Unable to resolve this Issue on your Own then Please create a new Issue and Ask for help.

-Hide Stack Trace

Error: Could not find 'PHP'. The program may not be installed. At function.Executable.commandNotFoundError (/home/edsonlima/.Atom/Packages/Atom-beautify/src/beautifiers/Executable.coffee:264:14) At Hybridexecutable.Executable.commandNotFoundError (/home/edsonlima/.Atom/Packages/Atom-beautify/src/beautifiers/Executable.coffee:256:18) at /home/edsonlima/. Atom/Packages/Atom-beautify/src/beautifiers/Executable.coffee:115:25 at tryCatcher (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/util.js:16:23) At Promise. _settlePromiseFromHandler (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/Promise.js:512:31) at Promise. _settlePromise (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/Promise.js:569:18) at Promise. _settlePromise0 (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/Promise.js:614:10) at Promise. _settlePromises (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/Promise.js:689:18) At async. _drainQueue (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/async.js:133:16) At async. _drainQueues (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/async.js:143:10) At Async.drainQueues (/home/edsonlima/.Atom/Packages/Atom-beautify/node_modules/Bluebird/js/release/async.js:17:14) at process. _tickCallback (Internal/process/next_tick.js:103:7)

But php is installed correctly, which might be someone knows ?

  • What operating system are you working on? already checked if php is in the path?

  • I’m using Ubuntu-Gnome, this command would happen to be which php, if yes already, if not how I do ?

  • Try this command: php -r 'echo function_exists("test") ? "yes" : "no";' the result will have to be no, or install apache (if not already installed) and in the browser try to access localhost.

  • Other command you can try: whereis php, the result would have to be something like: php: /usr/bin/php /usr/bin/php7.0 /usr/lib/php /etc/php /usr/share/php7.0-mysql ....

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.