Posted by itdungpt, 03-03-2012, 06:33 AM | in /usr/local/lib/php.ini
open_basedir = /home/username:/usr/lib/php:/usr/local/lib/php:/tmp
username = ??????????
I want this username display corresponding to each account.
Please help me.
|
Posted by sam0, 03-03-2012, 06:34 AM | What httpd are you using?
|
Posted by itdungpt, 03-03-2012, 06:35 AM | Server Version: Apache/2.2.22 (Unix) mod_ssl/2.2.22
|
Posted by sam0, 03-03-2012, 06:41 AM | If you just have apache without any control panel, you can have the following in each apache virtualhost:
However, if you're using a control panel you'll need to configure the control panel to setup open_basedir.
For example, with cpanel:
WHM > Main > Security > Security > open_basedir
|
Posted by itdungpt, 03-03-2012, 06:43 AM | CPANEL WHM 11.30.6 (build 3) CENTOS 5.7 x86_64
|
Posted by itdungpt, 03-03-2012, 06:47 AM | i was Enable php open_basedir Protection
but Open_Basedir: NONE when i upload an shell code. ( shell code to hack local )
|
Posted by sam0, 03-03-2012, 06:49 AM | See: http://docs.cpanel.net/twiki/bin/vie...MDocs/TweakPhp
You should be able to do these steps:
WHM > Main > Security > Security > open_basedir
Edit:
It's likely that you'll either need to restart or reload apache, I'm not sure if cpanel does this automatically when you change open_basedir setting as I'm not a cpanel user.
|
Posted by itdungpt, 03-03-2012, 06:53 AM | maked but display
safe_mode: ON Open_Basedir: NONE
|
Posted by itdungpt, 03-03-2012, 06:54 AM | safe_mode: ON Open_Basedir: NONE Safe_Exec_Dir: /usr/local/php/bin Safe_Gid: OFF Safe_Include_Dir: NONE Sql.safe_mode: OFF
PHP version: 5.2.17 cURL: ON MySQL: ON MSSQL: OFF PostgreSQL: OFF Oracle: OFF
|
Posted by sam0, 03-03-2012, 06:57 AM | I'm unsure then why its not taking effect, hopefully someone else with more experience with cpanel can point you in the right direction.
|
Posted by itdungpt, 03-03-2012, 06:59 AM | i was support ticket in cpanel. but them can not make this.
|
|
Add to Favourites
Print this Article |