Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
don't know how to get PHP to work with this strange cgi server setup
Topic Options
- 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
- :
- don't know how to get PHP to work with this strang...
don't know how to get PHP to work with this strange cgi server setup
11-02-2008 4:03 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi there,
after about 5 calls to tech support and a lengthy discussion on the plus.net support site, I have finally managed to get access to the cgi/php server.
I am an experienced web designer and have developed complex content management websites that utilize MySQL. I have been given access to use the provided web space for my client's new website which is to include dynamic elements.
I just cannot figure out how to use this strange system where 2 servers are in use...
On the actual web server, where HTML pages are looked up by calling a domain name, such as www.blabla.co.uk, I can only read htm or html pages.
However, I need to be able to display the latest 5 entries of the events page on the homepage (which are pulled from a database by using PHP and SQL statements). The php for beginners page only suggests that scripts can be called by clicking a link to the CGI server. I don't want web visitors to click a link though, I want them to be able to see them immediately.
2 mins ago, a very helpful support guy suggested I should use the include statement. This, of course, will not work in html files as html files cannot read php statements.
Any ideas?
thanks.
after about 5 calls to tech support and a lengthy discussion on the plus.net support site, I have finally managed to get access to the cgi/php server.
I am an experienced web designer and have developed complex content management websites that utilize MySQL. I have been given access to use the provided web space for my client's new website which is to include dynamic elements.
I just cannot figure out how to use this strange system where 2 servers are in use...
On the actual web server, where HTML pages are looked up by calling a domain name, such as www.blabla.co.uk, I can only read htm or html pages.
However, I need to be able to display the latest 5 entries of the events page on the homepage (which are pulled from a database by using PHP and SQL statements). The php for beginners page only suggests that scripts can be called by clicking a link to the CGI server. I don't want web visitors to click a link though, I want them to be able to see them immediately.
2 mins ago, a very helpful support guy suggested I should use the include statement. This, of course, will not work in html files as html files cannot read php statements.
Any ideas?
thanks.
Message 1 of 6
(1,697 Views)
5 REPLIES 5
Re: don't know how to get PHP to work with this strange cgi server setup
11-02-2008 4:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
1) If you intend to use PHP then you should use only the ccgi webspace for the website. You can arrange to point the companies domain name to their CCGI webspace. See this for info on seting up the DNS records to do this.
2) PHP files on the CCGI server must have the correct permissions. PlusNet have written a script to set the correct permissions on php files. It is called fixphpperms.sh and must be run from the Shell prompt on the ccgi space. this and this tutorial explains how to access your ccgi command prompt.
When there you run fixphpperms.sh -r
2) PHP files on the CCGI server must have the correct permissions. PlusNet have written a script to set the correct permissions on php files. It is called fixphpperms.sh and must be run from the Shell prompt on the ccgi space. this and this tutorial explains how to access your ccgi command prompt.
When there you run fixphpperms.sh -r
Message 2 of 6
(433 Views)
Re: don't know how to get PHP to work with this strange cgi server setup
11-02-2008 5:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
One thing I forgot (thanks Jelv ) is you must be on a PusNet IP to access CCGI via FTP/Telnet. So if you are maintainng the website from a non-plusnet IP you can't do what I suggested.
Are you on PN or some other ISP connection?
Are you on PN or some other ISP connection?
Message 3 of 6
(433 Views)
Re: don't know how to get PHP to work with this strange cgi server setup
11-02-2008 5:03 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I am their web designer and I am using my own provider which isn't Plusnet... 

Message 4 of 6
(433 Views)
Re: don't know how to get PHP to work with this strange cgi server setup
11-02-2008 7:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
In which case PN hosting is not suitable for what you want to do. You will need to find alternate external hosting which you can then access.
Message 5 of 6
(433 Views)
Re: don't know how to get PHP to work with this strange cgi server setup
12-02-2008 12:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Ask them to give you their dial-in details to their PlusNet account. Dial in and access ccgi with FileZilla and PuTTY. Upload phpshell (http://community.plus.net/forum/index.php/topic,46213.msg392716.html#msg392716). And off you go from your access.
Message 6 of 6
(433 Views)
Topic Options
- 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
- :
- don't know how to get PHP to work with this strang...