473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PHP-4.3.2 specific safe_mode problem

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
1 2186
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
4
by: Japhy | last post by:
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display...
59
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
8
by: Marcel | last post by:
I have a problem with a PHP page that seems to get executed twice. I am running PHP5 ISAPI on 2003 server. The script is a PHP page with a form. When the form is submitted one record have to...
1
by: jdurden | last post by:
am currently woking on building this site: www.maverick-spirit.com. everything seems to be fine except the press releases page. When you click on one of the press releases in the left column under...
1
by: ansc1 | last post by:
Hello, I'm new to using php coding. I need help with the following: 1. There is a submit button on the form and is saves information to my database. After clicking on "Save Measurement" it...
0
by: Benjamin Grieshaber | last post by:
Hi, I´m on SuSE 9.3 with xmlrpc-c and xmlrpc-c-devel installed (ver. 0.9.10) I tried to compile php with xmlrpc support and got the following errors: ...
9
by: mekalai82 | last post by:
i have information.php file that file contain following coding <?php echo phpinfo(); ?> while i calling the URL ("http://localhost/information.php"). i am getting the coding <?php echo...
0
by: Patriot89 | last post by:
I have a quick question in reference to php file extenstions... I have code for example like this... This is all located on this site www.ixalliance.com/BHS/Default (This is my nav.php file) ...
4
by: mechphisto | last post by:
I'm working on a friend's box, Fedora Core 6. It has PHP 5.1.6. I need to install mcrypt into it, and the only way I can find to do it is from source then recompile PHP. So I did all that, and got...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.