Advertisement

Enabling SSI

Started by May 21, 2002 02:56 PM
5 comments, last by stefu 22 years, 8 months ago
Hi! I installed Apache and php on my Denian Linux. It's working well but for some reason I can't get SSI working. I'v trie two methods. 1. In httpd.conf I uncommented (in directory section /var/www) AddType text/html .shtml AddHandler server-parsed .shtml and also Includes option is there Options Indexes FollowSymLinks Includes 2. I created .htaccess file in the directory (/var/www): AddType text/html .shtml AddHandler server-parsed .shtml Options Indexes FollowSymLinks Includes But doesn't works. I have simple index.php-file that includes included.shtml. All in the /var/www directory. <!--#include file="included.shtml" --> It just doesn't include the file when I open index.php in browser Anyone knows reason? Do I have to restart apache after modifying /etc/apache/httpd.conf? I restarted by apachectl restart That ok? [edited by - stefu on May 21, 2002 4:02:48 PM]
I know that you DO have to restart your server.
Next, go to Php.net and look under docs. They have all the instructions there!

Rate me up.
Advertisement
Why php.net? Is SSI php property?

I have read apache documentation about enabling SSI.

Maybe I should always say that I''v read this and that docs.
But then you can say that read them again
quote: Original post by stefu
Why php.net? Is SSI php property?

I have read apache documentation about enabling SSI.

Maybe I should always say that I''v read this and that docs.
But then you can say that read them again


Php needs to know that you want to use SSI also with it''s files. But one question comes to mind, why don''t you just use PHP''s include() command???





"And that''s the bottom line cause I said so!"

Cyberdrek
danielc@iquebec.com
Founder
Laval Linux

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash
[Cyberdrek | ]
quote: But one question comes to mind, why don''t you just use PHP''s include() command???


Verry good question, with simple answer. I didn''t know its existence

I have just installed php, nothing more yet. But I tried it and it worked

Thanks a lot!!
the #include is SSI, it must in IN the .shtml

you''re trying it in a .php on a .shtml... pfff...
Advertisement
quote: Original post by Anonymous Poster
the #include is SSI, it must in IN the .shtml

you''re trying it in a .php on a .shtml... pfff...


ok, got it now

This topic is closed to new replies.

Advertisement