Cannot set suPHP_ConfigPath for localhost












4















I am trying to make my php.ini file recursive.



echo php_ini_loaded_file();


gives:



C:xamppphpphp.ini


Yet when I set in my .htaccess file:



suPHP_ConfigPath C:xamppphpphp.ini


I get




Server error! The server encountered an internal error and was unable
to complete your request. Either the server is overloaded or there was
an error in a CGI script.



If you think this is a server error, please contact the webmaster.



Error 500 localhost Apache/2.4.37 (Win32) OpenSSL/1.1.1 PHP/7.2.12




Please tell me what I am doing wrong.



As per guide here.










share|improve this question

























  • Did you check permissions? Error 500 is generic and would advise checking other logs or increasing the log level.

    – Twisty
    Jan 1 at 20:44











  • Why are you using SuPHP? Its not maintained. It forces all code to run as interpreted. Use PHP-FPM if you want to run PHP as different users.

    – symcbean
    Jan 1 at 21:02











  • @Twisty, error log shows: [Wed Jan 02 00:30:24.960427 2019] [core:alert] [pid 32488:tid 1980] [client ::1:63059] C:/xampp/htdocs/sillyharvest/.htaccess: Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration What is to be made of this?

    – ptrcao
    Jan 1 at 21:04













  • @symcbean I'm just blindly following a guide as I'm not a web administrator and have little idea what I'm doing here. Feel free to suggest a step-by-step solution that I can follow.

    – ptrcao
    Jan 1 at 21:09








  • 1





    Take a look here: pickaweb.co.uk/kb/…

    – Twisty
    Jan 4 at 3:48
















4















I am trying to make my php.ini file recursive.



echo php_ini_loaded_file();


gives:



C:xamppphpphp.ini


Yet when I set in my .htaccess file:



suPHP_ConfigPath C:xamppphpphp.ini


I get




Server error! The server encountered an internal error and was unable
to complete your request. Either the server is overloaded or there was
an error in a CGI script.



If you think this is a server error, please contact the webmaster.



Error 500 localhost Apache/2.4.37 (Win32) OpenSSL/1.1.1 PHP/7.2.12




Please tell me what I am doing wrong.



As per guide here.










share|improve this question

























  • Did you check permissions? Error 500 is generic and would advise checking other logs or increasing the log level.

    – Twisty
    Jan 1 at 20:44











  • Why are you using SuPHP? Its not maintained. It forces all code to run as interpreted. Use PHP-FPM if you want to run PHP as different users.

    – symcbean
    Jan 1 at 21:02











  • @Twisty, error log shows: [Wed Jan 02 00:30:24.960427 2019] [core:alert] [pid 32488:tid 1980] [client ::1:63059] C:/xampp/htdocs/sillyharvest/.htaccess: Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration What is to be made of this?

    – ptrcao
    Jan 1 at 21:04













  • @symcbean I'm just blindly following a guide as I'm not a web administrator and have little idea what I'm doing here. Feel free to suggest a step-by-step solution that I can follow.

    – ptrcao
    Jan 1 at 21:09








  • 1





    Take a look here: pickaweb.co.uk/kb/…

    – Twisty
    Jan 4 at 3:48














4












4








4


1






I am trying to make my php.ini file recursive.



echo php_ini_loaded_file();


gives:



C:xamppphpphp.ini


Yet when I set in my .htaccess file:



suPHP_ConfigPath C:xamppphpphp.ini


I get




Server error! The server encountered an internal error and was unable
to complete your request. Either the server is overloaded or there was
an error in a CGI script.



If you think this is a server error, please contact the webmaster.



Error 500 localhost Apache/2.4.37 (Win32) OpenSSL/1.1.1 PHP/7.2.12




Please tell me what I am doing wrong.



As per guide here.










share|improve this question
















I am trying to make my php.ini file recursive.



echo php_ini_loaded_file();


gives:



C:xamppphpphp.ini


Yet when I set in my .htaccess file:



suPHP_ConfigPath C:xamppphpphp.ini


I get




Server error! The server encountered an internal error and was unable
to complete your request. Either the server is overloaded or there was
an error in a CGI script.



If you think this is a server error, please contact the webmaster.



Error 500 localhost Apache/2.4.37 (Win32) OpenSSL/1.1.1 PHP/7.2.12




Please tell me what I am doing wrong.



As per guide here.







php .htaccess localhost






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 1 at 20:37







ptrcao

















asked Jan 1 at 13:35









ptrcaoptrcao

1




1













  • Did you check permissions? Error 500 is generic and would advise checking other logs or increasing the log level.

    – Twisty
    Jan 1 at 20:44











  • Why are you using SuPHP? Its not maintained. It forces all code to run as interpreted. Use PHP-FPM if you want to run PHP as different users.

    – symcbean
    Jan 1 at 21:02











  • @Twisty, error log shows: [Wed Jan 02 00:30:24.960427 2019] [core:alert] [pid 32488:tid 1980] [client ::1:63059] C:/xampp/htdocs/sillyharvest/.htaccess: Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration What is to be made of this?

    – ptrcao
    Jan 1 at 21:04













  • @symcbean I'm just blindly following a guide as I'm not a web administrator and have little idea what I'm doing here. Feel free to suggest a step-by-step solution that I can follow.

    – ptrcao
    Jan 1 at 21:09








  • 1





    Take a look here: pickaweb.co.uk/kb/…

    – Twisty
    Jan 4 at 3:48



















  • Did you check permissions? Error 500 is generic and would advise checking other logs or increasing the log level.

    – Twisty
    Jan 1 at 20:44











  • Why are you using SuPHP? Its not maintained. It forces all code to run as interpreted. Use PHP-FPM if you want to run PHP as different users.

    – symcbean
    Jan 1 at 21:02











  • @Twisty, error log shows: [Wed Jan 02 00:30:24.960427 2019] [core:alert] [pid 32488:tid 1980] [client ::1:63059] C:/xampp/htdocs/sillyharvest/.htaccess: Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration What is to be made of this?

    – ptrcao
    Jan 1 at 21:04













  • @symcbean I'm just blindly following a guide as I'm not a web administrator and have little idea what I'm doing here. Feel free to suggest a step-by-step solution that I can follow.

    – ptrcao
    Jan 1 at 21:09








  • 1





    Take a look here: pickaweb.co.uk/kb/…

    – Twisty
    Jan 4 at 3:48

















Did you check permissions? Error 500 is generic and would advise checking other logs or increasing the log level.

– Twisty
Jan 1 at 20:44





Did you check permissions? Error 500 is generic and would advise checking other logs or increasing the log level.

– Twisty
Jan 1 at 20:44













Why are you using SuPHP? Its not maintained. It forces all code to run as interpreted. Use PHP-FPM if you want to run PHP as different users.

– symcbean
Jan 1 at 21:02





Why are you using SuPHP? Its not maintained. It forces all code to run as interpreted. Use PHP-FPM if you want to run PHP as different users.

– symcbean
Jan 1 at 21:02













@Twisty, error log shows: [Wed Jan 02 00:30:24.960427 2019] [core:alert] [pid 32488:tid 1980] [client ::1:63059] C:/xampp/htdocs/sillyharvest/.htaccess: Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration What is to be made of this?

– ptrcao
Jan 1 at 21:04







@Twisty, error log shows: [Wed Jan 02 00:30:24.960427 2019] [core:alert] [pid 32488:tid 1980] [client ::1:63059] C:/xampp/htdocs/sillyharvest/.htaccess: Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration What is to be made of this?

– ptrcao
Jan 1 at 21:04















@symcbean I'm just blindly following a guide as I'm not a web administrator and have little idea what I'm doing here. Feel free to suggest a step-by-step solution that I can follow.

– ptrcao
Jan 1 at 21:09







@symcbean I'm just blindly following a guide as I'm not a web administrator and have little idea what I'm doing here. Feel free to suggest a step-by-step solution that I can follow.

– ptrcao
Jan 1 at 21:09






1




1





Take a look here: pickaweb.co.uk/kb/…

– Twisty
Jan 4 at 3:48





Take a look here: pickaweb.co.uk/kb/…

– Twisty
Jan 4 at 3:48












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53995885%2fcannot-set-suphp-configpath-for-localhost%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53995885%2fcannot-set-suphp-configpath-for-localhost%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

How to fix TextFormField cause rebuild widget in Flutter