I'm looking for an easy way to install an Apache+PHP instance. I don't really need a full private LAMP stack, because I can use the server's MySQL instance instead of needing my own, but it would be nice to have both options. The first logical option is a Private Instance of the Shared Apache. This works if the requirements for the application can be satisfied by the configuration of the shared Apache server, and I'm looking primarily for isolation. In other cases, such as passing a PHP Authorization header, I'd like a more flexible, full featured private stack. For this, Bitnami's installers look good. I'd like a fairly unified installation procedure that works for these installers, starting with a LAMP stack, add-on options (such as Varnish, Laraval, phpMyAdmin) included but not enabled (loaded) by default. In this way, I'd have a fairly minimal, lightweight Apache stack with several optional add-ons which I can enable easily at a later time as needed. asked 15 Oct '15, 07:56 ryans ♦♦ |
The Bitnami stack comes with both Apache and MySQL, but initially you don't necessarily need the private MySQL instance. In this case, you need only one reserved port (for Apache), and don't need to run MySQL - but the binaries still exist if you need it later. Therefore, you'll first need to create one Custom Application (listening on port) - take a note of the assigned port. Create a directory or empty application to hold your actual application code (this example will use a " Then, set these environment variables and run the following script:
The above sets the Apache and MySQL ports to the same value (this way, you're not trying to use a non-reserved port), but only starts Apache, so it doesn't matter. That is, we assume you'll use the server-wide shared MySQL instance instead. If you want to use the included private MySQL, then create another Custom Application (listening on port) application to reserve another port and then configure mysql to use that port instead. This command starts Apache:
You could then extract the application into the configured A final note is that we've explicitly disabled the Hope that helps!
permanent link
This answer is marked "community wiki".
answered 15 Oct '15, 08:19 ryans ♦♦ |