What I've noticed running apache suexec + fastcgi is that the memory
requirements increased over running nonsuexec and mod_php under
apache. when i went to a nginx + fastcgi, things worked much better
overall with limited memory (i'm on 1GB limited slice, non-burstable).
--
PHP General Mailing
tamouse mailing lists wrote:
What I've noticed running apache suexec + fastcgi is that the memory
requirements increased over running nonsuexec and mod_php under
apache. when i went to a nginx + fastcgi, things worked much better
overall with limited memory (i'm on 1GB limited slice,
Am 04.08.12 11:51, schrieb Lester Caine:
tamouse mailing lists wrote:
What I've noticed running apache suexec + fastcgi is that the memory
requirements increased over running nonsuexec and mod_php under
apache. when i went to a nginx + fastcgi, things worked much better
overall with limited
will need a lot of storage
space for 1 users.
I see that in 5.4, PHP safe-mode is being removed. How is it supposed to be
done if not safe-mode?
It was the wrong solution to the problem.
But as with much that is happening on PHP today, killing things off is being
actioned without any real
The school I work with wants to set up PHP and MySQL hosting for about
10,000 students.
I see that in 5.4, PHP safe-mode is being removed. How is it supposed
to be done if not safe-mode?
Are all the hosting providers using suExec and running PHP as CGI or
FastCGI? If I'm trying to do
On May 11, 2008, at 12:06 AM, admin wrote:
[snip!]
Safe mode has _got_ to be there for some good reason.
Read on about PHP6
http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=dgr-lnxw01PHP-Future
Scroll down to where the title is Things removed - notice that
You could try having apache run as the UID of the user. With a few
modifications to apache site config and you should be golden!
HTH,
Wolf
-Original Message-
From: admin [EMAIL PROTECTED]
Sent: Sunday, May 11, 2008 1:06 AM
To: php-general@lists.php.net
Subject: [PHP] Safe mode story
Hi all,
I'm running a Plesk 8.3 mass hosting server equipped with PHP 5.1.6 on
CentOS 5, and I'm facing the problem of PHP Safe mode barfing at the
UID mismatch of PHP scripts uploaded by user's FTP UID, and later
executed by Apache UID, where user's PHP scripts thusly uploaded attempt
Your php.ini should have root as its owner and be set to 600, if your
using apache server then apache must start as root, the php.ini file is
read only once by root when the server starts - so that setting should
not cause problems, however if using the cli then you should also make
Hi:
I am running PHP 4.3.10 (cli) (built: Dec 11 2005 17:38:29) on SuSe 9.3 - and
am having some problems getting some scripts running.
php was compiled (by Suse) with:
Configure Command = './configure' '--prefix=/usr' '--datadir=/usr/share/php'
'--mandir=/usr/share/man' '--bindir=/usr/bin'
Doh -
I figured it out (for those who were interested). The permissions on
/etc/php.ini was set to 600 (owner == root). Changing this it other read, fixes
the issue.
Any idea why Suse would do this?
Thanks
-robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
-Original Message-
From: Bostjan Skufca @ domenca.com [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 28, 2005 1:38 PM
I would *never* host anything on a server with safe_mode on!
What are your reasons for this decision?
I correted it in a mail 5 minutes after.
With safe_mode
Hi everyone,
I created a patch which enables subdirectories to be created and used even if
PHP is running with safe mode enabled (common problem on shared hosts where
Apache/PHP runs as user 'nobody' or 'www').
Patch can be found here:
http://www.lenivec.com/php/patches/
Comments are welcome!
Bostjan Skufca wrote:
Hi everyone,
I created a patch which enables subdirectories to be created and used even if
PHP is running with safe mode enabled (common problem on shared hosts where
Apache/PHP runs as user 'nobody' or 'www').
Patch can be found here:
-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 26, 2005 6:29 PM
I presently require hosting with a company that has their servers in
Sweden,
and I need a shared hosting account,
any recommendations are welcome, the server is for a client.
I have
Ahem!
-Original Message-
From: Kim Madsen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 28, 2005 12:01 PM
I would *never* host anything on a server with safe_mode on!
s/safe_mode on/safe_mode off/
/Kim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hey Kim,
I would *never* host anything on a server with safe_mode on!
Just 1 day late :-( just bought hosting for a year with b-one.se :-(
Whats the main reasons you would never host with safe mode on?
and whats this:
s/safe_mode on/safe_mode off/
??
Thanks,
Ryan
--
PHP General Mailing
-Original Message-
From: Kim Madsen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 28, 2005 12:01 PM
I would *never* host anything on a server with safe_mode on!
What are your reasons for this decision?
regards,
Bostjan
--
PHP General Mailing List (http://www.php.net/)
To
Hey!
I presently require hosting with a company that has their servers in Sweden,
and I need a shared hosting account,
any recommendations are welcome, the server is for a client.
I have found quire a few via google but I noticed most of them are with
Safemode ON and Register_globals ON
which I
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 25 November 2004 00:47, SED wrote:
Then, shouldn't the owner be able to handle the new directory?
In my case, the owner creates the directory X but can't create a
SED wrote:
It just seems not making sence. I have read the manual and it does not
explain this specially.
If the user owns this folder: www\myfolders
And runs a PHP-script in safe mode that creates the folder
www\myfolders\who.
Who owns the who folder?
If the webserver is run under user nobody,
This answer from Mike solved this (e.g. create a CGI process for this task):
[...]
So, yes, you can create a directory which it is then impossible to access --
this is an unfortunate side-effect of safe mode when PHP runs as an Apache
module and hence as the Apache user. This is why hosted
Hi,
I have very wierd situation. The ISP is running in SAFE MODE.
I use PHP to create a directory with mkdir(something, 0777), it works
great!
However, if I try to create a sub-directory (e.g. something2) in the
something directory, I get the following:
Warning: SAFE MODE Restriction in
SED wrote:
Hi,
I have very wierd situation. The ISP is running in SAFE MODE.
I use PHP to create a directory with mkdir(something, 0777), it works
great!
However, if I try to create a sub-directory (e.g. something2) in the
something directory, I get the following:
Warning: SAFE MODE Restriction in
of the
function?
Regards,
Summi
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 25. nóvember 2004 00:05
To: SED
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] SAFE MODE Restriction - mkdir()
SED wrote:
Hi,
I have very wierd situation. The ISP is running in SAFE MODE
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 25. nóvember 2004 00:05
To: SED
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] SAFE MODE Restriction - mkdir()
SED wrote:
Hi,
I have very wierd situation. The ISP is running in SAFE MODE.
I use PHP to create a directory with mkdir
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 25. nóvember 2004 01:13
To: SED
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] SAFE MODE Restriction - mkdir()
SED wrote:
Then, shouldn't the owner be able to handle the new directory?
In my case, the owner creates
Hi sed,
which version of PHP you using? may not be just Safe Mode. is it
the script working well before the safe mode is on?
yours,
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Regards,
Summi
-Original Message-
From: Michael Leung [mailto:[EMAIL PROTECTED]
Sent: 25. nóvember 2004 03:21
To: SED
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] SAFE MODE Restriction - mkdir()
Hi sed,
which version of PHP you using? may not be just Safe Mode. is it the
script working
Hi,
I have faced the same problem after the upgrade my server from php
4.2.2 to php 5.0.2. I tested mkdir() in both in safe_mode on and off.
I have posted this to php-bug.
yours,
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paulo JF Silva wrote:
Hi,
I have PHP 4.3.5 and safe mode on. When I create a new image with
imagecreatefromjpeg(), the image owner is 'httpd' and not my ftp user.
[this is in a shared host].
I would like to know if there is any way to create the image with my
user... I can workaround mkdir
* Thus wrote Paulo JF Silva:
Hi,
I have PHP 4.3.5 and safe mode on. When I create a new image with
imagecreatefromjpeg(), the image owner is 'httpd' and not my ftp user.
[this is in a shared host].
I would like to know if there is any way to create the image with my
user... I can
Hi,
I have PHP 4.3.5 and safe mode on. When I create a new image with
imagecreatefromjpeg(), the image owner is 'httpd' and not my ftp user.
[this is in a shared host].
I would like to know if there is any way to create the image with my
user... I can workaround mkdir stuff with ftp access
Hello all...
I finally have an upload script partly working but am not running into
this problem.
I have this code which executes when the user visits the image upload page:
snip
if (!file_exists(../images/property_$id)){
mkdir(../images/property_$id, 0700);}
$upload_dir =
blackwater dev wrote:
Hello all...
I finally have an upload script partly working but am not running into
this problem.
I have this code which executes when the user visits the image upload page:
snip
if (!file_exists(../images/property_$id)){
mkdir(../images/property_$id, 0700);}
$upload_dir =
so do this each time?
I need a routine that will dynamically create a folder, then use that
folder to upload images. This problem doesn't exists just on one
directory but on all directories dynamically created.
Thanks!
On Wed, 29 Sep 2004 21:48:05 +0200, Marek Kilimajer [EMAIL PROTECTED]
blackwater dev wrote:
so do this each time?
I need a routine that will dynamically create a folder, then use that
folder to upload images. This problem doesn't exists just on one
directory but on all directories dynamically created.
I mean PHP ftp functions. http://www.php.net/ftp
Thanks!
On Wed,
Ok. How about set the safe_mode_exec_dir to /dev/null then ?
On Wed, 30 Jun 2004 21:55:17 -0700, Justin Patrin [EMAIL PROTECTED] wrote:
YES. You need to set the safe_mode_exec_dir path to be some path
without binaries. Such as: /etc, although that's a bad example. Make a
directory with only
That *may* not work as it's a file, not a folder. You're welcome to
try, though. :-)
On Fri, 2 Jul 2004 14:19:25 -0400, robert mena [EMAIL PROTECTED] wrote:
Ok. How about set the safe_mode_exec_dir to /dev/null then ?
On Wed, 30 Jun 2004 21:55:17 -0700, Justin Patrin [EMAIL PROTECTED]
Ok. It did not worked. I had to create an empy dir.
Well, one problem.
Since I have users with ftp access and they host php scripts that
handle file uploads. The files are created with apache.apache and
are usually moved to the user's directory using move_uploaded_file.
Since the owner/gorup
Hi,
I host a few virtual domains in apache 2 and use php.
The virtual domain is something like
VirtualHost a.b.c.d:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/httpd/html/domain.com
ServerName www.domain.com
ErrorLog logs/domain.com-error_log
robert mena wrote --- napísal::
Hi,
I host a few virtual domains in apache 2 and use php.
The virtual domain is something like
VirtualHost a.b.c.d:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/httpd/html/domain.com
ServerName www.domain.com
ErrorLog
Marek,
but the program was executed using a system call from a php script.
- rt
On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
robert mena wrote --- napísal::
Hi,
I host a few virtual domains in apache 2 and use php.
The virtual domain is something
On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
robert mena wrote --- napísal::
Hi,
I host a few virtual domains in apache 2 and use php.
The virtual domain is something like
VirtualHost a.b.c.d:80
ServerAdmin [EMAIL PROTECTED]
Thats just what he said :p
Robert Mena wrote:
Marek,
but the program was executed using a system call from a php script.
- rt
On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
robert mena wrote --- napísal::
Hi,
I host a few virtual domains in apache 2 and use php.
The
robert mena wrote --- napísal::
Marek,
but the program was executed using a system call from a php script.
- rt
And that's what I mean. Every fopen call (almost) in the php binary is
wrapped around the safe mode checks. But once you leave the php binary,
or even load a php module that does not
Justin Patrin wrote --- napísal::
On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
robert mena wrote --- napísal::
Hi,
I host a few virtual domains in apache 2 and use php.
The virtual domain is something like
VirtualHost a.b.c.d:80
ServerAdmin [EMAIL PROTECTED]
Marek, Justin,
am I doing something wrong with the setup because I saw the logs and a
redeye.php was used to system(perl -) and was not supposed to.
On Thu, 01 Jul 2004 00:32:07 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
Justin Patrin wrote --- napísal::
On Wed, 30 Jun 2004
YES. You need to set the safe_mode_exec_dir path to be some path
without binaries. Such as: /etc, although that's a bad example. Make a
directory with only root write access and point that config option to
it.
On Wed, 30 Jun 2004 22:31:27 -0400, robert mena [EMAIL PROTECTED] wrote:
Marek,
HI,
goole.com found so many details about safe mode too much to understand.
My hosting provider set php safe mode = enable . so iam unable to use so
many scripts .
can any one give good free image gallery software which will work under
safe mode = enable .
is it true that with apache 2.x
Ravi kumar wrote:
HI,
goole.com found so many details about safe mode too much to understand.
My hosting provider set php safe mode = enable . so iam unable to use so
many scripts .
can any one give good free image gallery software which will work under
safe mode = enable .
is it true
Can safe mode be turned off in the .htaccess file?
I don't know the gallery script but setting safe_mode_include_dir should
help. Ask the admin to set it to your directory for your virtual host.
Another option would be to use ftp functions to upload the images to
your directory, but you
On Monday 23 February 2004 00:55, [EMAIL PROTECTED] wrote:
Can safe mode be turned off in the .htaccess file?
[snip]
According the safe-mode page http://us4.php.net/features.safe-mode in
http.conf :
Directory /docroot
php_admin_value open_basedir /docroot
# In your case
According the safe-mode page http://us4.php.net/features.safe-mode in
http.conf :
Directory /docroot
php_admin_value open_basedir /docroot
# In your case safe_mode_include_dir
/Directory
Can php_admin_value be inlcuding in the *.php pages and/or .htaccess.
manual ini_set()
It would seem
Hi,
I'm running PHP4.3 with Apache 1.3.26 on Linux with a number of vittual domains.
Safe_mode is set by default for obvious reasons.
I wan't to install gallery
http://gallery.menalto.com/modules.php?op=modloadname=Newsfile=index
It requires to be run without safe_mode.
Is it possible to set
On Saturday, Feb 21, 2004, at 09:18 America/New_York,
[EMAIL PROTECTED] wrote:
Is it possible to set Apache in such a way that everyting is run under
safe-mode, except for a directory and everything underneath in a
virtual domain?
Very likely yes, if your admin permits it. The place to look
Lucas Gonze wrote:
On Saturday, Feb 21, 2004, at 09:18 America/New_York,
[EMAIL PROTECTED] wrote:
Is it possible to set Apache in such a way that everyting is run under
safe-mode, except for a directory and everything underneath in a
virtual domain?
Very likely yes, if your admin permits it.
On Saturday, Feb 21, 2004, at 20:17 America/New_York,
[EMAIL PROTECTED] wrote:
Lucas Gonze wrote:
On Saturday, Feb 21, 2004, at 09:18 America/New_York,
[EMAIL PROTECTED] wrote:
Is it possible to set Apache in such a way that everyting is run
under safe-mode, except for a directory and
Lucas Gonze wrote:
On Saturday, Feb 21, 2004, at 20:17 America/New_York,
[EMAIL PROTECTED] wrote:
Lucas Gonze wrote:
On Saturday, Feb 21, 2004, at 09:18 America/New_York,
[EMAIL PROTECTED] wrote:
Is it possible to set Apache in such a way that everyting is run
under safe-mode, except for a
Hello,
This is a reply to an e-mail that you wrote on Fri, 20 Jun 2003 at 01:40,
lines prefixed by '' were originally written by you.
Hi,
safe mode on and mass mailing wished. I know that it's not possible to
set
the time limit, when safe mode is on. Sure mass mailing using mail
function
Hi,
safe mode on and mass mailing wished. I know that it's not possible to set
the time limit, when safe mode is on. Sure mass mailing using mail function
takes longer than default execution time of the script. My codes should be
portable, that why modification of php.ini is not an option. The
How can I disable the Safe Mode for a php 4.3.2 compiled on linux with
--enable-safe-mode.
The problem is I can't touch the machine so I can't test if I change the setting in
the php.ini it just ignore the flag and I don't have the posibility to reproduce this
on my server.
Even a link to
Getting the below error from a php site I am developing. I am using a new
server so I guess it is a php configuration thing, but how do I fix it.
Ben
Warning: SAFE MODE Restriction in effect. The script whose uid is 510 is
not allowed to access /home/virtual/site4/fst/var/www/html/test owned
$dp = opendir( $currdir );
Basically it seems like I need to turn 'SAFE MODE' off but I dont really
know what it it or how to turn it off.
In fact I am not sure where the config file is on a *nix box or what is it
called.
Ben
At 15:58 09/06/2003 +0200, winst0n wrote:
what does the line
Changed it to dir but not made any difference. I have root access to the
server so could change php.ini.
However
; Safe Mode
;
safe_mode = Off
; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
I've enabled safe mode on my local test server, but it doesn't seem to
be working. If I run a script owned by one user (me), and within it
include (using include()) another script or file owned by another user,
the include is successful, whereas it shouldn't be in safe mode.
I can verify
More safe mode questions:
I'm using the standard binary distribution of PHP on Mac OS X -- the
one managed by Marc Liyanage, not the one that ships with OS X -- and
can't seem to get safe mode working. I can turn it on and it doesn't
generate any errors, but it doesn't restrict access to
Hi all
I'm having troubles with the safe mode. My ISP has safe mode ON.
Now i'm busy accessing files, deleting uploaded files, moving them and so
on. Different actions are performed by different scripts.
I want to make use of functions like stat() and so on, but each time I get
the warning:
itself which created the page.
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 12:39 PM
To: Gurvinder Singh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] safe mode problem
what you did should work (you must be root to change owner). You can
what you did should work (you must be root to change owner). You can use
-R switch to change owner recursively
Gurvinder Singh wrote:
hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script i get this error
Warning:
At 11:39 3-2-03, you wrote:
what you did should work (you must be root to change owner). You can use
-R switch to change owner recursively
Gurvinder Singh wrote:
hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script
and how can i be root from a php script?
i want chown from the script itself which created the page.
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 12:39 PM
To: Gurvinder Singh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] safe mode problem
hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script i get this error
Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not
allowed to access file.php owned by uid 831
Is there a way to handle
Hello all,
I'm having a bit of a problem making a particular configuration with PHP
and Apache. Here's the deal:
I want to have php running with safe mode, so i define safe mode = On on
/etc/php.ini.
I have this script that i need to execute two programas, with exec().
So, in apache, i define a
Hello,
I'm working with Safe mode and I have a big trouble how the PHP is behaved. I have the
web root and under them is directory, where my scripts are. This is my situation:
rwxr-xr-x www www /var/www/htdocs Web root
rwxr-xr-x www www /var/www/htdocs/test
Hi Everyone,
I have a small question and just need some general direction, tried the
mothership(google) but got too many results and got more confused.
What is safe mode?
If you have any URL or file that can explain it kindly give it to me...
cheers and thanks again,
-Ryan.
Try the "mothership" again and type
php and "safe mode"
Click "Search". The first two results:
http://www.dynamic-webpages.de/php/features.safe-mode.php
http://info.ccone.at/INFO/PHP4/features.safe-mode.html
You can read only ONE so as not to get more confused... :)
- E
PS
Of course,
CTED]
Sent: Sunday, September 01, 2002 2:49 PM
Subject: Re: [PHP] Safe mode? newbie alert!
Try the "mothership" again and type
php and "safe mode"
Click "Search". The first two results:
http://www.dynamic-webpages.de/php/features.safe-mode.php
http://info.cc
Hi,
I was discussing with a friend at a webhost I use and they have been experience a
wierd problem recently with their php safe mode, I went to help and after spending a
while in the bug database I couldn't find anything to explain it.
Basically every time you view a phpinfo page
I have compiled and installed php4.2.1 on my linux www server that runs
apache. Since we have many virtual hosts and utilize suexec I decided to
install php as a binary and be able to use php as a cgi binary. I am able to
run my php scripts through suexec which is great. The problem is that any
How do i setup safe mode scripting (each script has a different uid) on my
win32, apache, php setup? my plesk host has to use it and i want to be able
to test my scripts on my own computer.
i set safe mode = On in my php.ini file but the script still lets me
include a file, whereas the script on
On our server, PHP's compiled in Apache with --enable-safe-mode as well as
the master php.ini file having safe_mode turned on. Does this override
whatever's in an Apache configuration file? One of my vhosts has the following
bit in it:
IfModule mod_php4.c
php_value include_path
You need to use php_admin_flag for safe_mode.
But I wouldn't expect any effect here since you defaulted it to On and in
your httpd.conf you are turning it on... So what are you expecting to see
different?
-Rasmus
On Fri, 26 Apr 2002, Ashley M. Kirchner wrote:
On our server, PHP's
Rasmus Lerdorf wrote:
You need to use php_admin_flag for safe_mode.
And I suppose this page has an error on it then:
http://www.php.net/manual/en/configuration.php
Since it states php_flag, not php_admin_flag...
--
Example 3-2. Apache configuration example
IfModule
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ashley M. Kirchner) wrote:
Rasmus Lerdorf wrote:
You need to use php_admin_flag for safe_mode.
And I suppose this page has an error on it then:
http://www.php.net/manual/en/configuration.php
Since it states php_flag, not
On Tue, 9 Apr 2002, Richard Lynch wrote:
So, what's up with this:
PHP /www/herolist.com/web/categories.html: 105 2 SAFE MODE
Restriction in effect. The script whose uid is 1065 is not allowed
to access /www/herolist.com/web/pictures/TERISBROTHER1thum.jpg owned
by uid 1056
Note that
Okay...
I understand SAFE MODE limits me to opening files owned by the same
user as owns the script, right?...
So, what's up with this:
PHP /www/herolist.com/web/categories.html: 105 2 SAFE MODE
Restriction in effect. The script whose uid is 1065 is not allowed
to access
On Tue, 9 Apr 2002, Richard Lynch wrote:
So, what's up with this:
PHP /www/herolist.com/web/categories.html: 105 2 SAFE MODE
Restriction in effect. The script whose uid is 1065 is not allowed
to access /www/herolist.com/web/pictures/TERISBROTHER1thum.jpg owned
by uid 1056
Note that
I and my www space provider have fought with a problem All
files/directories created by PHP are owned by nobody/nobody and we want
them to be created by my own uid/guid How this would be solved by least
amount of modification in the scripts
The problem is in that safe mode requires that the
The easiest way to make this work is to use open_basedir settings instead
of safe_mode Safe_mode is specifically created to prevent you from doing
what you are trying to do
-Rasmus
On Fri, 1 Mar 2002, Mika Lindqvist wrote:
I and my www space provider have fought with a problem All
]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 1:21 PM
Subject: [PHP] safe mode and file handling
I and my www space provider have fought with a problem. All
files/directories created by PHP are owned by nobody/nobody and we want
them to be created by my own uid/guid. How this would
Apache server with PHP module
Apache user is nobody:nobody
Virtual user is user1:user1
in VirtualHost we have
VirtualHost ip.add.re.ss
DocumentRoot /www/user1
Directory /www/user1
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
On Thu, 2002-02-21 at 10:44, Dave wrote:
Apache server with PHP module
Apache user is nobody:nobody
Virtual user is user1:user1
[snip]
Ideas or suggestions appreciated.
Dave
Well, this isn't really a PHP issue, but what the hell. If you need to
do filesystem stuff as a certain user, the
Hello!
I'm trying to create a directory, let's say: /some/dir. My script
(create_dir.cgi) is located at the cgi-bin directory and begins with
#!/usr/bin/php. So it's like any other script, isn't it?
The problem is: running php in safe mode with the script permissions:
rwxr-xr-x 8
Hey all,
I just finished an article on Safe Mode control for PHP but it is based on
non-Win32 systems. Can somebody with a bit more experience in Win32 servers
take a look at it and let me know what can be done to achieve, if not the
same level of control then close to it, on a Win32 platform?
Hi List,
My ISP runs the PHP in Safe Mode, this is causing me a lot of trouble. In
safe mode how can I change the permission of a dir to 0777?, my problem is
that I've built a Content management system, and for every new people
inserted the system creates a Directorie and will upload things
.
- Original Message -
From: Rodrigo Peres [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 2:02 PM
Subject: [PHP] Safe mode and dir permissions
Hi List,
My ISP runs the PHP in Safe Mode, this is causing me a lot of trouble. In
safe mode how can I change the permission
Is it possible to use safe mode yet allow all scripts to include any files
from /usr/share/php? Normal users ain't gonna have *write* access to that
directory, so it shouldn't be much of a security concern, I just don't know
how to do this. I know that I can disable safe_mode and enable
A recent feature addition (4.0.7) is a safe_mode_include_dir php.ini
directive where you can do exactly this.
-Rasmus
On Sun, 26 Aug 2001, Artyom Plouzhnikoff wrote:
Is it possible to use safe mode yet allow all scripts to include any files
from /usr/share/php? Normal users ain't gonna
Hi everyone.
I have trouble uploading files while in safe mode
.Warning: SAFE MODE Restriction in effect. The script whose uid is 206 is
not allowed to access /tmp/php6wtDUc owned by uid 0
Can someone help me pass around this problem?
--
PHP General Mailing List (http://www.php.net/)
To
1 - 100 of 104 matches
Mail list logo