FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » using scripting languages to automate a browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser [message #180429 is a reply to message #180427] Wed, 13 February 2013 11:14 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
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(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CMS Recommendation
Next Topic: On click button in php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:13:59 GMT 2024

Total time taken to generate the page: 0.04109 seconds