Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 3.00 average. Display Modes
Old 2012-10-25, 10:34 AM   #26
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
Thanks

I have sent that off, and will let you know when I get a reply.
tadpole is offline   Reply With Quote
Old 2012-10-26, 10:15 AM   #27
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
Hi

Below is the reply I received from my hosting provider :-

Thank you for contacting Online Support. Based on the information provided, you experiencing some difficulty with CGI and SSI scripts. SSI and CGI are enabled and functioning on the account. You can place CGI scripts anywhere on the hosting account, they do not need to be in a cgi-bin or cgi directory. Because you have a CGI/Perl enabled account, the system path to our Perl interpreter is /usr/bin/perl. I have provided a test PERL script below if needed.


NOTE: The file's permissions must be set to execute to work.




Example of a Test PERL Script


#!/usr/bin/perl

use CGI qw(:standard);
print "Content-type: text/html

";
print "Greetings user.
";

I have not fiddled with his example as he gave no call to SSI, (that I could recognise!)
tadpole is offline   Reply With Quote
Old 2012-10-29, 06:11 AM   #28
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Is the location of the test page http://fetishfiends.com/test.shtml ? If so, I just tried it and I am not getting the same source code as you posted!

Also where is the Perl script? I have tried both http://fetishfiends.com/cgi-bin/readblog.cgi and http://fetishfiends.com/cgi/readblog.cgi both of which go to what I assume is your 404 page, which infers the script does not exist at either location.
ecchi is offline   Reply With Quote
Old 2012-10-29, 10:40 AM   #29
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
Thanks for your reply. Yes, http://fetishfiends.com/test.shtml is the test page. Sorry, I had left the page up without the call to code, as I had been trying it out in various ways, ie directly putting in the html and code, and trying the insert button. I have now got it with the call to code.

From your e mail, I see that I had misnamed the script. I saved it as script.cgi, I have now renamed it to readblog.cgi, so http://fetishfiends.com/cgi/readblog.cgi now shows the blog.

My test page is still blank.
tadpole is offline   Reply With Quote
Old 2012-10-30, 02:23 AM   #30
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by tadpole View Post
Sorry, I had left the page up without the call to code
Could you re-upload the test.shtml page with the call code in it please. The actual script is working fine on your server so the problem must be with the SSI call. What I need to do is look at the page with the SSI call intact and see if I can find a problem with it. And if there is no problem I'll need the page up with the call in it for your hosting company to look at.
ecchi is offline   Reply With Quote
Old 2012-10-30, 02:26 AM   #31
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by tadpole View Post
From your e mail, I see that I had misnamed the script. I saved it as script.cgi.
Whoops. This may have been your problem, you may find that the page now works when you upload the original test.shtml page with the SSI call intact.
ecchi is offline   Reply With Quote
Old 2012-10-30, 09:31 AM   #32
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
I have re loaded the test page with the call to SSI, and I did check it after renaming the script file to readblog.cgi . I have tried the test page with the SSI every way I can think of, ie directly writing in the html, using my insert button, adding the SSI code with and without the extra /

I am still drawing a blank page
tadpole is offline   Reply With Quote
Old 2012-10-31, 05:13 AM   #33
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
OK, re-upload the following version of test.shtml and leave it up:
Code:
<html><head><title>Test</title>
</head>
<body>
<!--#include virtual="cgi/readblog.cgi"-->
</body></html>
Check that it still does NOT work then send them the following message:
Quote:
You say that SSI is switched on for fetishfiends.com, so please look at "test.shtml" on that domain. I have the same SSI call on several of my own domains and have added it to two of my client's sites as well, on all of these it works fine. The only difference is that, as per your instructions, "cgi-bin/readblog.cgi" has been changed to "cgi/readblog.cgi". I have tested the script readblog.cgi, and this works fine on your server - however the SSI call refuses to run it. I have asked you if there are any other unusual pathways or rules on your server and the only one you tell me is your unique name for the CGI-BIN, for which I have changed the route in the SSI call. Now as far as I can see it there are only three possible reasons that "test.shtml" is not executing the SSI call. These are:

1. You do not have SSI activated for this domain.
2. There is a fault in your server's software.
3. There is a fault on your server.

So I am assuming you are mistaken when you repeatedly say that SSI is active for that domain, and once again ask you to "switch on" SSI. However if I am wrong and SSI really is switched on, please can I ask you to either fix the fault in your server or move fetishfiends.com to a working server.

Thank you in advance for your help in this matter.
ecchi is offline   Reply With Quote
Old 2012-10-31, 08:53 AM   #34
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
Thanks

I have reloaded the page with that version of test.shtml, and still get a blank page. I have sent the message off to my hosting provider.

Many thanks, will update you.
tadpole is offline   Reply With Quote
Old 2012-11-01, 08:10 AM   #35
tadpole
Oh! I haven't changed since high school and suddenly I am uncool
 
tadpole's Avatar
 
Join Date: Aug 2007
Location: Darkest Africa
Posts: 258
Send a message via ICQ to tadpole
At last!!! The script is working! ecchi, thank you so much for all your help, and your time. Without it I would never have got to this stage.

I am really hacked off with this hosting provider, as I kept thinking I was making an error yet could not spot it.

Here is the reply I received from them :-

Thank you for taking the time to reply, and for providing your PIN. It appears you had added a handler in your root .htaccess file that was telling the server to run .cgi files as .shtml. The target file was a .cgi file and as a result was being run as .shtml which will not work. We had temporarily disabled the .htaccess file to confirm that was preventing the target file from being run. You need to review your .htaccess code and revise as necessary. Let us know if we can assist you in any other way.

And here is a reply I received from them when I requester SSI and cgi be enabled :-

It appears that the rule was not listed in the .htaccess file to enable the SSI. We have added the file for you. The URL does resolve to a black page, However, the file that is being referenced does not exist. Please review your scripting of the testing.shtml file.

So it was my hosting company who stuffed everything up.

Once again, thank you so much.
tadpole is offline   Reply With Quote
Old 2012-11-02, 05:22 AM   #36
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Glad to be of help.
ecchi is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:41 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc