Re: [PHP] php safe mode no more?

2012-08-04 Thread tamouse mailing lists
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

Re: [PHP] php safe mode no more?

2012-08-04 Thread 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 memory (i'm on 1GB limited slice,

Re: [PHP] php safe mode no more?

2012-08-04 Thread Marco Behnke
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

Re: [PHP] php safe mode no more?

2012-08-03 Thread Lester Caine
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

[PHP] php safe mode no more?

2012-08-02 Thread D. Dante Lorenso
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

Re: [PHP] Safe mode story

2008-05-14 Thread Philip Thompson
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

RE: [PHP] Safe mode story

2008-05-11 Thread Wolf
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

[PHP] Safe mode story

2008-05-10 Thread admin
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

Re: [PHP] safe mode question

2006-01-09 Thread James Benson
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

[PHP] safe mode question

2006-01-08 Thread Robin
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'

Re: [PHP] safe mode question

2006-01-08 Thread Robin
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:

RE: [PHP] safe mode

2005-07-29 Thread Kim Madsen
-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

[PHP] Safe mode subdirectory workaround patch

2005-07-29 Thread Bostjan Skufca
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!

Re: [PHP] Safe mode subdirectory workaround patch

2005-07-29 Thread John Nichel
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:

RE: [PHP] safe mode

2005-07-28 Thread Kim Madsen
-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

RE: [PHP] safe mode

2005-07-28 Thread Kim Madsen
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:

RE: [PHP] safe mode

2005-07-28 Thread Ryan A
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

Re: [PHP] safe mode

2005-07-28 Thread Bostjan Skufca @ domenca.com
-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

[PHP] safe mode

2005-07-26 Thread Ryan A
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

RE: [PHP] SAFE MODE Restriction - mkdir()

2004-11-25 Thread Ford, Mike
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

Re: [PHP] SAFE MODE Restriction - mkdir()

2004-11-25 Thread Marek Kilimajer
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,

RE: [PHP] SAFE MODE Restriction - mkdir()

2004-11-25 Thread SED
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

[PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread SED
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

Re: [PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread Marek Kilimajer
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

RE: [PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread SED
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

Re: [PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread Marek Kilimajer
-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

RE: [PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread SED
-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

Re: [PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread Michael Leung
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

RE: [PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread SED
. 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

Re: [PHP] SAFE MODE Restriction - mkdir()

2004-11-24 Thread Michael Leung
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

Re: [PHP] Safe mode imagecreatefromjpeg

2004-10-13 Thread Marek Kilimajer
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

Re: [PHP] Safe mode imagecreatefromjpeg

2004-10-09 Thread Curt Zirzow
* 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

[PHP] Safe mode imagecreatefromjpeg

2004-10-08 Thread 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 workaround mkdir stuff with ftp access

[PHP] safe mode?

2004-09-29 Thread blackwater dev
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 =

Re: [PHP] safe mode?

2004-09-29 Thread Marek Kilimajer
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 =

Re: [PHP] safe mode?

2004-09-29 Thread blackwater dev
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]

Re: [PHP] safe mode?

2004-09-29 Thread Marek Kilimajer
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,

Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread robert mena
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

Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread Justin Patrin
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]

Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread robert mena
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

[PHP] safe mode/open basedir not working ?

2004-06-30 Thread robert mena
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

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread Marek Kilimajer
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

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread robert mena
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

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread Justin Patrin
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]

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread Red Wingate
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

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread Marek Kilimajer
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

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread Marek Kilimajer
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]

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread robert mena
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

Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread Justin Patrin
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,

[PHP] Safe mode effect

2004-04-22 Thread Ravi kumar
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

Re: [PHP] Safe mode effect

2004-04-22 Thread Marek Kilimajer
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

Re: [PHP] Safe Mode

2004-02-22 Thread user
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

Re: [PHP] Safe Mode

2004-02-22 Thread Jason Wong
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

Re: [PHP] Safe Mode

2004-02-22 Thread user
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

[PHP] Safe Mode

2004-02-21 Thread php4
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

Re: [PHP] Safe Mode

2004-02-21 Thread Lucas Gonze
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

Re: [PHP] Safe Mode

2004-02-21 Thread user
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.

Re: [PHP] Safe Mode

2004-02-21 Thread Lucas Gonze
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

Re: [PHP] Safe Mode

2004-02-21 Thread Marek Kilimajer
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

Re: [PHP] safe mode and mail

2003-06-20 Thread David Nicholson
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

[PHP] safe mode and mail

2003-06-19 Thread Senih .
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

[PHP] Safe mode Problem

2003-06-10 Thread Cristian MARIN
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

[PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
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

RE: [PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
$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

RE: [PHP] SAFE MODE Restriction in effect

2003-06-09 Thread Ben Edwards
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.

[PHP] safe mode not working

2003-02-19 Thread David Feldman
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

[PHP] safe mode on Mac OS X?

2003-02-19 Thread David Feldman
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

[PHP] safe mode

2003-02-17 Thread Wilbert Enserink
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:

Re: [PHP] safe mode problem

2003-02-04 Thread Marek Kilimajer
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

Re: [PHP] safe mode problem

2003-02-03 Thread Marek Kilimajer
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:

Re: [PHP] safe mode problem

2003-02-03 Thread Chris Hayes
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

RE: [PHP] safe mode problem

2003-02-03 Thread gurvinder singh
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

[PHP] safe mode problem

2003-02-02 Thread Gurvinder Singh
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

[PHP] Safe mode and safe_mode_exec_dir

2002-12-05 Thread Rodrigo Borges Pereira
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

[PHP] Safe mode and directory permission

2002-09-23 Thread Rudolf Wolf
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

[PHP] Safe mode? newbie alert!

2002-09-01 Thread Ryan A
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.

Re: [PHP] Safe mode? newbie alert!

2002-09-01 Thread @ Edwin
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,

[PHP] Edwin-Re: [PHP] Safe mode? newbie alert!

2002-09-01 Thread Ryan A
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

[PHP] Safe Mode seems to turn on and off randomly

2002-08-03 Thread Andrew Brampton
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

[PHP] safe mode and php cgi-binary

2002-06-10 Thread Lewis Watson
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

[PHP] SAFE MODE

2002-06-10 Thread Georgie Casey
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

[PHP] Safe mode

2002-04-26 Thread Ashley M. Kirchner
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

Re: [PHP] Safe mode

2002-04-26 Thread Rasmus Lerdorf
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

Re: [PHP] Safe mode

2002-04-26 Thread Ashley M. Kirchner
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

Re: [PHP] Safe mode

2002-04-26 Thread CC Zona
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

Re: [PHP] Safe Mode

2002-04-09 Thread Richard Lynch
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

[PHP] Safe Mode

2002-04-08 Thread Richard Lynch
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

Re: [PHP] Safe Mode

2002-04-08 Thread Miguel Cruz
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

[PHP] safe mode and file handling

2002-03-01 Thread Mika Lindqvist
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

Re: [PHP] safe mode and file handling

2002-03-01 Thread Rasmus Lerdorf
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

Re: [PHP] safe mode and file handling

2002-03-01 Thread Jim Lucas [php]
] 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

[PHP] Safe mode/restricted directory file system operations

2002-02-21 Thread Dave
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

Re: [PHP] Safe mode/restricted directory file system operations

2002-02-21 Thread Lars Torben Wilson
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

[PHP] safe mode/mkdir problem - HELP!

2002-02-05 Thread Roberto P.Martins Jr
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

[PHP] PHP Safe Mode control

2001-12-10 Thread Charles Williams
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?

[PHP] Safe mode and dir permissions

2001-11-16 Thread Rodrigo Peres
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

Re: [PHP] Safe mode and dir permissions

2001-11-16 Thread Bas Jobsen
. - 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

[PHP] Safe mode + /usr/share/php

2001-08-25 Thread Artyom Plouzhnikoff
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

Re: [PHP] Safe mode + /usr/share/php

2001-08-25 Thread Rasmus Lerdorf
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

[PHP] Safe mode upload

2001-05-08 Thread php
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   2   >