PDA

View Full Version : Safe Mode On Auto Index


hostparlor
11-13-2007, 03:20 PM
Warning: opendir() [<function.opendir>]: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /home/slayer/public_html/ owned by uid 32318 in /opt/lsws/share/autoindex/default.php on line 138 Warning: opendir(/home/slayer/public_html/) [<function.opendir>]: failed to open dir: Permission denied in /opt/lsws/share/autoindex/default.php on line 138 [ERROR] Can not open directory /home/slayer/public_html/!


get that during account creation, and want to keep safemode ON any idea's?

mistwang
11-13-2007, 03:33 PM
OK. We will turn safe mode off internally for the auto index script. It will be enforced for other PHP scripts.

hostparlor
11-13-2007, 03:34 PM
so no fixes for it right now? Because i can't see directories and it shows that uplon account creation aswell customers don't like it:)

mistwang
11-13-2007, 03:59 PM
The latest 3.3 package has this implemented already. Just download again.

hostparlor
11-13-2007, 04:25 PM
I'm running 3.2.4 Ent.

If you can tell me how to properly set it.

or

is it possible to set it in here?

Apache Style configurations

If so, What's the proper way of putting that directory with safe_mode off.

Thanks,
Hostparlor

mistwang
11-13-2007, 08:26 PM
get the 3.3 release by change the version number in the download link.

hostparlor
11-15-2007, 06:25 AM
I've upgraded to 3.3 Ent.

Error is gone, Now it's a blank page with no index.

There a setting I have to set?

Thanks,
HostParlor

mistwang
11-15-2007, 07:39 AM
Maybe something wrong with the updated PHP code, please check lsws/logs/error.log for PHP errors.

QuantumNet
11-15-2007, 04:47 PM
Hi ... dont use safe mode!!! It is being completely dropped from php 6 because it was a horable solution.

If you are not using suxec and want to maintain security without safemode then do this:

openbase_dir + php execdir patch + suhosin patch

also disable posix when compiling php.