rgra / choco-packages Goto Github PK
View Code? Open in Web Editor NEWChocolatey packages
Chocolatey packages
Because of the Apache24
subdirectory created in the unzipLocation
path, it may tempt to change the path to more general like C:\tools
so Apache will be placed directly among other programs. But this is quite dangerous, because the uninstallation will remove the unzipLocation
path completely event with all other apps in it.
Since a lot of the packages that depend on the server-jre pull it without adding any parameters and many of them need to run as a service, with the way that it currently only installs JAVA_HOME to the User's Environment and adds %JAVA_HOME%/bin to the User's PATH, this doesn't end up actually working for most of those server packages because if they run as a service via the SYSTEM account, they can't find Java.exe in the PATH or see JAVA_HOME.
I'll see about making a pull request from my fork with this change, but I wanted to document some of the reasoning behind the change and I'll have to explore how to detect/clean up the User variables so that it doesn't break existing installs that were intentionally NOT system wide.
Getting the following error message when trying to install server-jre8
:
Installing the following packages:
server-jre8
By installing you accept licenses for the packages.
Progress: Downloading server-jre8 8.0.152... 100%
server-jre8 v8.0.152 [Approved]
server-jre8 package files install completed. Performing other installation steps.
ERROR: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."```
I am trying to install elasticsearch
on a system that sits behind a proxy. This fails to install it's dependecy server-jre8
. So I tried to install that first manually via
choco install server-jre8 -y --proxy="'<REMOVED>:8080'"
This is the output:
Chocolatey v0.10.7
Installing the following packages:
server-jre8
By installing you accept licenses for the packages.
Progress: Downloading server-jre8 8.0.131.20170420... 100%
server-jre8 v8.0.131.20170420 [Approved]
server-jre8 package files install completed. Performing other installation steps.
ERROR: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."
The install of server-jre8 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\server-jre8\tools\chocolateyInstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- server-jre8 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\server-jre8\tools\chocolateyInstall.ps1'
.
See log for details.
You can find the log file here: https://pastebin.com/xtdSgwH1
It looks like the download of the package is sucessfull (proxy settings are corectly loaded) but the chocolateyInstall.ps1
script that downloads the actual software completely ignores the proxy settings.
Since I provide a --proxy
flag to the command I expect the chocolateyInstall.ps1
script to use these proxy settings as well. If I omit the --proxy
flag chocolatey correctly uses my global system settings but the install script fails nonetheless.
It would be helpful to have an option to include additional modules in the install.
a string/array parameter that lists different optional modules provided by apachehaus to be installed with Apache
after installing Apache this parameter would be parsed to download/install the specified modules
choco install apache-httpd --params "'/modules:mod_fcgid,mod_security,mod_maxminddb'"
would download and install the following
module files are available on the downloads page
Could you please make the service creation optional? I'm running the server manually and don't want to run the service at all.
I recently installed Apache via chocolatey on Windows 7 SP1 and found the IPV6 listen value is missing from the httpd.conf file.
an IPV6 listen value such as
Listen [::0]:80
No IPV6 listen value in the httpd.conf file
When Apache-httpd is uninstalled the htdocs folder is removed in the uninstall.
As a default, if there is content in the htdocs folder; the folder should not be removed during the uninstall process.
The htdocs folder should not have been removed on uninstall as there was content in the folder beyond the default index.html file and the apache icon file.
The htdocs folder was completely removed on uninstall
Many services attempt to default to Port 80 in windows, Skype is on of the most notorious for hog-tieing port 80.
As a best practice, Apache should not be configured to port 80 on install via chocolatey to avoid obvious port conflicts.
IPV4 and IPV6 Listen and ServerName values do not default to obvious port conflict values like port 80
Additionally, it would be helpful to pass a specified port number to the choco install
of apache-httpd
such as choco install apache-httpd --port 8585
The Listen and ServerName values in httpd.conf are set to port 80
There is a problem when the service is started during installation because the ServerRoot
is set to /Apache24
so it doesn't match the actual install path. This will throw a not fatal error during installation, however the installation finishes successfully. I'm not sure if this is easily fixable.
Currently, every update you get another %JAVA_HOME%\bin appended to your PATH
It would be helpful to have an option to select the VC version for the package.
a string/array parameter that allows selecting one of the 3 VC versions that work with apache-httpd
this will download the appropriate dependency and the corresponding apache-httpd package.
options
Example
choco install apache-httpd --params "'/vc:11'"
files are available on the downloads page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.