CCGI error when trying PHP
- 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
- :
- CCGI error when trying PHP
CCGI error when trying PHP
07-07-2007 3:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I think it might have to do with file permission not set to 755. I have no idea how to do this. Can anyone help please?
regards
brian
Re: CCGI error when trying PHP
07-07-2007 5:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've managed to change the file permissions now. It seems it is also called CHMOD Value. However, I am still having problems.
I have a webpage with a footer and I want to use the PHP include function to place the footer in the page.
I have put the following code into my index.htm page:
<?
include("footer.php");
?>
I have a simple text file called footer.php which I have put in the CGI space but when I test it the footer is not displayed on my web page.
Any ideas would be helpful.
regards
Brian
Re: CCGI error when trying PHP
07-07-2007 5:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thats about the extent of my php knowledge
Re: CCGI error when trying PHP
07-07-2007 7:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for your reply.
Yes the footer.php file is in the same folder. Actually I've now got it working - after a fashion. Trouble is I'm still trying to figure out what I did to make it work at all.
I think file permissions is very important, it just won't work if this is wrong. I think all I did was to make the footer.php file permissions to 755 as well as the index.php but to be honest I've lost track of exactly what I did, which is a bit annoying.
I have now got two files in the CGI space, index.php and footer.php both with file permissions set to 755.
When I had the site hosted in the normal FTP space I had a folder with some graphics in it and because the PHP file is stored in the CGI space I had to make sure the link to those graphics was redirected back to the FTP space - if you follow me.
Anyway, now what I want to do is have a link in the footer text to a contact us page. That's my next challenge for this evening - well there's now't on the telly worth watching is there...
If you're interested the site is www.bhall.co.uk - not much there, still experimenting.
regards
Brian
Re: CCGI error when trying PHP
07-07-2007 8:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You could try putting a header.php file on there too, this time keep track of the changes you make to get it working
Re: CCGI error when trying PHP
07-07-2007 9:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Funny how the obvious just never seems to hit you - why didn't I think about doing a header.php as well?
This is a great idea and one I shall now embark upon.
I got the link working in the footer BTW. Just a case of inserting the HTML into the file where you want the link.
regards
Brian
Re: CCGI error when trying PHP
30-07-2007 9:12 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just enter the following command line:
/usr/local/bin/fixphpperms.sh -r
I hope that helps.
Ben
Re: CCGI error when trying PHP
01-08-2007 3:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
See http://usertools.plus.net/tutorials/id/3 for an overview of file permissions and using chmod. Note: it was written for the old cgi platform, the new one is much mor secure and you should never set any world/all permissions on files or directories.
Also I recommend you use <?php ?> rather than the short form <? ?> as some web hosting does not support the short form.
Re: CCGI error when trying PHP
03-08-2007 10:14 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter Just for clarity it only fixes .php files and the -r will do a recursive search for .php files in all sub-directories of the current directory. You may still need to use chmod for setting permissions on directories.
See http://usertools.plus.net/tutorials/id/3 for an overview of file permissions and using chmod. Note: it was written for the old cgi platform, the new one is much mor secure and you should never set any world/all permissions on files or directories.
Also I recommend you use <?php ?> rather than the short form <? ?> as some web hosting does not support the short form.
Re: CCGI error when trying PHP
03-08-2007 1:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
To get 755 you can sometimes just type it in - alternatively you need
User - read- write - execute
Group - read - execute
Other - read - execute
Re: CCGI error when trying PHP
03-08-2007 2:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
by the way i am such a novice at this so excuse any basic misundertandings!
Re: CCGI error when trying PHP
03-08-2007 2:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
See http://usertools.plus.net/tutorials/id/14
You then wait 24 hours for the change to be actioned.
Re: CCGI error when trying PHP
03-08-2007 5:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: eileenabbas thanks, i think i know how to change the permission now but may not need it as i can see my new files in ftp://ccgi.username.plus.com so in theory the files are there and just need plusnet to point the domain at the new server which they have not done yet. they have sent me an answer today saying they can point the domain there but they are now saying it is not set up properly? could they mean that i did not use the correct permission and if so should i try to upload them again using ftp but with the permission set to 755?
by the way i am such a novice at this so excuse any basic misundertandings!
You can actually see files regardless of their permissions - no need to reload them as you just chmod them.
Which ftp programme are you using?
Re: CCGI error when trying PHP
04-08-2007 8:21 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
thanks again
Re: CCGI error when trying PHP
04-08-2007 8:32 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter See http://usertools.plus.net/tutorials/id/3 for an overview of file permissions and using chmod. Note: it was written for the old cgi platform, the new one is much mor secure and you should never set any world/all permissions on files or directories.
- 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
- :
- CCGI error when trying PHP