How can I enable PHP within the Apache service configuration in Nixos?2019 Community Moderator ElectionNixOS on MacBook: how to enable sudden motion sensor?How do I maintain a clean system compiling package not in the main channel in Nixos?How can I enable nginx on nixos for localhost only?Can I add package libasound2 to the NixOS repository?How do I start the mariadb service on NixOS?How to rebuild the configuration of a NixOS installation from Live CD?How can I install Dragon Player on NixOS?How can I switch users in NixOS?How can I install jack2 on nixos?How can I set the Java heap size for elasticsearch on Nixos?
What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?
Is aluminum electrical wire used on aircraft?
Does malloc reserve more space while allocating memory?
What if you are holding an Iron Flask with a demon inside and walk into Antimagic Field?
Can a Canadian Travel to the USA twice, less than 180 days each time?
Lowest total scrabble score
Invalid date error by date command
When were female captains banned from Starfleet?
Redundant comparison & "if" before assignment
Biological Blimps: Propulsion
What exact color does ozone gas have?
Limits and Infinite Integration by Parts
Yosemite Fire Rings - What to Expect?
How to hide some fields of struct in C?
Multiplicative persistence
Recommended PCB layout understanding - ADM2572 datasheet
What is Cash Advance APR?
Is there a RAID 0 Equivalent for RAM?
Has any country ever had 2 former presidents in jail simultaneously?
Temporarily disable WLAN internet access for children, but allow it for adults
creating a ":KeepCursor" command
What if a revenant (monster) gains fire resistance?
It grows, but water kills it
What is the highest possible scrabble score for placing a single tile
How can I enable PHP within the Apache service configuration in Nixos?
2019 Community Moderator ElectionNixOS on MacBook: how to enable sudden motion sensor?How do I maintain a clean system compiling package not in the main channel in Nixos?How can I enable nginx on nixos for localhost only?Can I add package libasound2 to the NixOS repository?How do I start the mariadb service on NixOS?How to rebuild the configuration of a NixOS installation from Live CD?How can I install Dragon Player on NixOS?How can I switch users in NixOS?How can I install jack2 on nixos?How can I set the Java heap size for elasticsearch on Nixos?
I'm using the following config:
services.httpd =
enable = true;
adminAddr = "localhost";
extraModules =
[
"http2"
];
enablePHP = true;
virtualHosts =
[
hostName = "localhost";
documentRoot = "/var/www/html/html-geo";
serverAliases =
[
"localhost"
];
enableSSL = false;
];
;
users.users.http =
isNormalUser = true;
home = "/etc/user/http";
;
However this results in the following error:
Mar 21 15:23:44 nixos httpd[21707]: httpd: Syntax error on line 69 of
/nix/store/dp6kc224raib72dk8g2lahrr3a1drk8j-httpd.conf: Cannot load
/nix/store/bp2jirc0zwa46rb3xm62xjc8bsvknavc-apache-httpd-2.4.35/modul>
nixos nix
add a comment |
I'm using the following config:
services.httpd =
enable = true;
adminAddr = "localhost";
extraModules =
[
"http2"
];
enablePHP = true;
virtualHosts =
[
hostName = "localhost";
documentRoot = "/var/www/html/html-geo";
serverAliases =
[
"localhost"
];
enableSSL = false;
];
;
users.users.http =
isNormalUser = true;
home = "/etc/user/http";
;
However this results in the following error:
Mar 21 15:23:44 nixos httpd[21707]: httpd: Syntax error on line 69 of
/nix/store/dp6kc224raib72dk8g2lahrr3a1drk8j-httpd.conf: Cannot load
/nix/store/bp2jirc0zwa46rb3xm62xjc8bsvknavc-apache-httpd-2.4.35/modul>
nixos nix
add a comment |
I'm using the following config:
services.httpd =
enable = true;
adminAddr = "localhost";
extraModules =
[
"http2"
];
enablePHP = true;
virtualHosts =
[
hostName = "localhost";
documentRoot = "/var/www/html/html-geo";
serverAliases =
[
"localhost"
];
enableSSL = false;
];
;
users.users.http =
isNormalUser = true;
home = "/etc/user/http";
;
However this results in the following error:
Mar 21 15:23:44 nixos httpd[21707]: httpd: Syntax error on line 69 of
/nix/store/dp6kc224raib72dk8g2lahrr3a1drk8j-httpd.conf: Cannot load
/nix/store/bp2jirc0zwa46rb3xm62xjc8bsvknavc-apache-httpd-2.4.35/modul>
nixos nix
I'm using the following config:
services.httpd =
enable = true;
adminAddr = "localhost";
extraModules =
[
"http2"
];
enablePHP = true;
virtualHosts =
[
hostName = "localhost";
documentRoot = "/var/www/html/html-geo";
serverAliases =
[
"localhost"
];
enableSSL = false;
];
;
users.users.http =
isNormalUser = true;
home = "/etc/user/http";
;
However this results in the following error:
Mar 21 15:23:44 nixos httpd[21707]: httpd: Syntax error on line 69 of
/nix/store/dp6kc224raib72dk8g2lahrr3a1drk8j-httpd.conf: Cannot load
/nix/store/bp2jirc0zwa46rb3xm62xjc8bsvknavc-apache-httpd-2.4.35/modul>
nixos nix
nixos nix
edited yesterday
Chris Stryczynski
asked yesterday
Chris StryczynskiChris Stryczynski
649619
649619
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
name = "php7"; path = "$pkgs.php/modules/libphp7.so";
I needed to add the above into extraModules.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507746%2fhow-can-i-enable-php-within-the-apache-service-configuration-in-nixos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
name = "php7"; path = "$pkgs.php/modules/libphp7.so";
I needed to add the above into extraModules.
add a comment |
name = "php7"; path = "$pkgs.php/modules/libphp7.so";
I needed to add the above into extraModules.
add a comment |
name = "php7"; path = "$pkgs.php/modules/libphp7.so";
I needed to add the above into extraModules.
name = "php7"; path = "$pkgs.php/modules/libphp7.so";
I needed to add the above into extraModules.
answered yesterday
Chris StryczynskiChris Stryczynski
649619
649619
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507746%2fhow-can-i-enable-php-within-the-apache-service-configuration-in-nixos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown