Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php runtime not found. install the php7 runtime and update "executablepath" in php

I'm running ubuntu 18.04 and trying to develop a php project using Brackets text editor. But i getting error:

PHP runtime not found.

Then I installed the php7 runtime and update "executablePath" in PHP preferences appropriately. I tried to configured Brackets using custom setting in brackets.json But now i am getting:

"Error Reading Preferences" Your preferences is not valid JSON

I am using XAMPP

like image 476
Abhishek Aarya Avatar asked Oct 24 '25 15:10

Abhishek Aarya


1 Answers

Based on the issue that appear in here : https://github.com/adobe/brackets/issues/14783

you just have to open your brackets.json file from the Debug tab then open preferences file, and add these following syntax to your brackets.json :

"php": {
    "executablePath": "C:\\xampp\\php\\php.exe"
}

so for me, it will became like this :

{
"brackets-eslint.gutterMarks": true,
"brackets-eslint.useLocalESLint": false,
"fonts.fontSize": "12px",
"fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
"themes.theme": "dark-theme",
"php": {
    "executablePath": "C:\\xampp\\php\\php.exe"
}

}

then restart your brackets, hope it'll work

like image 111
Lazy MdE Avatar answered Oct 27 '25 07:10

Lazy MdE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!