[فب] نصوص [أبنبسدير] حصر [إين فّكت] خطأ
[فب] [أبنبسدير] حماية [توك] آمنة أسلوب [سكريتي مسور] أنّ يمنع مستعملات من فتحة مبارد أو نصوص يحدّد خارج من [هوم ديركتوري] هم مع [فب], ما لم الملف يتلقّى خصوصا يستثني. [فب] [أبنبسدير] سيضمن عمليّة إعداد إن يمكّن, أنّ كلّ مبرد عمليات أن يكون حدّدت إلى مبارد تحت دليل مؤكّدة, ولذلك يمنع [فب] نصوص لمستعملة خاصّة من ينفذ مبارد في مستعملة من غير إذن حساب. عندما يحاول نص أن يفتح مبرد مع, مثلا, [فوبن] () أو [غزوبن] (), الموقعة من المبرد فحصت. عندما المبرد خارج ال يعيّن أو يجوز [ديركتور-تر], سيرفض [فب] أن يفتح هو والأخطاء تالي يمكن وقعت:
إنذار: [فيلإكسيستس] () [[فونكأيشن.فيل-إكسيستس]]: [أبنبسدير] حصر [إين فّكت]. ليس مبرد ([/هوم/وسرنم/بوبليكهتمل/وب-كنتنت/وبلوأدس/2006/12/بيكتثر.جبغ]) ضمن ال يسمح ممر: ([/هوم/وسرنم]: [/وسر/ليب/فب]: [/وسر/لوكل/ليب/فب]: [/تمب]) في /home/user_name/public_html/wp-admin/inline-uploading.php على خطّ 226
يظهر ال [إرّور مسّج] آنفة على [أبش] [هتّبد] [وب سرفر] [إرّور لوغ] ([إرّورلوغ]) يستضيف [ووردبرسّ] [بلوغ]. مهما, المشكلة يمكن حدثت إلى كلّ نظامة أو موقعات أنّ يستعمل [فب] ك [سكريبت] لغز.
الحل أو [ووركرووند] إلى [أبنبسدير] حصر مشكلة أنّ يعجز ال [فب] [أبنبسدير] حماية بالإجمال, أو أن يستثني الحماية لمؤكّدة ذو امتياز مستعملة حسابات, أو أن يسمح منفذة إلى الدليل إضافيّة ل [فب] نصوص.
إن أنت يكون تستعمل [كبنل] [وبهوست] مديرة ([وهم]), أنت يستطيع بسهولة أعجزت [فب] [أبنبسدير] حماية أو استثنيت مستعملات مؤكّدة من الحماية مع [وهم]. ببساطة ذهبت أن "عدّلت أمن" تحت ال "أمن" قسم, بعد ذلك مختارة "يشكّل" خطوة ل "[فب] [أبنبسدير] [توك]". استثنيت في هو, أنت يستطيع مكّنت أو أعجزت [فب] [أبنبسدير] حماية, أو وتضمّنت مضيفات من الحماية.
إن أنت يكون تستعمل [بلسك] يستضيف [كنترول بنل], أنت يمكن احتجت أن يدويّا حرّرت [أبش] تشكيل مبرد من [فهوست.كنف] و [فهوستسّل.كنف], ويضيف داخل أو يحرّر التالي [فبدمينفلو] [أبنبسدير] خطوط إلى التالي:
<دليل /full/path/to/the/directory/httpdocs>
[فبدمينفلو] [أبنبسدير] لا شيء
</Directory>
<دليل /full/path/to/the/directory/httpdocs>
[فبدمينفلو] [أبنبسدير] /full/path/to/dir: [/فولّ/بث/تو/ديركتور/هتّبدوكس]: [/تمب]
</Directory>
بطاقة: ل [سّل] مضيفات في ال [فهوستسّل.كنف] مبرد, الدليل سينهي ممر مع "[هتّبسدوكس]" [إينستد وف] "[هتّبدوكس]".
الممرات (فوق مثال فقط وأن يكون استبدلت مع ممر حقيقيّة) أنّ خلف [أبنبسدير] يكون الأدلة أنّ خصوصا سمح ل ال [فب] نصوص في ال [فهوست] مجال حساب إلى منفذة, لذلك أنت يستطيع أضفت في كثير أدلة أنّ خزّنت مبارد يكون واحتجت أن يكون فتحت ب [فب], كلّ يفصل بلون ": ". But be careful as it might expose your system to security fraud.
Once done, run the command below to make the changes effective, and then restart Apache httpd web server (apache2ctl restart or httpd restart):
$PRODUCT_ROOT_D/admin/sbin/websrvmng -v -a
If you have to manually edit the Apache configuration file to disable PHP open_basedir protection, simply open up the httpd.conf file, and search for the lines that starts with the following characters:
php_admin_value open_basedir …..
Replace the whole line under the virtual host for the domain user account that you want to disable protection with the following line to disable it:
php_admin_value open_basedir none
You can also opt to allow your PHP scripts to access additional directory instead without disabling the protection. Additional directory can be added to the line, separated with color “:”. For example, to add /new_directory to the allow list:
php_admin_value open_basedir “/home/user_account/:/usr/lib/php:/usr/local/lib/php:/tmp”
php_admin_value open_basedir “/home/user_account/:/usr/lib/php:/usr/local/lib/php:/tmp:/new_directory”
Restart the Apache after finished editing. Note that the directory allowed list restriction above is actually a prefix, not a directory name. This means that “open_basedir = /dir/incl” also allows access to “/dir/include” and “/dir/incls” if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: “open_basedir = /dir/incl/”.
IMPORTANT: The page is machine translated and provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.
Related Articles
- Group Policy Login or Logon Scripts Not Running, Not Working or Not Executing
- cPanel WHM Failed to Receive Status Information From Apache Error
- PHP Parse Error: syntax error, unexpected $end
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log
- Request URL /server-status or 404 Page Not Found Apache Error
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start
- Bypass and Remove 3 Plays or 3 Days Restriction on Zune WiFi Sharing
- gmmktime Error in WordPress and MagpieRSS
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager
- PHP Allowed Memory Size Exchausted Fatal Error










































July 26th, 2009 18:12
[...] [...]
December 21st, 2007 16:58
Great article.
Thanks for the WHM tip.
You saved my ass.
December 3rd, 2007 16:21
[...] queréis más información sobre este tema, hay un artículo muy interesante sobre este error en My Digital Life. Etiquetas: Desarrollo, hosting, open_basedir, [...]