cancel
Showing results for 
Search instead for 
Did you mean: 

ccgi permission

lancashiredave
Newbie
Posts: 3
Registered: ‎04-01-2008

ccgi permission

Hi there I am new to php and cgi
I have tried a simple php staement embedded in html which echoes some text.
i called the file Hello world.php and successfully uploaded it to my ccgi space.
According to the plus net instructions I should be able to see this space at http://ccgi.username.plus.com but when I try I get http error 403 which apparently means explorer can access this space but does not have permission to view.
I have set the file permission to 755
My file content is;
<html>
<head></head>
<body>These words are static.<br>
<?php
echo 'Hellow World generated by php';
?>
</body>
</html>
I have also created an html file which calls this one:
with the following text
<html>
<head></head>
<body>These wrods are static.<br>
<A HREF="http://ccgi.username.plus.com/Hello World.php">RunScript</A>
</body>
</html>
When I try an run this I get the following error:
CCGI Error: Execution of this script not permitted
Does any one have any ideas what I am doing wrong.
MAny Thanks
Lancashiredave Undecided





6 REPLIES 6
Chris
Legend
Posts: 17,724
Thanks: 600
Fixes: 169
Registered: ‎05-04-2007

Re: ccgi permission

I've just had a quick look into this and have a couple of suggestions.
Try setting both the files to 755 and avoid having spaces in the filenames. TBH I'm not great with php but having a space in a URL can cause some issues.
Former Plusnet Staff member. Posts after 31st Jan 2020 are not on behalf of Plusnet.
lancashiredave
Newbie
Posts: 3
Registered: ‎04-01-2008

Re: ccgi permission

Thanks Chris
That worked a treat
Dave Smiley
Not applicable

Re: ccgi permission

Which suggestion worked?
Changing perms to 755, or changing the url? Or both?
lancashiredave
Newbie
Posts: 3
Registered: ‎04-01-2008

Re: ccgi permission

Hi Chris
Changing the url by removing the space
Dave
Peter_Vaughan
Grafter
Posts: 14,469
Registered: ‎30-07-2007

Re: ccgi permission

Also always use lowercase letters for filenames and directory names as this will make it more portable. This is because under Windows hosting fred.php and FRED.PHP are the same file but under Linux/Unix (which PlusNet use) they are separate files. So moving a site from a windows based web server to a *nix one can often not work due to case.
If you want to separate words use - (dash) or _ (underline) e.g.
this-file.php or this_file.php
Chris
Legend
Posts: 17,724
Thanks: 600
Fixes: 169
Registered: ‎05-04-2007

Re: ccgi permission

Good point Peter, I do this automatically when creating sites so always forget to pass the advice on!
Former Plusnet Staff member. Posts after 31st Jan 2020 are not on behalf of Plusnet.