PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : نحوه فعال کرن safe mod



MelatHOST
January 17th, 2010, 14:50
سلام
من کنترل پنلم سی پنل هستش و میخوام safe mode فقط واسه یک سری یوزر های خاص روشن باشه
چکاری باید انجام بدم ؟
ممنون

Arashdn
January 17th, 2010, 14:52
در سکوریتی سنتر در دابلیو اچ ام
یه بخش داره که میتونی این مورد رو بره تک تک کاربرا تنظیم کنی
الان سی پنل ندارم تا دقیق بهت بگم کجاست

MelatHOST
January 17th, 2010, 14:54
این بخش نبود متاسفانه

* Apache mod_userdir Tweak
* Compiler Access
* cPHulk Brute Force Protection
* Fix Insecure Permissions (Scripts)
* Host Access Control
* Manage SSH Keys
* Manage Wheel Group Users
* Password Strength Configuration
* PHP open_basedir Tweak
* Quick Security Scan
* Scan for Trojan Horses
* Shell Fork Bomb Protection
* SMTP Tweak
* SSH Password Authorization Tweak
* Traceroute Enable/Disable

1Mizban
January 17th, 2010, 14:57
بر روی سرور اصلی خاموشه ؟
این رو ببین به دردت میخوره ؟

هر جا زده Off بکن On فکرکنم کار کنه

1) SSH to your server and login as root.

2) Then find the httpd.conf, normally it’s in /etc/httpd/conf/ or /usr/local/apache/conf/
If it’s not in either of those places try search for it: locate httpd.conf

3) Then find the site you wish to edit.
Ctrl+W and type in the domain name

You should see something like this

<VirtualHost ***.***.***.***>
ServerAlias www.domain.net domain.net
ServerAdmin webmaster@domain.net
DocumentRoot /home/domain/public_html
BytesLog domlogs/domain.net-bytes_log
ServerName www.domain.net
User domain
Group domain
CustomLog domlogs/domain.net combined
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
</VirtualHost>

4) Now add this line:

php_admin_flag safe_mode Off

We have also found that the following works as well if the above does not but DO NOT USE BOTH, pick one!

php_admin_value safe_mode 0

to be like this :

<VirtualHost ***.***.***.***>
ServerAlias www.domain.net domain.net
ServerAdmin webmaster@domain.net
DocumentRoot /home/domain/public_html
php_admin_flag safe_mode Off
BytesLog domlogs/domain.net-bytes_log
ServerName www.domain.net
User domain
Group domain
CustomLog domlogs/domain.net combined
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
</VirtualHost>

5) Good :) Now save the changes.
Ctrl + X then Y

6) Restart the Apache web server by
/etc/init.d/httpd restart

MelatHOST
January 17th, 2010, 15:15
این متنی که فرستادیدو قبلاً چک کرده بودم این ارور رو میده زمان ریستارت پی اچ پی

Syntax error on line 16887 of /usr/local/apache/conf/httpd.conf:
Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration

---------- Post added at 03:15 PM ---------- Previous post was at 03:12 PM ----------

مشکل بنده حل شد به جای

php_admin_flag safe_mode Off
فلگ suexecesh رو گذاشتم :
SetEnv php_safe_mode On