473,732 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

safe mode / directories

Hi,

I created a directory with PHP mkdir (mode 0777). Then I try to
move_ulpoaded_f ile() to move a file into this directory. I get an error:

Warning: move_uploaded_f ile(): SAFE MODE Restriction in effect. The script
whose uid is 1999 is not allowed to access
/home/www/ww4592/html/fs/PHP/Dateien/Bereich_1/NEUER_ORDNER owned by uid 33
in /home/www/ww4592/html/fs/PHP/File.php on line 57

The webspace is at a webhost-company, not on my own server. I think I
understand the restrictions of SAFE MODE, but I do not understand why a
script has another uid than a directory created by the very same script!

Is the error above the "normal" bevaviour if SAFE MODE is on?

If it is: That is a drastic limitation. If I say to a client "I need
webspace with PHP" and I get that SAFE MODE-stuff would it not be right to
say that that is no fully working PHP-Webspace? I mean a webspace that does
not allow a directory to be created and a file moved into it does not really
support PHP -- it's a joke! Any opinions?

Thanks and sorry for my maybe bad English,
Paul Schmidinger
-- www.eigelb.at
Jul 17 '05 #1
2 2373
that's a known php-bug. try to email hoster and ask him to disable
userid check in safe-mode...

Jul 17 '05 #2
Paul Schmidinger wrote:
Hi,

I created a directory with PHP mkdir (mode 0777). Then I try to
move_ulpoaded_f ile() to move a file into this directory. I get an
error:
Warning: move_uploaded_f ile(): SAFE MODE Restriction in effect. The
script whose uid is 1999 is not allowed to access
/home/www/ww4592/html/fs/PHP/Dateien/Bereich_1/NEUER_ORDNER owned by
uid 33 in /home/www/ww4592/html/fs/PHP/File.php on line 57

The webspace is at a webhost-company, not on my own server. I think I
understand the restrictions of SAFE MODE, but I do not understand why
a script has another uid than a directory created by the very same
script!
Is the error above the "normal" bevaviour if SAFE MODE is on?

If it is: That is a drastic limitation. If I say to a client "I need
webspace with PHP" and I get that SAFE MODE-stuff would it not be
right to say that that is no fully working PHP-Webspace? I mean a
webspace that does not allow a directory to be created and a file
moved into it does not really support PHP -- it's a joke! Any
opinions?
Thanks and sorry for my maybe bad English,
Paul Schmidinger
-- www.eigelb.at


Ask host to set a more relaxed GID check
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5164
by: Giobibo | last post by:
Hi. I want to send mail with the function mail(). I am on a shared server in SAFE MODE. When I send a mail I get the message: "SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE" But I need the fifth parameter, because it is the only way to set my
0
2213
by: Yemi | last post by:
Hi There. I seem to be getting some inconsistent results when using passthru() in safe mode. They appear to be related to the fact that passthru should treat all command arguments as one single argument when safe mode is on. Everything works just fine on my MacOS X webserver ( Apache 1.3.29 with PHP 4.3.6 ). But on my Linux Enterprise 3.0 production server (running Apache 2.0.46 with PHP 4.3.2) things are different.
3
4424
by: Jeremy Shovan | last post by:
What do I need to change to use the opendir() function when safe mode is in affect?? I have root access to the server and can make any changes neccessary except turn safe mode off Thanks in advance, Jeremy
0
1614
by: Pjotr Wedersteers | last post by:
(Suse 9.0, Apache 2.048, PHP 4.3.3 - all default install from SuSe ISO) I have in my wwwroot folder (/srv/www/htdocs) a folder called counters. I have embedded a page counter script into several of the webpages I wrote/maintain. ls -lias for htdocs, and below the one for htodocs/counters 5197 1 drwxr-xr-x 8 pjotr root 480 Aug 1 09:36 htdocs 131618 2 drwxrwxrwx 2 pjotr users 1592 Aug 3 17:23
4
3657
by: pdav | last post by:
Hi! Is there any solution to create a directory with one script with mkdir(), and then write a file (or move an uploaded file) in this directory with another script? The problem is, that the directory belongs to the PHP-interpreter (UID 33 in my case) and the script doing the file creation and the one creating the directory belong to the FTP-user (UID 754 in my case).
2
6195
by: Joseph S. | last post by:
Hi all, Consider this case: I have a free php hosting account (a LAMP host) with an account name (also the name of my directory) 'sample'. Under 'sample', I have php scripts which can create files and folders programmatically. I have manually created a directory called 'users' under 'sample' and have given it a chmod 777 successfully. >From my script in 'sample', say myscript.php, I can successfully create any number of files inside...
1
3495
by: Sephi | last post by:
Hello, I'm trying to disable safe mode from my php installation. First because this functionality will be removed in PHP6, and because it's very restrictive and it's giving me headaches when configuring frameworks and other applications. Moreover, it's said on the php website that the safe mode solution is not a good thing... I'm looking for a tutorial which indicates what to configure on a server in order to have a secured installation...
5
3332
by: rdlowrey | last post by:
Hi, I'm pulling my hair out trying to make this work and any help would be appreciated ... When I try to move the uploaded file: move_uploaded_file($_FILES,"/var/www/vhosts/ mydomain.com/intranet/httpdocs/lib/slips/in/$filename.pdf"); I get the following error: Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/
7
242
by: bvdp | last post by:
I'm finding my quest for a safe eval() quite frustrating :) Any comments on this: Just forget about getting python to do this and, instead, grab my set of values (from a user supplied text file) and call an external program like 'bc' to do the dirty work. I think that this would avoid someone from embedding os.system("rm ...") in what I thought would be a math expression and having it maybe do damage? Perhaps I'm getting too paranoid in...
0
8944
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9306
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9234
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6733
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3259
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.