RE: [newbie] cgi help
On Thu, 2002-11-28 at 03:36, Aaron wrote: > Since were on the subject of cgi. > I setup apache and put a test site in the var/www/html/ directory. I > added some cgi scripts and programs I download from the net. However non > of them will work for me. I checked that I have the correct path to perl > But I still get Internal Server Error from the apache server. > I don't know what I am missing. > Could someone help?? > Thanks > Aaron Are the CGI proggies going into the correct directory? /var/www/cgi-bin /var/www/html ...each directory is importantly important... -- Thu Nov 28 15:45:00 EST 2002 .o0 linux user:267497 0o. |____ | kühn media australia | / \ /| |'-. | http://kma.0catch.com | .\__/ || | | | | _ / `._ \|_|_.-' | stephen kühn | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | |/ ._/ |"| | email: [EMAIL PROTECTED] | |'. `\ | | |icq: 5483808 | ;"""/ / | | | | smk ) /_/| |.---.| | mobile: 0410-728-389 | ' `-`' " " | Berkeley, New South Wales, AU Coralament*Best Grötens*Liebe Grüße*Best Regards*Elkorajn Salutojn Our policy is, when in doubt, do the right thing. -- Roy L. Ash, ex-president, Litton Industries Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] cgi help
On Wed, 2002-11-27 at 21:12, Franki wrote: > no,, 127.0.0.1 should work.. but it means those entries in your error log > have nothing to do with you.. > > give us more details.. > > 1. where exactly is the file installed?? (eg /var/www/cgi-bin ) {There are two >parts in two directories the xmlboard.cgi is in the /var/www/cgi-bin directory} {And the rest of the program is in a directory called forum. I first put it under var/www/ then I thought that maybe it should be in my home directory so I made one there and changed the path to it in the xmlboard.cgi script file} > 2. Where did you get the script, whats it called, where did you get it and > what does it do (supposed to)?{ It is a xml based forum. I got it from cgi resources >the home site of the script is http://xmlboard.hypermart.net/ } > 3. What exact url are you using in the browser to test the script.{ >http://localhost/cgi-bin/xmlboard.cgi} > > that info should help in working out what is going on. {Also here is the readme file as an attachment.} > Thanks Aaron > rgds > > Frank > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > Sent: Thursday, 28 November 2002 4:49 AM > To: [EMAIL PROTECTED] > Subject: RE: [newbie] cgi help > > > On Wed, 2002-11-27 at 20:29, Franki wrote: > > is your IP address either of those?? my ipaddress?? I am using localhost > do I need an ipaddress for this and if so??? > I am using apache to locally test a site I built. I would also love to > let others see it. Am I barking up the wrong tree?? > > Or is the ipaddress the one my machine uses to connect to the net??? > > Thanks > Aaron > > > > the vti and mem and msadc look like a frontpage application of some sort.. > > > > just what is the script you are trying to run??? > > > >{ xmlboard and clinks > I am trying to get a usable free forum and a cgi script that will rotate > a line of text weekly.} > > rgds > > > > Frank > > > > -Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > > Sent: Thursday, 28 November 2002 4:10 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [newbie] cgi help > > > > > > On Wed, 2002-11-27 at 19:18, Franki wrote: > > > here are some steps to try. > > > OK here is the output but I am not sure what it means > > > 1. Check the error log.. open a console: tail /var/log/httpd/error_log > > [Wed Nov 27 21:05:15 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/_vti_bin > > [Wed Nov 27 21:05:20 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/_mem_bin > > [Wed Nov 27 21:05:21 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/msadc > > [Wed Nov 27 21:05:23 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/scripts > > [Wed Nov 27 21:05:27 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/scripts > > [Wed Nov 27 21:05:29 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/scripts > > [Wed Nov 27 21:05:34 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/scripts > > [Wed Nov 27 21:05:36 2002] [error] [client 62.219.125.72] File does not > > exist: /var/www/html/scripts > > [Wed Nov 27 21:14:54 2002] [error] [client 62.219.128.77] File does not > > exist: /var/www/html/scripts > > [Wed Nov 27 21:14:57 2002] [error] [client 62.219.128.77] File does not > > exist: /var/www/html/scripts > > > > > > > > > > > > > > > > > > > > > > > 2. Make sure the file was uploaded as asci not binary.. if you used an > ftp > > > client. > > > > This is all localhost > > > 3. Make sure /etc/httpd/conf/commonhttpd.conf or httd.conf has a section > > for > > > /cgi-bin/ and that its set to ALLOW. > > > > > > 5 make sure the permissions and ownership are correct.. as a basis to > see > > if > > > you can get it working, try this: > > > > > > chmod 755 myscript.pl > > > chown apache.apache myscript.pl > > > > > > then try it again.. > > > > > > they are the most common problems I have seen with cgi scripts and > server > > > 500 errors. > > > > > > > > > rgds > > > > > > Frank > > > > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of
RE: [newbie] cgi help
no,, 127.0.0.1 should woek.. but it means those entries in your error log have nothing to do with you.. give us more details.. 1. where exactly is the file installed?? (eg /var/www/cgi-bin ) 2. Where did you get the script, whats it called, where did you get it and what does it do (supposed to)? 3. What exact url are you using in the browser to test the script. that info should help in working out what is going on. rgds Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Sent: Thursday, 28 November 2002 4:49 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] cgi help On Wed, 2002-11-27 at 20:29, Franki wrote: > is your IP address either of those?? my ipaddress?? I am using localhost do I need an ipaddress for this and if so??? I am using apache to locally test a site I built. I would also love to let others see it. Am I barking up the wrong tree?? Or is the ipaddress the one my machine uses to connect to the net??? Thanks Aaron > > the vti and mem and msadc look like a frontpage application of some sort.. > > just what is the script you are trying to run??? > >{ xmlboard and clinks I am trying to get a usable free forum and a cgi script that will rotate a line of text weekly.} > rgds > > Frank > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > Sent: Thursday, 28 November 2002 4:10 AM > To: [EMAIL PROTECTED] > Subject: RE: [newbie] cgi help > > > On Wed, 2002-11-27 at 19:18, Franki wrote: > > here are some steps to try. > > OK here is the output but I am not sure what it means > > 1. Check the error log.. open a console: tail /var/log/httpd/error_log > [Wed Nov 27 21:05:15 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/_vti_bin > [Wed Nov 27 21:05:20 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/_mem_bin > [Wed Nov 27 21:05:21 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/msadc > [Wed Nov 27 21:05:23 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:27 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:29 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:34 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:36 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:14:54 2002] [error] [client 62.219.128.77] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:14:57 2002] [error] [client 62.219.128.77] File does not > exist: /var/www/html/scripts > > > > > > > > > > > > 2. Make sure the file was uploaded as asci not binary.. if you used an ftp > > client. > > This is all localhost > > 3. Make sure /etc/httpd/conf/commonhttpd.conf or httd.conf has a section > for > > /cgi-bin/ and that its set to ALLOW. > > > > 5 make sure the permissions and ownership are correct.. as a basis to see > if > > you can get it working, try this: > > > > chmod 755 myscript.pl > > chown apache.apache myscript.pl > > > > then try it again.. > > > > they are the most common problems I have seen with cgi scripts and server > > 500 errors. > > > > > > rgds > > > > Frank > > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > > Sent: Thursday, 28 November 2002 12:37 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [newbie] cgi help > > > > > > Since were on the subject of cgi. > > I setup apache and put a test site in the var/www/html/ directory. I > > added some cgi scripts and programs I download from the net. However non > > of them will work for me. I checked that I have the correct path to perl > > But I still get Internal Server Error from the apache server. > > I don't know what I am missing. > > Could someone help?? > > Thanks > > Aaron > > > > On Wed, 2002-11-27 at 11:28, Franki wrote: > > > try swapping the url to the image and css from relative to absolute, and > > > move both out of the cgi-bin. > > > > > > they should be somewhere like /var/www/html/images > > > > > > in the script they should link to the URL.. > > > http://mydomain.com/images/gandhi.jpg > > > > > > see how you go with that. some setups will not server images and stuff > > from > > > the cgi-bin. > > > > > > rgds >
RE: [newbie] cgi help
On Wed, 2002-11-27 at 20:29, Franki wrote: > is your IP address either of those?? my ipaddress?? I am using localhost do I need >an ipaddress for this and if so??? I am using apache to locally test a site I built. I would also love to let others see it. Am I barking up the wrong tree?? Or is the ipaddress the one my machine uses to connect to the net??? Thanks Aaron > > the vti and mem and msadc look like a frontpage application of some sort.. > > just what is the script you are trying to run??? > >{ xmlboard and clinks I am trying to get a usable free forum and a cgi script that will rotate a line of text weekly.} > rgds > > Frank > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > Sent: Thursday, 28 November 2002 4:10 AM > To: [EMAIL PROTECTED] > Subject: RE: [newbie] cgi help > > > On Wed, 2002-11-27 at 19:18, Franki wrote: > > here are some steps to try. > > OK here is the output but I am not sure what it means > > 1. Check the error log.. open a console: tail /var/log/httpd/error_log > [Wed Nov 27 21:05:15 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/_vti_bin > [Wed Nov 27 21:05:20 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/_mem_bin > [Wed Nov 27 21:05:21 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/msadc > [Wed Nov 27 21:05:23 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:27 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:29 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:34 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:05:36 2002] [error] [client 62.219.125.72] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:14:54 2002] [error] [client 62.219.128.77] File does not > exist: /var/www/html/scripts > [Wed Nov 27 21:14:57 2002] [error] [client 62.219.128.77] File does not > exist: /var/www/html/scripts > > > > > > > > > > > > 2. Make sure the file was uploaded as asci not binary.. if you used an ftp > > client. > > This is all localhost > > 3. Make sure /etc/httpd/conf/commonhttpd.conf or httd.conf has a section > for > > /cgi-bin/ and that its set to ALLOW. > > > > 5 make sure the permissions and ownership are correct.. as a basis to see > if > > you can get it working, try this: > > > > chmod 755 myscript.pl > > chown apache.apache myscript.pl > > > > then try it again.. > > > > they are the most common problems I have seen with cgi scripts and server > > 500 errors. > > > > > > rgds > > > > Frank > > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > > Sent: Thursday, 28 November 2002 12:37 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [newbie] cgi help > > > > > > Since were on the subject of cgi. > > I setup apache and put a test site in the var/www/html/ directory. I > > added some cgi scripts and programs I download from the net. However non > > of them will work for me. I checked that I have the correct path to perl > > But I still get Internal Server Error from the apache server. > > I don't know what I am missing. > > Could someone help?? > > Thanks > > Aaron > > > > On Wed, 2002-11-27 at 11:28, Franki wrote: > > > try swapping the url to the image and css from relative to absolute, and > > > move both out of the cgi-bin. > > > > > > they should be somewhere like /var/www/html/images > > > > > > in the script they should link to the URL.. > > > http://mydomain.com/images/gandhi.jpg > > > > > > see how you go with that. some setups will not server images and stuff > > from > > > the cgi-bin. > > > > > > rgds > > > > > > Franki > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of L.V.Gandhi > > > Sent: Tuesday, 26 November 2002 11:27 PM > > > To: [EMAIL PROTECTED] > > > Subject: [newbie] cgi help > > > > > > > > > When I call the cgi file given below, I don't get the effects of > > stylesheet > > > mentioned in the header and also the p
RE: [newbie] cgi help
is your IP address either of those?? the vti and mem and msadc look like a frontpage application of some sort.. just what is the script you are trying to run??? rgds Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Sent: Thursday, 28 November 2002 4:10 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] cgi help On Wed, 2002-11-27 at 19:18, Franki wrote: > here are some steps to try. > OK here is the output but I am not sure what it means > 1. Check the error log.. open a console: tail /var/log/httpd/error_log [Wed Nov 27 21:05:15 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/_vti_bin [Wed Nov 27 21:05:20 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/_mem_bin [Wed Nov 27 21:05:21 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/msadc [Wed Nov 27 21:05:23 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:27 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:29 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:34 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:36 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:14:54 2002] [error] [client 62.219.128.77] File does not exist: /var/www/html/scripts [Wed Nov 27 21:14:57 2002] [error] [client 62.219.128.77] File does not exist: /var/www/html/scripts > 2. Make sure the file was uploaded as asci not binary.. if you used an ftp > client. This is all localhost > 3. Make sure /etc/httpd/conf/commonhttpd.conf or httd.conf has a section for > /cgi-bin/ and that its set to ALLOW. > > 5 make sure the permissions and ownership are correct.. as a basis to see if > you can get it working, try this: > > chmod 755 myscript.pl > chown apache.apache myscript.pl > > then try it again.. > > they are the most common problems I have seen with cgi scripts and server > 500 errors. > > > rgds > > Frank > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > Sent: Thursday, 28 November 2002 12:37 AM > To: [EMAIL PROTECTED] > Subject: RE: [newbie] cgi help > > > Since were on the subject of cgi. > I setup apache and put a test site in the var/www/html/ directory. I > added some cgi scripts and programs I download from the net. However non > of them will work for me. I checked that I have the correct path to perl > But I still get Internal Server Error from the apache server. > I don't know what I am missing. > Could someone help?? > Thanks > Aaron > > On Wed, 2002-11-27 at 11:28, Franki wrote: > > try swapping the url to the image and css from relative to absolute, and > > move both out of the cgi-bin. > > > > they should be somewhere like /var/www/html/images > > > > in the script they should link to the URL.. > > http://mydomain.com/images/gandhi.jpg > > > > see how you go with that. some setups will not server images and stuff > from > > the cgi-bin. > > > > rgds > > > > Franki > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of L.V.Gandhi > > Sent: Tuesday, 26 November 2002 11:27 PM > > To: [EMAIL PROTECTED] > > Subject: [newbie] cgi help > > > > > > When I call the cgi file given below, I don't get the effects of > stylesheet > > mentioned in the header and also the picture. both the files are in the > same > > folder as that of the cgi file. > > === > > #!/usr/bin/perl > > > > print < > Content-Type: text/html\n\n > > > > > > test > > > > > > > > test > > > align="left"> > > > > > > End > > == > > I called the script with test .html given below. > > Test > > > > csstest > > > > What should be done to get the desired effect. > > -- > > L.V.Gandhi > > 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 > > MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA > > > > > > > > > > > > > > > > > > > > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] cgi help
On Wed, 2002-11-27 at 19:18, Franki wrote: > here are some steps to try. > OK here is the output but I am not sure what it means > 1. Check the error log.. open a console: tail /var/log/httpd/error_log [Wed Nov 27 21:05:15 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/_vti_bin [Wed Nov 27 21:05:20 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/_mem_bin [Wed Nov 27 21:05:21 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/msadc [Wed Nov 27 21:05:23 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:27 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:29 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:34 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:05:36 2002] [error] [client 62.219.125.72] File does not exist: /var/www/html/scripts [Wed Nov 27 21:14:54 2002] [error] [client 62.219.128.77] File does not exist: /var/www/html/scripts [Wed Nov 27 21:14:57 2002] [error] [client 62.219.128.77] File does not exist: /var/www/html/scripts > 2. Make sure the file was uploaded as asci not binary.. if you used an ftp > client. This is all localhost > 3. Make sure /etc/httpd/conf/commonhttpd.conf or httd.conf has a section for > /cgi-bin/ and that its set to ALLOW. > > 5 make sure the permissions and ownership are correct.. as a basis to see if > you can get it working, try this: > > chmod 755 myscript.pl > chown apache.apache myscript.pl > > then try it again.. > > they are the most common problems I have seen with cgi scripts and server > 500 errors. > > > rgds > > Frank > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron > Sent: Thursday, 28 November 2002 12:37 AM > To: [EMAIL PROTECTED] > Subject: RE: [newbie] cgi help > > > Since were on the subject of cgi. > I setup apache and put a test site in the var/www/html/ directory. I > added some cgi scripts and programs I download from the net. However non > of them will work for me. I checked that I have the correct path to perl > But I still get Internal Server Error from the apache server. > I don't know what I am missing. > Could someone help?? > Thanks > Aaron > > On Wed, 2002-11-27 at 11:28, Franki wrote: > > try swapping the url to the image and css from relative to absolute, and > > move both out of the cgi-bin. > > > > they should be somewhere like /var/www/html/images > > > > in the script they should link to the URL.. > > http://mydomain.com/images/gandhi.jpg > > > > see how you go with that. some setups will not server images and stuff > from > > the cgi-bin. > > > > rgds > > > > Franki > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of L.V.Gandhi > > Sent: Tuesday, 26 November 2002 11:27 PM > > To: [EMAIL PROTECTED] > > Subject: [newbie] cgi help > > > > > > When I call the cgi file given below, I don't get the effects of > stylesheet > > mentioned in the header and also the picture. both the files are in the > same > > folder as that of the cgi file. > > === > > #!/usr/bin/perl > > > > print < > Content-Type: text/html\n\n > > > > > > test > > > > > > > > test > > > align="left"> > > > > > > End > > == > > I called the script with test .html given below. > > Test > > > > csstest > > > > What should be done to get the desired effect. > > -- > > L.V.Gandhi > > 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 > > MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA > > > > > > > > > > > > > > > > > > > > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] cgi help
here are some steps to try. 1. Check the error log.. open a console: tail /var/log/httpd/error_log 2. Make sure the file was uploaded as asci not binary.. if you used an ftp client. 3. Make sure /etc/httpd/conf/commonhttpd.conf or httd.conf has a section for /cgi-bin/ and that its set to ALLOW. 4. If you uploaded it from a windows machine, or edited it from a windows machine, you have probably added windows control chars to the script..you need something like dos2unix to fix it, or use a win editor like textpad.com and make sure it is saved in "unix" format. (under view=>properties in textpad, and use "save as" to allow you to change it if its wrong.. 5 make sure the permissions and ownership are correct.. as a basis to see if you can get it working, try this: chmod 755 myscript.pl chown apache.apache myscript.pl then try it again.. they are the most common problems I have seen with cgi scripts and server 500 errors. rgds Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Sent: Thursday, 28 November 2002 12:37 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] cgi help Since were on the subject of cgi. I setup apache and put a test site in the var/www/html/ directory. I added some cgi scripts and programs I download from the net. However non of them will work for me. I checked that I have the correct path to perl But I still get Internal Server Error from the apache server. I don't know what I am missing. Could someone help?? Thanks Aaron On Wed, 2002-11-27 at 11:28, Franki wrote: > try swapping the url to the image and css from relative to absolute, and > move both out of the cgi-bin. > > they should be somewhere like /var/www/html/images > > in the script they should link to the URL.. > http://mydomain.com/images/gandhi.jpg > > see how you go with that. some setups will not server images and stuff from > the cgi-bin. > > rgds > > Franki > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of L.V.Gandhi > Sent: Tuesday, 26 November 2002 11:27 PM > To: [EMAIL PROTECTED] > Subject: [newbie] cgi help > > > When I call the cgi file given below, I don't get the effects of stylesheet > mentioned in the header and also the picture. both the files are in the same > folder as that of the cgi file. > === > #!/usr/bin/perl > > print < Content-Type: text/html\n\n > > > test > > > > test > align="left"> > > > End > == > I called the script with test .html given below. > Test > > csstest > > What should be done to get the desired effect. > -- > L.V.Gandhi > 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 > MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA > > > > > > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] cgi help
On Wed, Nov 27, 2002 at 06:36:56PM +0200, Aaron wrote: > Since were on the subject of cgi. > I setup apache and put a test site in the var/www/html/ directory. I > added some cgi scripts and programs I download from the net. However non > of them will work for me. I checked that I have the correct path to perl > But I still get Internal Server Error from the apache server. > I don't know what I am missing. > Could someone help?? > Thanks > Aaron The Internal Server Error number and message itself can be really helpful in troubleshooting. But without that information, a couple of thoughts: 1. are your scripts locate in the cgi-bin (usually /var/www/cgi-bin)? If not, I *think* you have to configure Apache to run scripts outside of that directory (somebody correct me if I'm wrong on this). 2. do your scripts have the proper permissions? Check the documentation that came with them, but usually 755. HTH, Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] cgi help
Since were on the subject of cgi. I setup apache and put a test site in the var/www/html/ directory. I added some cgi scripts and programs I download from the net. However non of them will work for me. I checked that I have the correct path to perl But I still get Internal Server Error from the apache server. I don't know what I am missing. Could someone help?? Thanks Aaron On Wed, 2002-11-27 at 11:28, Franki wrote: > try swapping the url to the image and css from relative to absolute, and > move both out of the cgi-bin. > > they should be somewhere like /var/www/html/images > > in the script they should link to the URL.. > http://mydomain.com/images/gandhi.jpg > > see how you go with that. some setups will not server images and stuff from > the cgi-bin. > > rgds > > Franki > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of L.V.Gandhi > Sent: Tuesday, 26 November 2002 11:27 PM > To: [EMAIL PROTECTED] > Subject: [newbie] cgi help > > > When I call the cgi file given below, I don't get the effects of stylesheet > mentioned in the header and also the picture. both the files are in the same > folder as that of the cgi file. > === > #!/usr/bin/perl > > print < Content-Type: text/html\n\n > > > test > > > > test > align="left"> > > > End > == > I called the script with test .html given below. > Test > > csstest > > What should be done to get the desired effect. > -- > L.V.Gandhi > 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 > MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA > > > > > > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] cgi help
try swapping the url to the image and css from relative to absolute, and move both out of the cgi-bin. they should be somewhere like /var/www/html/images in the script they should link to the URL.. http://mydomain.com/images/gandhi.jpg see how you go with that. some setups will not server images and stuff from the cgi-bin. rgds Franki -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of L.V.Gandhi Sent: Tuesday, 26 November 2002 11:27 PM To: [EMAIL PROTECTED] Subject: [newbie] cgi help When I call the cgi file given below, I don't get the effects of stylesheet mentioned in the header and also the picture. both the files are in the same folder as that of the cgi file. === #!/usr/bin/perl print < test test End == I called the script with test .html given below. Test csstest What should be done to get the desired effect. -- L.V.Gandhi 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] cgi help
On Wed, 27 Nov 2002 04:27, L.V.Gandhi wrote: > When I call the cgi file given below, I don't get the effects of stylesheet > mentioned in the header and also the picture. both the files are in the > same folder as that of the cgi file. > === > #!/usr/bin/perl > > print < Content-Type: text/html\n\n > > > test > > > > test > align="left"> > > End > == > I called the script with test .html given below. > Test > > csstest > > What should be done to get the desired effect. May be you have already checked but it is a candidate for the error. Check for uppercase in the filenames. Cheers -- Michael Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] cgi help
When I call the cgi file given below, I don't get the effects of stylesheet mentioned in the header and also the picture. both the files are in the same folder as that of the cgi file. === #!/usr/bin/perl print < test test End == I called the script with test .html given below. Test csstest What should be done to get the desired effect. -- L.V.Gandhi 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com