My first repository

Technology

My first GitHub repository is a PowerShell script that mirrors the functionality of the a2enmod Perl script in Debian. I was hoping to find some parallel to that script in Windows, but the Internet showed me nothing, so I decided to whip up my own. See the man pages of the original commands.

First, run the setup.bat file from a CMD with admin privileges to create the symlinks and .gitignore (it won’t work if you run it from Explorer.exe). Then, if you start PowerShell with admin privileges and change the execution policy to Unrestricted for the session (details are in the ReadMe), you can use the symbolic links to invoke the script’s a2enmod, a2dismod, a2ensite, and a2dissite commands. I’d add the folder with the a2enmod.ps1 file and links to your path so you can invoke the commands from anywhere.

It would be great if there was something like RPM for Windows so that you could easily download the latest Apache, MySQL and PHP on that platform and decide where they should install. The closest thing I’ve found so far is a promising project in development called CoApp. Just because it’s Windows doesn’t mean we can’t utilize methods that have been very beneficial in Linux.

The functionality of these a2 scripts is limited starting out, but I’ll keep working on this project. Any useful feedback or contributions would be much appreciated.

What say you?