By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,329 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

PHP-4.3.2 specific safe_mode problem

P: n/a
Hi.

I am having a problem with safe_mode in PHP-4.3.2. I was running an
Apache-1.3.27 web server on solaris8 with PHP-4.3.1 with safe_mode on -
and everything was working fine. Yesterday, I upgraded to Apache-1.3.28
and PHP-4.3.2 with the same settings as before - but safe_mode was acting
strange. A script with a specific group was not allowed to access another
file with the same group - and safe_mode_gid is on. The error log says the
following:

"PHP Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid/gid is 1/7177 is not allowed to access menu.txt owned by uid/gid 7742/10 in ..."

But those UID/GID are the wrong ones. They do in fact match the file.
After hours of trying to figure out the problem, I decided to replace the
present PHP-4.3.2 with PHP-4.3.1 with the exact same settings. And it
worked.

I have asked Google for help and looked in the PHP changelog without any
luck.

Am I the only one with that problem?

Thanks in advance,
Henrik

--
Henrik Oddershede, he****@cs.auc.dk
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Henrik
It has been my experience with safe mode that all files (text data,
includes, and scripts) all need to be owned by the same uid/gid in order to
function correctly. They are really tightening up safe mode.... If you are
bouncing in and out of perl you should also make sure the perl scripts are
owned by the right user.

I run and develop exclusively in safe mode so am familiar with the
(sometimes confusing) issues associated with safe mode.

thx,
Neil

"Henrik Oddershede" <he****@cs.auc.dk> wrote in message
news:Pi**************************************@fire 2.cs.auc.dk...
Hi.

I am having a problem with safe_mode in PHP-4.3.2. I was running an
Apache-1.3.27 web server on solaris8 with PHP-4.3.1 with safe_mode on -
and everything was working fine. Yesterday, I upgraded to Apache-1.3.28
and PHP-4.3.2 with the same settings as before - but safe_mode was acting
strange. A script with a specific group was not allowed to access another
file with the same group - and safe_mode_gid is on. The error log says the
following:

"PHP Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid/gid is 1/7177 is not allowed to access menu.txt owned by uid/gid 7742/10
in ..."
But those UID/GID are the wrong ones. They do in fact match the file.
After hours of trying to figure out the problem, I decided to replace the
present PHP-4.3.2 with PHP-4.3.1 with the exact same settings. And it
worked.

I have asked Google for help and looked in the PHP changelog without any
luck.

Am I the only one with that problem?

Thanks in advance,
Henrik

--
Henrik Oddershede, he****@cs.auc.dk

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.