[Nix-dev] simple php/apache server

Mathijs Kwik mathijs at bluescreen303.nl
Sun Sep 2 09:43:51 CEST 2012


Thanks,

I already figured it out I think.
I just define a custom subservice which doesn't do much except for
enablePHP = true;
Then I write a custom config section to use index.php.

It seems to work now. I'll look at some examples once I clean this up :)

On Sun, Sep 2, 2012 at 9:26 AM, Rob Vermaas <rob.vermaas at gmail.com> wrote:
> Hi Matthijs,
>
> I think there are some examples of PHP setup in
> https://nixos.org/repos/nix/configurations/trunk/
>
> Cheers,
> Rob
>
> On Sun, Sep 2, 2012 at 1:42 AM, Mathijs Kwik <mathijs at bluescreen303.nl> wrote:
>> Hi all,
>>
>> I would like to setup a server environment for some simple php scripts.
>> Setting up apache on nixos was easy, including vhosts.
>>
>> PHP however, was not so self-explanatory.
>> I found a "enablePHP" option, but that seemed to be for "subservices".
>> All I want is just a vhost with a hostname, a documentRoot, and enable
>> php for it.
>> Am I missing something?
>>
>> Thanks,
>> Mathijs
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
> --
> Rob Vermaas
>
> [email] rob.vermaas at gmail.com


More information about the nix-dev mailing list