How do I open a PHP file in Linux?
Answer
Open Terminal
using Ctrl + Alt + T, now type sudo -H gedit , then type your password and press enter . This will open the gEdit program with root permission. Now open your . php file where it’s located or just drag the file into gEdit.