Git Product home page Git Product logo

fastupgradewap's Introduction

fastUpgradeWAP

Fast upgrade for Apache and PHP on Windows.

Do you work on Windows and use manual configured Apache and PHP instances? Do you constantly update your Apache and PHP using:

This command line tool helps you automate the upgrade process using the Apache/PHP windows installation packages(.zip) as an input and some configuration parameters to point where the current instalations are and various other options.

Configuration:

Edit and change the parameters from fastUpgradeWAP.exe.config accordingly:

  • Apache root folder. Mandatory. Trailing "" is needed.
<setting name="APACHE_ROOT" serializeAs="String">
	<value>C:\Path\To\Apache\</value>
</setting>
  • PHP root folder. Mandatory. Trailing "" is needed.
<setting name="PHP_ROOT" serializeAs="String">
	<value>C:\Path\To\PHP\</value>
</setting>
  • Optional. Comma separated service names (exact unique names, no spaces) that will be stopped before Apache upgrade. Will be re-started at the end.
<setting name="APACHE_RELATED_SERVICES_TO_STOP" serializeAs="String">
	<value>Apache2.4</value>
</setting>
  • Optional. Comma separated service names (exact unique names, no spaces) that will be stopped before PHP upgrade. Will be re-started at the end.
<setting name="PHP_RELATED_SERVICES_TO_STOP" serializeAs="String">
	<value />
</setting>
  • Optional. Comma separated relative paths(no spaces) inside the current Apache root. Files and folder you would like to keep in the new version (they will be copied). Folders will be renamed on new instalation, if already present (rename to <name>_orig)
<setting name="APACHE_FILES_TO_COPY" serializeAs="String">
	<value>conf,modules\mod_fcgid.so</value>
</setting>
  • Optional. Comma separated relative paths(no spaces) inside the current PHP root. Files and folder you would like to keep in the new version (they will be copied). Folders will be renamed on new instalation, if already present (rename to <name>_orig)
<setting name="PHP_FILES_TO_COPY" serializeAs="String">
	<value>php.ini,tmp_sessions,tmp_uploads,ext\php_redis.dll,ext\php_rrd.dll</value>
</setting>

Usage:

Apache:

fastUpgradeWAP.exe C:\Kits\httpd-2.4.54-win64-VS16.zip

NOTE: file starting with httpd decides if it's Apache upgrade NOTE: It is expected the .zip file to have an inner folder Apache22 or Apache24.

PHP:

fastUpgradeWAP.exe C:\Kits\php-8.0.21-nts-Win32-vs16-x64.zip

NOTE: file starting with php decides if it's PHP upgrade

Permissions

If APACHE_RELATED_SERVICES_TO_STOP or PHP_RELATED_SERVICES_TO_STOP are used (non empty), elevated permissions are needed for this to work. Run as Administrator

fastupgradewap's People

Contributors

robbykrlos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.