الويب العربي

الويب العربي (http://www.arabwebtalk.com/index.php)
-   إدارة وتشغيل السيرفرات (http://www.arabwebtalk.com/forumdisplay.php?f=80)
-   -   تعديل ال Handler لل PHP بإستخدام الأوامر ... (http://www.arabwebtalk.com/showthread.php?t=135487)

XxRa3eDxX 20-03-2010 01:04 PM

تعديل ال Handler لل PHP بإستخدام الأوامر ...
 
السلام عليكم ..

بالطبع اغلبنا كأصحاب او مدراء سيرفرات نعلم انه يمكن تغيير ال Handler الخاص بال php على السيرفر ك DSO اوSUPHP او CGI او غيرها ..

ولكل منها مزايا ومساوئ .. ليس الموضوع مخصص لها ..

طريقه التغيير المعروفه هي من خلا لوحة التحكم WHM ثم
Service Configuration >> # Configure PHP and SuExec

ومنها نختار ال Handler لل PHP بالطبع يوجد اكثر من اصدار لل PHP الرابع والخامس ...

يمكن الغاء الرابع باختيار None او حتى بعدم تنصيبه اصلا خلال عمل بناء للاباتشي ..

ومنها ايضا يمكن الغاء او تفعيل ال suexec وهي خاصيه للحماية حيث يمكن تشغيل ملفاات ال cgi مثلا .. في صلاحيات اليوزر نفسه وليست ك nobody وهذه مهمه ..

المهم ندخل في موضوعنا << كل هذا تسرح فينا وين الموضوع انجز ^_^

الموضوع يتكلم عن طريقه ليست جديدة وانما البعض لايعرفها وربما قليل جدا من يعرفوها


البعض ايضا يعرف الأمر الذي يعرض وضعيه ال Handler على السيرفر وهو الأمر

كود PHP:

/usr/local/cpanel/bin/rebuild_phpconf --current 

قمت بإستعراض جميع خيارات هذا الأمر ومتغيراته

كود PHP:

/usr/local/cpanel/bin/rebuild_phpconf 

الناتج
كود PHP:

Usage: /usr/local/cpanel/bin/rebuild_phpconf [--dryrun] [--no-restart] [--no-htaccess] [--current|--available] <Default PHP> <PHP4 Handler> <PHP5 Handler> <Suexec>
 --
dryrun       Only display the changes that would be made
 
--no-restart   Don't restart Apache after updating the php.conf link
 --no-htaccess  : Don'
t update user configurable PHP mime mapping.
 --
current      Show current settings
 
--available    Show available handlers and PHP SAPIs
 
<Default PHP>  : Version of PHP to set as default handler for .php files
 
<PHP# Handler> : Type of Apache module to use in serving PHP requests
 
<Suexec>       : enableddisabledor 



امر التعديل لوضعيه ال PHP

كود PHP:

/usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1 


اصل الأمر كالتالي ..

كود PHP:

/usr/local/cpanel/bin/rebuild_phpconf <Default PHP> <PHP4 Handler> <PHP5 Handler> <Suexec


وضعنا الإصدار الخامس كإفتراضي
الإصدار الرابع تم ايقافه .. بوضع none
تفعيل ال suphp كإفتراضي لل PHP5 ..
تم تفعيل ال suexec بإختيار 1 ..


نفس الأمر للتغيير لل DSO


كود PHP:

/usr/local/cpanel/bin/rebuild_phpconf 5 none dso 1 



اتمنى ان ينال هذا الدرس البسيط المفيد اعجابكم ..


سلام عليكم

Ramy Allam 20-03-2010 07:06 PM

السلام عليكم

الله ينور تسلم ايدك

واعتقد انه يمكن تعديله من خلال التعديل علي
/usr/local/apache/conf/php.conf

جزاك الله خيرا

Egysv.Com 30-03-2010 08:31 PM

بارك الله فيك يا اخي

تقبل تحياتى الغاليه

XxRa3eDxX 04-04-2010 11:25 AM

اهلا بكم .. نورتو الموضوع ..

بالفعل يا اخ رامي .. يمكن ذلك .. ولكن الأسهل هو كما ذكرت ..

سلام عليكم

nawaf4d3m.com 09-05-2010 04:01 PM

ابداااااااااع بارك الله فيك

yaolz1988 15-06-2010 09:55 AM

How to wear an ordinary pair of jeans to fashion
 
We are in the middle of a pair of armani jeanswear, but we feel that it is the same every year, in addition with T shirt, it seems that will not see any good with the other. Not worry, read the following articles you will find that an ordinary pair of jeans can also ride a variety of ways to wear can also be out of a strong fashion sense. Sweet girl next door like to wear most of the lovely princess armani shirt, bubble of the lap is very cute, but also because of generous tight jeans so I chose more appropriate. A little bit more relaxed denim shorts, can seem very thin thighs are those plagued by the sturdy legs of people's savior. Jeans more suitable for those with a little feminine and sexy Mature, design allows your legs curve looks more perfect, more feminine possession. Of course, if you build enough good looks quite good, and even a simple T shirt plus a pair of jeans on the very, coupled with high-heeled shoesfor your overall rate of sub-Oh. T shirt plus a pair of jeans you want to feel fresh and out? Choose the T shirt is a little longer sleep on the wrong look with sex and characteristics, plus a thin scarf be modified immediately into the ranks of the influx of people.

Dolphin4H.Com 16-06-2010 06:36 AM

جميل ياعم الحج :)

4Serv.Net 29-08-2010 07:25 AM

الله يعطيك العافيه

تسلم ايدك ,,


جميع الأوقات بتوقيت مكة المكرمة. الساعة الآن » 01:01 PM.

Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © ArabWebTalk.Com 2004-2012