Newbie CGI Help
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: Newbie CGI Help
Newbie CGI Help
02-02-2011 8:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
What have I done wrong?
Amanda
Re: Newbie CGI Help
02-02-2011 11:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Newbie CGI Help
02-02-2011 11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
A 500 error is usually permissions wrong or a syntax error in the script.
Re: Newbie CGI Help
06-02-2011 8:12 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This is something I have downloaded (AWT Subscribe! 1.0 ) - there is a html file in there called sample.html which I can't go to either... I still get 500 server error. I have set permission as per the CGI FAQ (files are all 700 and directory is 750). Help!!
Re: Newbie CGI Help
06-02-2011 9:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Gabe
Re: Newbie CGI Help
06-02-2011 9:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
No, there is no .htaccess in there. I am using Filezilla and enabled "Always show hidden files".
Amanda
Re: Newbie CGI Help
06-02-2011 11:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Take care: from a quick look at the files, email addresses appear to be stored in a plain text file which could easily be accessed by a spammer to harvest email addresses. Without very detailed analysis of operation of the programs I'd be wary of implementing this. It wouldn't be fair for any subscriber.
Concerning the server 500 errors: Do any of your files or folders have write permission for anyone other than the owner (you)? That is nothing is x77, x70, x66 or x60?
If you create the following PHP file (as php_info,php)
[code=php_info.php]
<?php
phpinfo();
?>[/code]
upload it to the root of your ccgi space, change permissions to 0700 then browse to it, does it list the PHP environment?
David
Re: Newbie CGI Help
07-02-2011 9:02 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I doubt if it's a rogue write permission, as we're getting 500 errors off randomfilename.html, rather than 404. That would be consistent with a duff .htaccess but not a script error. Perhaps start by trying to get a .html file returned. If you reload the sample.html file as ascii, can you see it?
Gabe
Re: Newbie CGI Help
07-02-2011 7:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have created a file http://ccgi.porchfield.free-online.co.uk/php_info.php which I get the same 500 Server error. I also tried reloading sample.html as ASCII but no joy - same error!!
Amanda
Re: Newbie CGI Help
07-02-2011 7:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If this is as detailed earlier I suspect your ccgi webspace has not been configured properly by PN when it was enabled. You need to raise a ticket and get PN to check the set-up of your ccgi webspace.
Re: Newbie CGI Help
07-02-2011 7:57 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Does FileZilla show files and directories have your username as owner and cgiusers as group? If you don't have any subdirectories create one (eg called test) so you can see ownership information.
Re: Newbie CGI Help
07-02-2011 8:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The php file content is as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Welcome</title>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>
Sorry spraxyt, I'm not totally certain what you mean? I have one subdirectory called stat which has permissions of 750.
Amanda
Re: Newbie CGI Help
07-02-2011 9:17 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You need to view the files and directories as a list which will show the owner and group names as well as file permissions.
Normally it will show as size permissions owner group date filename
It is the owner and group we are after.
Re: Newbie CGI Help
07-02-2011 9:24 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The thought is that the server error has to arise before the web server even knows it has a file to serve. If there's no .htaccess to get in the way then it looks v much like a malconfiguration - PN's fault, not yours.
Gabe
PS - crossed in post with Peter
Re: Newbie CGI Help
07-02-2011 9:30 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I am using Filezilla. I have enabled the Owner/group column and it shows porchfield/cgiusers for all files in there. I have raised a ticket with Support. Many thanks for all your help thus far.
Amanda
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page