Apache and PHP Update

تحديث الأباتشي و محرك البي أتش بي و الموديلات التي تئتي مع الأباتشي أمر مهم جداً , لذا كن حريصاً على تحديث البرامج في أسرع وقت لتفادي المشاكل في المستقبل , وبل الذات مشاكل الحماية فا هيه من أهم الأمور التي تجعلك مدير سيرفرات ناجح أن شاء الله , المهم دعونا ندخل في صلب الموضوع ونبدأ بل التحديثات .

سوف نحتاج إلى استخدام الشيل SSH  و لوحة التحكم WHM

أولاً قم بتسجيل الدخول إلى SSH بمستخدم الروت root

تسجيل دخول ………. تم 🙂

نفذ هذا الأمر لبدأ التحديث

/scripts/easyapache 

ملاحظة : يمكنك استخدام الماووس أو الكيبورد في اختيار الإعدادات

<o> Previously Saved Config (** DEFAULT **)  Start customizing based on profile] 

[

_____________________________________________________________________

<o> Apache 2.2  [Next Step] 

 

[X] PHP 5  <o> 5.2.6  [Next Step]

 

[X] Mod SuPHP  
[X] Frontpage
[X] Mod Bandwidth
[ ] Tomcat
[ ] Mod Mono v1.2.4
[ ] Mod Perl
[X] Mod Security
[X] Suhosin for PHP
[X] Zend Optimizer for PHP  
[ ] EAccelerator for PHP
[X] IonCube Loader for PHP  [Advanced Configuration] 

Apache Built–in Modules  
[X] Asis
[ ] Auth Digest   
[ ] AuthnAlias    
[ ] AuthnAnon
[ ] AuthnDBD 
[ ] AuthnDBM 
[X] AuthnDefault  
[ ] AuthnzLDAP    
[ ] AuthzDBM 
[ ] AuthzOwner    
[ ] Bucketeer
[ ] CGI (required to run CGI scripts and/or PHP as CGI)   
[X] CGId (required to run CGI scripts or PHP as CGI with threaded MPMs)  
[ ] Cache    
[ ] CaseFilter    
[ ] CaseFilterIn  
[ ] Cern Meta
[ ] Charset Lite  
[ ] DAVFs    
[ ] DAVLock  
[ ] DBD 
[ ] Dav (Among other things mod_dav can be used by 

DAV enabled Frontpage clients instead of FP extensions)  
[ ] Deflate  
[ ] Disk Cache    
[ ] Distcache
[ ] Dumpio   
[ ] Echo
[X] Env 
[X] Expires  
[ ] ExtFilter
[ ] Mod FCGID (fastcgi support)  
[ ] File Cache    
[X] Fileprotect (Prevent Users from reading other webroots)    
[X] Frontpage
[X] Headers  
[ ] Ident    
[ ] Imagemap 
[X] Include  
[ ] Info
[ ] LDAP
[ ] Log Forensic Apache Built–in Modules continued  
[ ] MPM Event (Before choosing *any* MPM read and understand the documentation)    
[ ] MPM Prefork ((recommended) Before choosing *any* 

MPM read and understand the documentation)   
[ ] MPM Worker (Before choosing *any* MPM read and understand the documentation)   
[ ] MemCache 
[ ] Mime Magic    
[ ] Optional Fn Export 
[ ] Optional Fn Import 
[ ] OptionalHookExport 
[ ] Optional Hook Import    
[X] Mod SuPHP
[X] mod_proxy
[X] Speling  
[X] UniqueId 
[ ] Usertrack
[ ] Version  
[ ] Vhost Alias   
   
Other Modules  
[ ] EAccelerator for PHP (v0.9.5.2 – please read URL to fully understand this option)   
[ ] IonCube Loader for PHP (3.1.32 – please read URL to fully understand this option)   
[ ] Mod Bandwidth (v2.1 for Apache 1.3, v0.8 for Apache 2.x – see URL for details) 
[ ] Tomcat (v5.5.25 – Experts ONLY: Do not install this unless you have a tomcat admin.)
[ ] Mod Mono v1.2.4 (Experts ONLY: Do not install this unless you have a mono admin)    
[ ] Mod Perl (v2.0.3 – not needed to run CGI scripts)
[X] Mod Security (v1.9.5 for Apache 1.3, v2.1.3 for Apache 2.x)
[X] Suhosin for PHP (v0.9.20 – please read URL to fully understand this option)    
[X] Zend Optimizer for PHP (3.3.0 – please read URL to fully understand this option)    
   
PHP 5.x   
[X] Bcmath   
[ ] Bz2 
[X] CGI 
[X] Calendar 
[ ] Concurrent DSO patch (Allows PHP 4 and 5 

to load simultaneously as Apache modules 

(not compatible with Zend optimizer and some extensions))
[X] Curl
[X] CurlSSL  
[X] Curlwrappers  
[ ] Dbase    
[ ] Discard Path (may interfere with running PHP as CGI)  
[X] Exif
[X] FTP    
PHP 5.x continued   
[ ] Fastcgi  
[ ] Force CGI Redirect 
[X] GD  
[ ] Gettext  
[X] Iconv (Support iconv character set conversion facility)    
[X] Imap
[ ] Java
[ ] MM  
[X] Magic Quotes  
[ ] MailHeaders   
[X] Mbregex  
[X] Mbstring 
[ ] Mcrypt   
[ ] Mhash    
[X] Mime Magic    
[ ] Ming ((Not Recommended due to various problems) using ming library 0.3.0) 
[X] Mysql (compile mysql support against php bundled libraries

 (if the system mysql is checked it takes precedence of this option))  
[X] Mysql of the system (compile mysql 

(and mysqli if its checked) support against the system libraries)    
[ ] MySQL “Improved” extension. (MySQLi does not replace the standard MySQL 

extension. Requires MySQL 4.1 or later. !! mysqli may not work on all system$
[X] Openssl  
[ ] PDO ((unsupported experimental) Includes SQLite support.

 Other drivers (mysql etc) can be installed with PECL)    
[X] POSIX    
[X] Path Info Check    
[X] Pear
[ ] PGsql (Requires PostgreSQL 7.3 or higher to already be installed. 

You can do that with /scripts/installpostgres)  
[ ] Pspell   
[ ] SNMP (Requires the SNMP Dev libraries to be installed first!!!) 
[ ] SOAP
[X] SafeMode 
[ ] Safe PHP CGI (prevents users from overriding system php.ini)    
[X] Sockets  
[X] TTF 
[ ] Tidy
[ ] Wddx
[ ] XSL 
[X] XmlRPC   
[ ] Zend Multibyte
[ ] Zip 
[X] Zlib (Requires that zlib is installed and up to date)   [Save and build] 

ثم ادخل إلى WHMوعدل الخيارات التالي :
Default PHP Version (.php files) >>>>> 5
PHP 5 Handler >>>>>> dso
PHP 5 Handler >>>>>> none
Suexec >>>>>>> on
ملاحظة : أذا كنت تريد تركيب Modsecurity   في هذي الحالة سوف تحتاج إلى الموديل Uniqueld ,
ملاحظة : لا تنفذ التحديث ألي في الأوقات التي يكون الضغط على الخادم قليل

Main >> Service Configuration >> Configure PHP and SuExec

‎التعليقات‫:‬ 2 On Apache and PHP Update

شاركني برأيك