Apache SSI redhat 6

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm trying to figure out how the apache SSI module works,



Following mod_include pache doc here is my configuration:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>


And of course it is not working.



What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:



<!--#echo var="DATE_LOCAL" -->


Using apache 2.4 on rhel6,



Edit virtual configuration:



VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used


edit : second command:



Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


And thanks again.







share|improve this question


















  • 2




    It would be good to include any relevant error messages usually found in /var/log/apache2/error.log
    – RubberStamp
    Dec 14 '17 at 18:25










  • I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
    – gatemed
    Dec 15 '17 at 10:06










  • Looks like the modules loaded fine... now let's look at other configuration items so we know where to start... httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG and httpd -V
    – RubberStamp
    Dec 15 '17 at 16:01










  • @RubberStamp done
    – gatemed
    Dec 15 '17 at 16:39










  • From the vhosts output it looks like you are running SELinux. Is that correct?
    – RubberStamp
    Dec 15 '17 at 17:09














up vote
0
down vote

favorite












I'm trying to figure out how the apache SSI module works,



Following mod_include pache doc here is my configuration:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>


And of course it is not working.



What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:



<!--#echo var="DATE_LOCAL" -->


Using apache 2.4 on rhel6,



Edit virtual configuration:



VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used


edit : second command:



Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


And thanks again.







share|improve this question


















  • 2




    It would be good to include any relevant error messages usually found in /var/log/apache2/error.log
    – RubberStamp
    Dec 14 '17 at 18:25










  • I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
    – gatemed
    Dec 15 '17 at 10:06










  • Looks like the modules loaded fine... now let's look at other configuration items so we know where to start... httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG and httpd -V
    – RubberStamp
    Dec 15 '17 at 16:01










  • @RubberStamp done
    – gatemed
    Dec 15 '17 at 16:39










  • From the vhosts output it looks like you are running SELinux. Is that correct?
    – RubberStamp
    Dec 15 '17 at 17:09












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to figure out how the apache SSI module works,



Following mod_include pache doc here is my configuration:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>


And of course it is not working.



What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:



<!--#echo var="DATE_LOCAL" -->


Using apache 2.4 on rhel6,



Edit virtual configuration:



VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used


edit : second command:



Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


And thanks again.







share|improve this question














I'm trying to figure out how the apache SSI module works,



Following mod_include pache doc here is my configuration:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>


And of course it is not working.



What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:



<!--#echo var="DATE_LOCAL" -->


Using apache 2.4 on rhel6,



Edit virtual configuration:



VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used


edit : second command:



Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


And thanks again.









share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '17 at 16:38

























asked Dec 14 '17 at 17:56









gatemed

13




13







  • 2




    It would be good to include any relevant error messages usually found in /var/log/apache2/error.log
    – RubberStamp
    Dec 14 '17 at 18:25










  • I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
    – gatemed
    Dec 15 '17 at 10:06










  • Looks like the modules loaded fine... now let's look at other configuration items so we know where to start... httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG and httpd -V
    – RubberStamp
    Dec 15 '17 at 16:01










  • @RubberStamp done
    – gatemed
    Dec 15 '17 at 16:39










  • From the vhosts output it looks like you are running SELinux. Is that correct?
    – RubberStamp
    Dec 15 '17 at 17:09












  • 2




    It would be good to include any relevant error messages usually found in /var/log/apache2/error.log
    – RubberStamp
    Dec 14 '17 at 18:25










  • I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
    – gatemed
    Dec 15 '17 at 10:06










  • Looks like the modules loaded fine... now let's look at other configuration items so we know where to start... httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG and httpd -V
    – RubberStamp
    Dec 15 '17 at 16:01










  • @RubberStamp done
    – gatemed
    Dec 15 '17 at 16:39










  • From the vhosts output it looks like you are running SELinux. Is that correct?
    – RubberStamp
    Dec 15 '17 at 17:09







2




2




It would be good to include any relevant error messages usually found in /var/log/apache2/error.log
– RubberStamp
Dec 14 '17 at 18:25




It would be good to include any relevant error messages usually found in /var/log/apache2/error.log
– RubberStamp
Dec 14 '17 at 18:25












I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
– gatemed
Dec 15 '17 at 10:06




I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
– gatemed
Dec 15 '17 at 10:06












Looks like the modules loaded fine... now let's look at other configuration items so we know where to start... httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG and httpd -V
– RubberStamp
Dec 15 '17 at 16:01




Looks like the modules loaded fine... now let's look at other configuration items so we know where to start... httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG and httpd -V
– RubberStamp
Dec 15 '17 at 16:01












@RubberStamp done
– gatemed
Dec 15 '17 at 16:39




@RubberStamp done
– gatemed
Dec 15 '17 at 16:39












From the vhosts output it looks like you are running SELinux. Is that correct?
– RubberStamp
Dec 15 '17 at 17:09




From the vhosts output it looks like you are running SELinux. Is that correct?
– RubberStamp
Dec 15 '17 at 17:09










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Assuming your include module is loading correctly, and you've loaded the mime module which is a dependency of include...



You probably need to have the complete directory listed, like this:



/var/www/html/test


rather than simply test and I usually find that +Includes is a good idea rather than Includes. So, the working configuration should look something like this:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>





share|improve this answer




















  • Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
    – gatemed
    Dec 15 '17 at 15:12










  • @gatemed: It works on my system. You must have something else configured... please add the output of apachectl -M to your question... or the equivalent in RHEL6... service httpd -M
    – RubberStamp
    Dec 15 '17 at 15:19











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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f410922%2fapache-ssi-redhat-6%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Assuming your include module is loading correctly, and you've loaded the mime module which is a dependency of include...



You probably need to have the complete directory listed, like this:



/var/www/html/test


rather than simply test and I usually find that +Includes is a good idea rather than Includes. So, the working configuration should look something like this:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>





share|improve this answer




















  • Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
    – gatemed
    Dec 15 '17 at 15:12










  • @gatemed: It works on my system. You must have something else configured... please add the output of apachectl -M to your question... or the equivalent in RHEL6... service httpd -M
    – RubberStamp
    Dec 15 '17 at 15:19















up vote
0
down vote













Assuming your include module is loading correctly, and you've loaded the mime module which is a dependency of include...



You probably need to have the complete directory listed, like this:



/var/www/html/test


rather than simply test and I usually find that +Includes is a good idea rather than Includes. So, the working configuration should look something like this:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>





share|improve this answer




















  • Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
    – gatemed
    Dec 15 '17 at 15:12










  • @gatemed: It works on my system. You must have something else configured... please add the output of apachectl -M to your question... or the equivalent in RHEL6... service httpd -M
    – RubberStamp
    Dec 15 '17 at 15:19













up vote
0
down vote










up vote
0
down vote









Assuming your include module is loading correctly, and you've loaded the mime module which is a dependency of include...



You probably need to have the complete directory listed, like this:



/var/www/html/test


rather than simply test and I usually find that +Includes is a good idea rather than Includes. So, the working configuration should look something like this:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>





share|improve this answer












Assuming your include module is loading correctly, and you've loaded the mime module which is a dependency of include...



You probably need to have the complete directory listed, like this:



/var/www/html/test


rather than simply test and I usually find that +Includes is a good idea rather than Includes. So, the working configuration should look something like this:



LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 15 '17 at 14:59









RubberStamp

1,4551216




1,4551216











  • Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
    – gatemed
    Dec 15 '17 at 15:12










  • @gatemed: It works on my system. You must have something else configured... please add the output of apachectl -M to your question... or the equivalent in RHEL6... service httpd -M
    – RubberStamp
    Dec 15 '17 at 15:19

















  • Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
    – gatemed
    Dec 15 '17 at 15:12










  • @gatemed: It works on my system. You must have something else configured... please add the output of apachectl -M to your question... or the equivalent in RHEL6... service httpd -M
    – RubberStamp
    Dec 15 '17 at 15:19
















Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
– gatemed
Dec 15 '17 at 15:12




Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
– gatemed
Dec 15 '17 at 15:12












@gatemed: It works on my system. You must have something else configured... please add the output of apachectl -M to your question... or the equivalent in RHEL6... service httpd -M
– RubberStamp
Dec 15 '17 at 15:19





@gatemed: It works on my system. You must have something else configured... please add the output of apachectl -M to your question... or the equivalent in RHEL6... service httpd -M
– RubberStamp
Dec 15 '17 at 15:19













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f410922%2fapache-ssi-redhat-6%23new-answer', 'question_page');

);

Post as a guest













































































B3Tbf5ET9nlaMphmzDJWHzaLZj7Pv6SDW8ZQrwBKG,FWU7cBHOLCO2vF g8DB GQ dK XDhzASXMdKReDbOKU1
vnrOXBo4QICC gt8 JpqgatKYxP8hQ6XWcz9psNlL67Q

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS