Be a Supporter!

enabling SSI

  • 587 Views
  • 10 Replies
New Topic Respond to this Topic
Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
enabling SSI 2005-06-25 14:30:05 Reply

Hey guys. I have a server, and I have an ftp program. I need to make my server look for shtml files and parse their includes

The server OS is FreeBSD 4.11-STABLE

I've tried looking up info on sites for commands to use but they don't work >:(

They suggest things like:
AddHandler server-parsed .shtml
AddType text/html shtml

to which I just get "invalid command" messages

I'm pretty new to setting server permissions and stuff.. It also says I should restart my server when I execute the commands. How do I do that? :(


BBS Signature
Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to enabling SSI 2005-06-25 14:47:21 Reply

what server are you using?

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to enabling SSI 2005-06-25 15:08:34 Reply

linux/ apache


BBS Signature
Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to enabling SSI 2005-06-25 15:14:16 Reply

I always thought that was automatic...
where did you type those commands? are you sure you typed them in the server consule?

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to enabling SSI 2005-06-25 15:16:12 Reply

At 6/25/05 03:14 PM, Inglor wrote: I always thought that was automatic...
where did you type those commands? are you sure you typed them in the server consule?

See, that's where I'm lost...

All I know to do it to use my ftp program to go to my root directory, and from there I can use commands. But also I can't seem to find the folder(s) in my site directory that I'm supposed to modify, maybe they are hidden from me?


BBS Signature
thoughtpolice
thoughtpolice
  • Member since: Mar. 24, 2003
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to enabling SSI 2005-06-25 15:16:30 Reply

http://www.freebsddiary.org/apache-ssi.php should help.


omg.
Playstation Network tag: muffin-noodle
the empty set

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to enabling SSI 2005-06-25 15:23:38 Reply

At 6/25/05 03:16 PM, Sinnernaut wrote: http://www.freebsddiary.org/apache-ssi.php should help.

yeah, that's what I'm not getting... I can't find this magical config file that every place tells me about :(

Do I need to run a command to unhide files?


BBS Signature
Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to enabling SSI 2005-06-25 15:35:48 Reply

it's linux right? linux has remote access through SSL, look into it, better then FTP which is pretty much put file/get file limited

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to enabling SSI 2005-06-25 17:06:58 Reply

Hmm.. but even then I'd just like to find my config file, and figure out how to restart my server. is that only something my host can do?


BBS Signature
cryptacet
cryptacet
  • Member since: Jul. 15, 2000
  • Offline.
Forum Stats
Member
Level 45
Programmer
Response to enabling SSI 2005-06-25 17:33:26 Reply

At 6/25/05 05:06 PM, Afro_Ninja wrote: Hmm.. but even then I'd just like to find my config file, and figure out how to restart my server. is that only something my host can do?

Unless you have access to the entire server, you won't be finding the file.
Another way is to create a text file with the AddHandler and AddType lines in it, name it .htaccess and put the file in the relevant directory with the shtml files.

If this still doesn't work, you will have to ask the server administrator.

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to enabling SSI 2005-06-25 18:21:08 Reply

Ok, Inglor showed me how to do it with php, and it works now

Thanks for the help guys : )

also, I already tried that htaccess thing, it didn't seem to work..


BBS Signature