directadmin的build升级或降级功能

使用build来升级Directadmin自带的软件,无需再配置其他东西.
关联性等一些东西DA会自动做好,这样也省事.

  1. cd /usr/local/directadmin/custombuild/
  2. ./build dovecot #这样便会升级dovecot,依赖性也会一次性解决

对于php ftp等组件,也可以强制指定版本(软件版本降级):

  1. ./build set php_ver 5.2
  2. .build php n #如果php的版本高于5.2,就相当于降级了.
  3. 此操作php的版本会变回 5.2

如果运行 ./build all 则会升级所有配套软件,升级的前提条件是同级目录下的options.conf 里的选项为”yes”的软件

  1. Directadmin build的所有功能及选项
  2.  
  3. +--------------------------------------------------------
  4. |                                                       
  5. |            DirectAdmin WebServices Installer          
  6. |     Written by Martynas Bendorius and DirectAdmin     
  7. |                   Version: 1.1.19                     
  8. |                                                       
  9. +--------------------------------------------------------
  10. To build everything run:                             
  11. |     ./build all                                       
  12. |                                                       
  13. | NOTE: Command all will compile everything as it is set 
  14. |      in the options.conf file, please take a look at  
  15. |      "./build options"!                               
  16. +--------------------------------------------------------
  17. Install/update server components:                    
  18. |     ./build apache                                    
  19. |     ./build autoconf                                  
  20. |     ./build automake                                  
  21. |     ./build awstats                                   
  22. |     ./build curl                                      
  23. |     ./build dovecot                                   
  24. |     ./build freetype                                  
  25. |     ./build iconv                                     
  26. |     ./build icu                                       
  27. |     ./build libjpeg                                   
  28. |     ./build libpng                                    
  29. |     ./build libtool                                   
  30. |     ./build libxml2                                   
  31. |     ./build libxslt                                   
  32. |     ./build m4                                        
  33. |     ./build mcrypt                                    
  34. |     ./build mhash                                     
  35. |     ./build mod_perl                                  
  36. |     ./build mysql                                     
  37. |     ./build pcre                                      
  38. |     ./build php                                       
  39. |     ./build proftpd                                   
  40. |     ./build suphp                                     
  41. |     ./build webalizer                                 
  42. |     ./build zend                                      
  43. |     ./build zlib                                      
  44. +--------------------------------------------------------
  45. Components configuration options:                    
  46. |     ./build exim_conf                                 
  47. |     ./build rewrite_confs                             
  48. |     ./build secure_php                                
  49. +--------------------------------------------------------
  50. Install/update web applications:                     
  51. |     ./build phpmyadmin                                
  52. |     ./build atmail                                    
  53. |     ./build roundcube                                 
  54. |     ./build squirrelmail                              
  55. |     ./build uebimiau                                  
  56. +--------------------------------------------------------
  57. CustomBuild related options/functions:               
  58. |     ./build create_options                            
  59. |     ./build cron                                      
  60. |     ./build options                                   
  61. |     ./build set option_name value                     
  62. |     ./build update_da                                 
  63. |     ./build update_versions                           
  64. |     ./build update_webapps                            
  65. |     ./build used_configs                              
  66. |     ./build versions                                  
  67. +--------------------------------------------------------
  68. Jailed shell (beta):                                 
  69. |     ./build all_jail                                  
  70. |     ./build coreutils                                 
  71. |     ./build shell                                     
  72. |     ./build smtp_mail                                 
  73. |     ./jail/jail_user.sh user                          
  74. +--------------------------------------------------------
  75. Remove old build data:                               
  76. |     ./build clean                                     
  77. |     ./build clean_old_webapps                         
  78. +--------------------------------------------------------
  79. Get latest build script or (and) data:               
  80. |     ./build update                                    
  81. |     ./build update_script                             
  82. +--------------------------------------------------------
  83. Get data for current build script:                   
  84. |     ./build update_data                               
  85. +--------------------------------------------------------
  86. Recommended for experienced users only (!):          
  87. |     ./build php5-cli                                  
  88. |     ./build php6-cli                                  
  89. |     ./build php5-cgi                                  
  90. |     ./build php6-cgi                                  
  91. |     ./build todovecot                                 
  92. +--------------------------------------------------------
  93. You can pass a 2nd argument to automate the input:   
  94. |     ./build <option> d : do the default action        
  95. |     ./build <option> y : answer yes to all questions  
  96. |     ./build <option> n : answer no to all questions   
  97. +--------------------------------------------------------

6 Comments

  1. 你好,发现
    服务器当前版本 1.44.0
    最新可使用版本 1.441000
    如何升级DA面板呢

    • /usr/local/directadmin/custombuild/build update
      /usr/local/directadmin/custombuild/build update_versions

  2. 你好,我想降级 DA 的apache 2.2 版本的 ,现在是 2.4.3 的,请问可以降级吗

    • 你好,没试过降级apache,理论上应该没问题。
      降到2.2的版本,如果不行的话再升上去就可以了(没把握的话,操作前最好先备份一下)

  3. 您好,我想升级DA的php版本到最新5.36,但我之前有很多站点在上面,直接按照您的这个教程升级,那些站点不会出现问题吧?

    • 你好,应该不会有什么大问题,具体要看php的版本有无限制什么,最好能先测试一下,生产环境没有把握的话,不要贸然动手。