Gossamer Forum
Home : General : Chit Chat :

afew questions

Quote Reply
afew questions
1) how to edit files such as httpd.conf using pico command

pico httpd.conf

i'm getting cpmmands at the end of page where i do not know how to use. like how to exit, how to copy and how to paste

2) how to make ssi work in html pages as well as shtml pages


3) how to make cgi scripts work outside cgi-bin directory

4) how to redirect pages not found (404) to a file you made


thanks for your help
Quote Reply
Re: [theguy] afew questions In reply to
Quote:
1) how to edit files such as httpd.conf using pico command

pico httpd.conf

i'm getting cpmmands at the end of page where i do not know how to use. like how to exit, how to copy and how to paste

It tells you at the bottom of the screen. ^ just means the control key so to exit you press ctrl + x etc.

Quote:
2) how to make ssi work in html pages as well as shtml pages

It's not really a great idea as it will slow down page loading but...

Put:

AddHandler server-parsed .shtml .html

...in httpd.conf or maybe .htaccess

Quote:
3) how to make cgi scripts work outside cgi-bin directory

Put:

Options +ExecCGI

...in a .htaccess file.

Quote:
4) how to redirect pages not found (404) to a file you made

Put:

ErrorDocument 404 /blah.html

...in .htaccess or your vhost directive.

Everything I've mentioned and more can be found at apache.org.
Quote Reply
Re: [Paul] afew questions In reply to
I'm not the pro on this but,

I wouldn't run cgi-scipts outside of the cgi-bin. security issues and what not.

I don't use SSI, I use php instead.

The debate runs on how much server resource uses up if you parse every page. A few years ago I could totally see and comprehend the reasoning but these days .... hmmm I find php a great alternative to SSI, but I guess it depends on what you're using it for. I like to build html up with php.

cheers

openoffice + gimp + sketch ... Smile
Quote Reply
Re: [QooQ] afew questions In reply to
Wahooo, another PHP lover Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] afew questions In reply to
i do not know why but nothing is working on my server
Quote Reply
Re: [theguy] afew questions In reply to
theguy,

hmm, I guess you better email the sysadmin.

@php
I like it for it's ASP like abilities. Code wise I can't say much but both perl and php work for me.
I love the linkSQL solution. A perl backend with the ability to use php on the top end.

Interesting that php scripts are still not very well hardened code wise but the crowd itself in genreal is very creative and love to "borrow" from each other. ie, the nukes (thatwares). Anybody notice that they all basically alike?

openoffice + gimp + sketch ... Smile