-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guide on running these versions with apache (mod php) #325
Comments
Hi ! AFAIK, we don't maintain 5.5, we start at 5.6. |
Ok, 5.6 is also fine for us. |
First you need to add the overlay of this flake in your own configuration. In the whole process, this is probably the most complex part. An overlay is just the default standard mechanism to extends Then, once it's done, a quick search on Google led me to https://nixos.wiki/wiki/PHP, where I can see a snippet related to Apache. You would just need to replace |
Could I point an ubuntu installed apache server to use this nix php binary (maybe by just hardcoding the path in nix store) |
Technically it should work, but using raw
|
Perfect, so apache would just call nix php automatically since it's on the path |
If there are no other |
Seems like mod-php embeds php within apache, and doesn't call cli process at all, so this idea wouldn't work |
In theory, it should be possible but unless Apache has stable ABI for modules, you would probably also need to ensure that the PHP is linked against the same version of Apache as the one you are running (and possibly other parameters). I think at that point it would be easier to replace the Ubuntu’s Apache with a one from Nixpkgs. |
Yes but does nixpkgs apache have older versions of mod-php? |
No. But that is what this repo is for. |
Ok, so older modphp versions can be added to this flake? |
If you want to to run Apache from Nix, you are best off looking at the relevant NixOS module. For example, this is how you get PHP with |
Yes, but can i replace the php version in them to older ones like 5.6 |
Sure, just do as mentioned above #325 (comment) |
I'm yet to try this overlays approach, it would be handier if it was prepackaged in this flake itself, basically I'm imagining this flake to be a simple way to maintain legacy versions of our software, we are also exploring lxd containers in this space. |
You do not need the overlays approach but it the simplest way to use this flake. Or at least with fewest caveats – you could just use the We are not going to include Apache in this flake, that just does not compose. |
i don't think what has been discussed in this issue is really the biggest challenge with what @aszenz is attempting to do - generating a configuration file for so how can @aszenz proceed? personally i would suggest using system-manager as it would make running older i was able to get the latest version of
@aszenz if you're interested in exploring this option further i would be happy to provide additional details for you |
Thanks, i tried this on my own nixos system (the server will be ubuntu though) and got this error:
Thanks i created numtide/system-manager#72, initially tested it on NixOS before i can test it on Ubuntu server |
as mentioned - if you're interested in exploring this option further i would be happy to provide additional details for you i did not include all details so please close that ticket against i pushed the source here so you can take a look and have a fully running example |
@aszenz i missed the part where you said you were testing on NixOS instead of Ubuntu, sorry. Did my example help at all? Did you get what you needed? |
Any idea on how we could use these old php version (5.5) on apache
The text was updated successfully, but these errors were encountered: