The Apache Haus Forum

Forum Topics => News & General Discussion => Topic started by: AyrA on August 01, 2020, 09:43:06 PM

Title: Apache + PHP Installer
Post by: AyrA on August 01, 2020, 09:43:06 PM
As part of my job I have to install and uninstall Apache quite frequently for our apprentices, sometimes with PHP, sometimes without.

Because of this, I made an installer. I don't mean a collection of scripts, but a real installer like you would use for any other software.
https://imgur.com/a/QjeJtRG (https://imgur.com/a/QjeJtRG)

I originally didn't intend for it to be used publicly but I changed a few things to make it suitable. Notable features:


I can include all the optional modules if requested. I do not plan on creating 32 bit installers.

The default server configuration has been slightly changed:


The PHP configuration is as follows:


If interested, you can obtain the setup here: https://cable.ayra.ch/apache/ (https://cable.ayra.ch/apache/)

Feedback is encouraged. Thank you.
Title: Re: Apache + PHP Installer
Post by: mario on August 03, 2020, 10:11:19 AM
That is a great tool. You only should avoid using the feather icon from ASF.
Title: Re: Apache + PHP Installer
Post by: AyrA on August 03, 2020, 01:10:51 PM
I usually default the icon to the main executable. Is there a specific reason that using the main executable icon is not a good idea?

The alternative I have at hand would be the default installer Icon that you see with pretty much every installer.
Title: Re: Apache + PHP Installer
Post by: Steffen on August 03, 2020, 02:29:12 PM
As Mario said you should avoid.

Yes, be careful, the installer is not an Apache product, and that is not allowed by the Policy from the ASF.

The feather graphics are trademarks of the ASF, and must not be used without appropriate attribution and permission from the ASF. Please see our formal Trademark Policy for more details. In particular, as a vendor-neutral public charity that provides independent governance to all Apache projects, you must use care when displaying the feather, and ensure it's clear that it's referring to the ASF as an independent organization.

https://apache.org/foundation/press/kit/
http://www.apache.org/foundation/marks/
Title: Re: Apache + PHP Installer
Post by: sympl on September 14, 2020, 02:45:19 AM
I'll try this. Sounds pretty cool
Title: Re: Apache + PHP Installer
Post by: AyrA on December 15, 2020, 06:47:59 AM
PHP 8 is now available.
Title: Re: Apache + PHP Installer
Post by: mario on December 15, 2020, 11:23:07 AM
Quote from: AyrA on December 15, 2020, 06:47:59 AM
PHP 8 is now available.

Awesome! Thanks
Title: Re: Apache + PHP Installer
Post by: Swirek on January 04, 2021, 11:28:10 PM
Wow! Nice info about PHP 8! Thanks!
Title: Re: Apache + PHP Installer
Post by: mario on January 13, 2021, 09:44:48 AM
I tried the new installer with PHP and noticed that Define SRVROOT "/Apache" was commented out and apache won't start. Not an issue for me, but it might be worth to change that,
Title: Re: Apache + PHP Installer
Post by: AyrA on January 13, 2021, 11:09:43 AM
It's commented out because the "SRVROOT" constant is supplied as command line argument to the service. Inno Setup (the engine I'm using for the installer) lacks a way to dynamically edit files without writing custom file I/O code. The only thing you can do it set values in INI files, which works fine for the PHP configuration but not for the apache config.

I will eventually change that so the setup calls a hidden batch file to set dynamic values in a separate file that's included inside of the main config. I would then be able to overwrite this file each time a new version is installed without having to go through the hassle of editing a file.
Title: Re: Apache + PHP Installer
Post by: Rodan on February 06, 2021, 02:24:55 PM
My apache won start too. I will try to figure it out.
Title: Re: Apache + PHP Installer
Post by: AyrA on February 06, 2021, 04:27:59 PM
This is weird. I test the installers on a blank Windows 7 VM every time and you're the second person now that complains that it won't work.

Does the path in the service command line match the path of your apache? You can get to the command by running "services.msc" and double clicking on "Apache"

Title: Re: Apache + PHP Installer
Post by: mario on February 08, 2021, 10:59:52 AM
 AyrA that was a spam post with a hidden url included. Your installer works fine.