Re: Weird permission issue

From: Date: Fri, 10 May 2019 05:50:35 +0000
Subject: Re: Weird permission issue
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-326806@lists.php.net to get a copy of this message
On Fri, May 10, 2019 at 12:24 PM Larry Martell <larry.martell@gmail.com> wrote: > On Thu, May 9, 2019 at 11:28 PM Guang Chao <guang.chao.1974@gmail.com> > wrote: > > > > > > > > On Wed, May 8, 2019 at 3:34 AM Larry Martell <larry.martell@gmail.com> > wrote: > >> > >> I have a PHP app and it runs from /var/www/html/foo. It writes to a > >> log file in there log.txt. To do some testing I created a dir > >> /var/www/html/foo.new and installed the code there. To switch back and > >> forth I do this: > >> > >> mv /var/www/html/foo /var/www/html/foo.old > >> mv /var/www/html/foo.new /var/www/html/foo > >> > >> When I do that I get an error writing to the log file: > >> > >> Error #2: fopen(/var/www/html/foo/log.txt): failed to open stream: > >> Permission denied > >> > >> But if I switch back: > >> > >> mv /var/www/html/foo /var/www/html/foo.new > >> mv /var/www/html/foo.old /var/www/html/foo > >> > > > > Apologize if off topic, but I would recommend changing config file > rather than doing mv on folders. > > Since it's an SELinux issue that would not help. > I agree. Just suggestion for convenience -- Guang <http://javadevnotes.com/string-tokenize-in-groovy>

« previous php.general (#326806) next »