All files are owened by my Apache user + Group, set to rw access on files and rwx on directories...
I do a chown + chmod on my web server's tree every few minutes via cron for my development system. Just to proove my point... root@netsonic:~# ls -l /usr/local/www/v-webs/games.savage.za.org/html/index.php -rw-r----- 1 www www 2512 Nov 24 22:16 /usr/local/www/v-webs/games.savage.za.org/html/index.php root@netsonic:~# cat /usr/local/etc/apache/httpd.conf|grep User User www ----- Original Message ----- From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Monday, November 25, 2002 8:19 PM Subject: Re: [PHP] Upgrade issues > Check the owners of directories and files, they must be the same as for > /usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should > work under > safe mode too. > > > Chris Knipe wrote: > > >>>>> if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) > >>>>> > >>>>> > >{ > > > > > >>>>> $modpath = "themes/$ThemeSel/"; > >>>>> } > >>>>> > >>>>>I don't get it? > >>>>> > >>>>>Warning: Unable to access themes/DeepBlue/modules/News/index.php in > >>>>>/usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46 > >>>>> > >>>>>Line 46 is the if statement > >>>>> > >>>>> > >>>>If you have using a new php.ini file, perhaps you can compare it with > >>>> > >>>> > >an > > > > > >>>old > >>> > >>> > >>>>one and see if there's anything different--might give you a hint. > >>>> > >>>> > >>>Yeah, and no. It's FreeBSD-Ports, my php.ini is unchanged. FreeBSD > >>>installs the new / updated ini files as ini-dist, so hence, nothing on > >>> > >>> > >my > > > > > >>>settings has changed. I did also check to verify this, and it is indeed > >>> > >>> > >>the > >> > >> > >>>correct ini file, with the correct settings... > >>> > >>> > >>> > >>>>But then again, perhaps the problem is somewhere else... (i.e. file is > >>>> > >>>> > >>not > >> > >> > >>>>there, permissions, etc.) > >>>> > >>>> > >>>Yes the file does not exist. But isn't that why file_exists() is there? > >>> > >>> > >>Right, I might be typing faster than I am thinking... :) > >> > >>Still, just make sure that PHP is using the php.ini file that you think > >> > >> > >it's > > > > > >>using. The file that _you_ check didn't change but _php_ might be looking > >>somewhere else... Of course, I could be wrong--haven't used > >>FreeBSD/Ports--only linux. > >> > >> > > > >As ridiculous as this sounds... > > > >Turning of safe mode made the warning go away. Now, I guess the question > >is, 1) is this a bug in the file_exists() function, or 2) does the default > >warning levels increase when operating under safe mode? > > > >Either way, this never happened to me before, and is only now happening > >since upgrading from 4.2.1 to 4.2.2... > > > >Rather peculiar I think... > > > >-- > >me > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php