Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser [message #180427 is a reply to message #180424] |
Wed, 13 February 2013 04:09 |
Cal Dershowitz
Messages: 36 Registered: February 2013
Karma:
|
Member |
|
|
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?
--
Cal
|
|
|