You are not logged in.

#1 2007-09-29 10:42:22

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Php5 - Safe_mode = Off :S

Hello, im trying to get phpsysinfo to run.

in /etc/php.ini

I set safe_mode to Off.

But it doesnt seem to work cause.

phpsysinfo can acess the files in /proc/

:S

Offline

#2 2007-09-30 21:07:02

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Php5 - Safe_mode = Off :S

And I am sure you restarted your server after altering php.ini... did you?

Offline

#3 2007-10-01 06:39:09

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Php5 - Safe_mode = Off :S

Yes yes.. the problem is tjhat php doesnt seem to be able to read the files in /proc.

Anyone managed to get phpsysinfo 3.0rc2 working in arch?

Offline

#4 2007-10-01 07:09:57

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Php5 - Safe_mode = Off :S

Did you add this in base_dir?

Offline

#5 2007-12-18 04:20:33

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: Php5 - Safe_mode = Off :S

Just for future reference: I had the same problem, and nothing found in httpd logs.

Found this in the user.log though:

root /var  #  tail /var/log/user.log
Dec 18 05:00:31 archlinux httpd: PHP Warning:  is_executable() [<a href='function.is-executable'>function.is-executable</a>]: open_basedir restriction in effect. File(/usr/sbin/lsusb) is not within the allowed path(s): (/home/:/tmp/:/usr/share/pear/) in /home/httpd/html/phpsysinfo/includes/common_functions.php on line 46
Dec 18 05:00:31 archlinux httpd: PHP Warning:  is_executable() [<a href='function.is-executable'>function.is-executable</a>]: open_basedir restriction in effect. File(/usr/local/bin/lsusb) is not within the allowed path(s): (/home/:/tmp/:/usr/share/pear/) in /home/httpd/html/phpsysinfo/includes/common_functions.php on line 46

In /etc/php.ini:

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
open_basedir = /home/:/tmp/:/usr/share/pear/

HOWEVER, this doesn't help, and the only helpful thing I can see in the logs is [Tue Dec 18 05:17:10 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec) , but I tried disabling the suexec module in httpd.conf , to no avail. Any thoughts?

Last edited by Fackamato (2007-12-18 04:21:50)

Offline

Board footer

Powered by FluxBB