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 <[email protected]> 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 <[email protected]> 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 >> [email protected] >> http://lists.science.uu.nl/mailman/listinfo/nix-dev > > > > -- > Rob Vermaas > > [email] [email protected] _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
