Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8363

Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php, alt.os.linux.ubuntu
Subject Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser
Date 2013-02-13 06:14 -0500
Organization A noiseless patient Spider
Message-ID <kffshl$ke4$1@dont-email.me> (permalink)
References (3 earlier) <kfasbe$dat$1@dont-email.me> <l8CdneyuxKs7z4TMnZ2dnUVZ_oCdnZ2d@supernews.com> <kfdgs3$5a3$1@dont-email.me> <kfdjfs$duh$2@news.albasani.net> <D5WdnczS5fuTj4bMnZ2dnUVZ_oednZ2d@supernews.com>

Cross-posted to 2 groups.

Show all headers | View raw


On 2/12/2013 11:09 PM, Cal Dershowitz wrote:
> On 02/12/2013 07:27 AM, The Natural Philosopher wrote:
>
>> All here by the looks of it
>>
>> https://help.ubuntu.com/community/ApacheMySQLPHP
>>
>>
>>
>
> Thanks all for comments.  I got as far in the process as to have a
> localhost that shows up in a browser and try to write test.php, and I
> don't want to get too far ahead of myself with enabling permissions.
>
> $ cat > test.php
> bash: test.php: Permission denied
> $ pwd
> /var/www
> $ cd ..
> $ ls -l
> total 48
> drwxr-xr-x  2 root root     4096 Feb  1 17:18 backups
> drwxr-xr-x 18 root root     4096 Feb 12 20:06 cache
> drwxrwsrwt  2 root whoopsie 4096 Dec 13 07:35 crash
> drwxr-xr-x  2 root root     4096 Apr 23  2012 games
> drwxr-xr-x 66 root root     4096 Feb 12 20:07 lib
> drwxrwsr-x  2 root staff    4096 Apr 19  2012 local
> lrwxrwxrwx  1 root root        9 Jan 23 02:33 lock -> /run/lock
> drwxr-xr-x 19 root root     4096 Feb 12 20:07 log
> drwxrwsr-x  2 root mail     4096 Apr 23  2012 mail
> drwxr-xr-x  2 root root     4096 Apr 23  2012 opt
> lrwxrwxrwx  1 root root        4 Jan 23 02:33 run -> /run
> drwxr-xr-x  8 root root     4096 Apr 23  2012 spool
> drwxrwxrwt  2 root root     4096 Feb 12 20:02 tmp
> drwxr-xr-x  2 root root     4096 Feb 12 20:08 www
> $
>
> Without any better notion, I would simply chmod a +w  here for www, but
> I'd first like to ask if that's a good idea, as sometimes I've found
> that when I lack permission to do something, that it's more like keeping
> me from shooting myself in the foot.
>
> What would you do now?

I wouldn't be running as root.  You should almost never use root as a 
user account.  Rather, run as a user account with the appropriate 
permissions.  And set your directories up similarly.

But Linux permissions are off topic here.  You should be asking in an 
ubuntu group - where you'll get good advice for your OS-related questions.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-10 01:04 -0700
  Re: using scripting languages to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-10 10:03 +0100
  Re: using scripting languages to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-10 10:49 +0100
    getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-10 19:58 -0700
      Re: getting a php capability on ubuntu was Re: using scripting languages   to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 12:39 +0100
        Re: getting a php capability on ubuntu was Re: using scripting languages   to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-11 09:29 -0500
          Re: getting a php capability on ubuntu was Re: using scripting languages     to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 17:23 +0100
            Re: getting a php capability on ubuntu was Re: using scripting languages     to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-11 14:13 -0500
              Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 22:29 +0100
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-11 16:40 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-11 22:23 -0700
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-12 07:02 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages         to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-12 09:38 +0100
                Re: getting a php capability on ubuntu was Re: using scripting languages         to automate a browser "Peter H. Coffin" <hellsop@ninehells.com> - 2013-02-12 07:54 -0600
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-12 09:09 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 00:56 -0800
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-19 12:12 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-19 08:27 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 17:08 -0800
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser "Peter H. Coffin" <hellsop@ninehells.com> - 2013-02-12 07:50 -0600
                Re: getting a php capability on ubuntu was Re: using scripting languages       to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-12 14:28 +0000
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-12 15:29 +0100
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-17 08:48 +0100
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 01:19 -0800
                Re: getting a php capability on ubuntu was Re: using scripting   languages       to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-19 11:43 +0100
      Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Warren Post <warren@copaninvest.com> - 2013-02-11 07:40 -0600
        Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-11 13:20 -0700
          Re: getting a php capability on ubuntu was Re: using scripting languages   to automate a browser "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-11 22:32 +0100
          Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Captain Paralytic <paul_lautman@yahoo.com> - 2013-02-12 02:12 -0800
          Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Warren Post <warren@copaninvest.com> - 2013-02-12 07:42 -0600
            Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-12 14:27 +0000
              Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-12 21:09 -0700
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-13 06:14 -0500
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Allodoxaphobia <knock_yourself_out@example.net> - 2013-02-13 19:35 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser The Natural Philosopher <tnp@invalid.invalid> - 2013-02-13 23:40 +0000
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-13 23:48 -0700
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Kim André Akerø <kimandre@nospambetadome.com> - 2013-02-14 17:15 +0100
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Cal Dershowitz <cal@example.invalid> - 2013-02-19 01:27 -0800
                Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser Arno Welzel <usenet@arnowelzel.de> - 2013-02-19 11:44 +0100

csiph-web