I think the best thing for suPHP would be to just append a -c parameter
to the php-cgi command, instead of relying on that env variable..
-turgut
On 03/18/2010 04:41 PM, Matt Harlum wrote:
Hi,
I've noticed that even setting phprc on my machine without SuPHP at
all has the same issue. I'll do a little more digging and see what I
can find out.
Regards.
--Matt
On 19/03/2010, at 1:04 AM, turgut kalfaoğlu wrote:
it said
string(12) "/opt/notsafe"
so it is passing the path correctly.
I also put phpinfo() under it, if you'd like to see it:
http://www.kalfaoglu.com/test.php
Regards , -turgut
On 03/18/2010 03:57 PM, Matt Harlum wrote:
No worries
Ok so that all looks fine to me.
Could you please try putting the following in a file under a user
account eg test.php, ensure the ownership is set correctly and run
it from your web browser.
<?php
var_dump(getenv("PHPRC"));
?>
Regards,
--Matt
On 19/03/2010, at 12:45 AM, turgut kalfaoğlu wrote:
Oh sorry..
[r...@panel alternatives]# php -v
PHP 5.2.13 (cli) (built: Mar 2 2010 15:39:06)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by
Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend
Technologies
[r...@panel alternatives]# php-cgi -v
PHP 5.2.13 (cgi-fcgi) (built: Mar 2 2010 15:37:28)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by
Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend
Technologies
On 03/18/2010 03:37 PM, Matt Harlum wrote:
Hey again
Which version of PHP?
Regards,
--Matt
On 19/03/2010, at 12:10 AM, turgut kalfaoğlu wrote:
Hi. I'm using suPHP version 0.7.1.. Centos 4.8..
Regards,
-turgut
On 03/18/2010 03:09 PM, Matt Harlum wrote:
Hi,
Hmm, seems like a bug then. I'd say this may be a bug
Which version of SuPHP are you using, and which distro is this?
centos?
Regards,
--Matt
On 18/03/2010, at 3:22 PM, turgut kalfaoğlu wrote:
On 03/18/2010 02:52 AM, Matt Harlum wrote:
Hi,
Try Preceding the configpath line with
suPHP_Engine On
Thanks - it made no difference. The safe mode was still on.
I tried it both at <virtualhost> level, and inside <directory>
level..
-turgut
Regards,
--Matt
rOn 18/03/2010, at 1:32 AM, turgut kalfaoğlu wrote:
On a Plesk Centos 4.8, with php 5.2.13, there are some hosts
that need
the safe_mode = off , but I'd like the vast majority to be
on, just so
that I can stop the vast majority from wandering around on
the disk,
reading files belonging to others -- a cgi-telnet php program
can do this.
In httpd.conf I have:
LoadModule suphp_module /usr/lib/httpd/modules/mod_suphp.so
suPHP_Engine on
suPHP_ConfigPath /etc
It seems that the php.ini is read from /etc without problems
now..
Then I would like to use some site-specific php.ini files,
for sites
that need to have the safe_mode off..
When I put the following into httpd.include and restart the
server,
<Virtualhost blah.com <http://blah.com/>>
suPHP_ConfigPath /etc/notsafe
.. the alternate INI file is not read, the default one is
still used.
Both etc and notsafe are 755 and the notsafe dir contains
php.ini
that's -rw-r--r--
Any ideas what to do?
Thanks! -turgut
_______________________________________________
suPHP mailing list
[email protected] <mailto:[email protected]>
https://lists.marsching.com/mailman/listinfo/suphp
_______________________________________________
suPHP mailing list
[email protected] <mailto:[email protected]>
https://lists.marsching.com/mailman/listinfo/suphp
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp