Results 1 to 3 of 3

Thread: Editing php files in opt directory as admin

  1. #1
    Join Date
    Jul 2012
    Location
    Dhaka
    Beans
    271
    Distro
    Ubuntu 16.04 Xenial Xerus

    Editing php files in opt directory as admin

    Hi,

    I'm using Ubuntu 12.04. I'm learning PHP to test the output I need to run the .php files from /opt... directory. Fact is that, when I open any .php files in gedit or geany it doesn't let me to edit the file. How can I create/edit new files using Geany/Gedit in the /opt... directory as admin?

    Thanks in advance.

  2. #2
    Join Date
    Sep 2010
    Beans
    898

    Re: Editing php files in opt directory as admin

    You can run gedit as admin using this command:

    Code:
    gksudo gedit &
    You could also change the ownership of the PHP files using the command "chown". But that's a potential security risk.
    Last edited by Dave_L; January 3rd, 2014 at 02:30 PM.

  3. #3
    Join Date
    Jul 2012
    Location
    Dhaka
    Beans
    271
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Editing php files in opt directory as admin

    Really thanks for your help. I'm marking this thread as solved!!!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •