0

I've got an app that works fine in the browser, but when run through the command line, throws a permission error (related to folder creation).

What could be the reason?

1 Answer 1

4

The fact that it will run as the apache user when you execute it in the browser and as another user when you started it from the command line, which might not have access rights in all the necessary directories.

3
  • Can I use the apache user through the command line? Sep 13, 2011 at 12:29
  • 1
    Might be possible but is not recommended. Better try to fix your permissions.
    – Sven
    Sep 13, 2011 at 12:32
  • 1
    @Emanuil Rusev .. you could try su - apache and then running it: but as SvenW said, it's not a good idea
    – warren
    Sep 13, 2011 at 14:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .