Apache Updates、MariaDB、PHP

Because the company's Web site before being implanted malware relationship,Build a new website platform,And abandon such quickly build appserv but only for development environment kit,Changes toBuild Apache manually、MariaDB and PHP,After renewed every six months and with the frequency of maintenance to do,This is the record update Apache、Step MariaDB and PHP program of three。

 
 

Stop Apache first、mysql (MariaDB) service。

[Update PHP – Non Thread Safe】

  • To Official page Download Non Thread Safe archive。
  • unzip,Copy the directory to the desired location。
  • Modify php.ini-production to php.ini,Compare old versions of php.ini with WinMerge。
  • If the php directory name is different from the original name,開啟 Apache Httpd.conf ,Modify the following content:
  • FcgidInitialEnv PHPRC "D:/Web/php-7.4.6"  # 讓 FastCGI 知道 php.ini 所在目錄。    FcgidWrapper "D:/Web/php-7.4.6/php-cgi.exe" .php  # FastCGI 設定。
  • Double-click Apache's httpd.exe,If there is an error,One by one,Start as a service again if there is no problem。
 

[Update PHP – Thread Safe】

  • To Official page Download Thread Safe compressed file。
  • unzip,Copy the directory to the desired location。
  • Modify php.ini-production to php.ini,Compare old versions of php.ini with WinMerge。
  • If the php directory name is different from the original name,開啟 Apache Httpd.conf ,Modify the following content:
  PHPIniDir "D:\Web\php-7.1.5"  # 指定 php.ini 存放的資料夾位置。    LoadModule php7_module "D:\Web\php-7.1.5\php7apache2_4.dll"  # 載入 php 的模組。  
 

[Update Apache]

  • To Apache house Download the zip file (x64)。
  • unzip,Copy the directory to the desired location Apache24。
  • Open httpd.conf,Older than httpd.conf with WinMerge。
  • Copy the original Apache24 / htdocs directory under the data to a new Apache24 / htdocs。
  • Compare the old and new Apache24/bin directories,The lib***.dll file that will be added by yourself,Copied to the new Apache24 / bin,Such as libsasl.dll、libssh2。
  • If php is using Non Thread Safe,Change mod_fcgid.so under the original Apache24/Modules,Copy to the new Apache under Apache24/Modules。
  • If there are other SSL certificates or modified files,Remember also move。
  • Double-click httpd.exe,If there is an error,One by one,Change to start with service after no problem。
 

[Update MariaDB]

  • To MariaDB Official website download 64bit msi file。
  • Stop mysql service,Update to execute .msi files。
 

[Update phpMyAdmin]

  • To phpMyAdmin Download the zip file,unzip,Copy to Apache24htdocs。
  • The config.sample.inc.php changed its name to config.inc.php,Compare old versions of config.inc.php with WinMerge
 

[Links]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.