Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
location for CSS files?
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
- :
- location for CSS files?
location for CSS files?
21-01-2009 2:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've just installed a Wiki in my CGI space under ~/cgi-bin/wiki and it all seems to be working.
However, the CSS in ~/cgi-bin/wiki/css are not working. The server seems to be trying to 'execute' the CSS files. The permissions are right as far as I can tell. Can anyone tell me where I'm going wrong?
Thanks.
However, the CSS in ~/cgi-bin/wiki/css are not working. The server seems to be trying to 'execute' the CSS files. The permissions are right as far as I can tell. Can anyone tell me where I'm going wrong?
Thanks.
Message 1 of 8
(1,628 Views)
7 REPLIES 7
Re: location for CSS files?
21-01-2009 2:57 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You shouldn't install "normal" files in the cgi-bin, including php. Files like this should be installed into your home directory, or a subdirectory of it.
Message 2 of 8
(488 Views)
Re: location for CSS files?
21-01-2009 3:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@CplusPlus
What server are you trying to set up on - ccgi or PAYH?
Tony
What server are you trying to set up on - ccgi or PAYH?
Tony
Message 3 of 8
(488 Views)
Re: location for CSS files?
21-01-2009 3:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Ben You shouldn't install "normal" files in the cgi-bin, including php. Files like this should be installed into your home directory, or a subdirectory of it.
Ah, OK. So I don't need the cgi account at all? I was under the impression that PHP needed to be executed in the cgi-bin directory.
I'll try again tonight, but using my normal webspace account instead.
Thanks.
Message 4 of 8
(488 Views)
Re: location for CSS files?
21-01-2009 3:48 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Sorry I've not been clear enough here.
Bear with me for a minute, this isn't strictly true on our platform but we've done some under the bonnet tweaks so it works like this.
Traditionally, the cgi-bin is for executables, in the past these were binary applications, but you can put shell/perl scripts etc in there.
PHP is actually parsed by Apache as a module, so 'normally' they are not executable, and not executed as such.
Our platform does use the CGI version of PHP rather than the apache module, but we have made some changes in our configurations to make it appear to work as if it was using the apache module. The exception to this is that we require php files to be executable permissions wise.
The hard and fast rules is that things other than php files and static content should be OUTSIDE of the cgi-bin (but still on the cgi servers). Binaries (such as compiled c code) and perl/python/whatever scripts should be in the cgi-bin.
Hope that helps explain a bit more.
Bear with me for a minute, this isn't strictly true on our platform but we've done some under the bonnet tweaks so it works like this.
Traditionally, the cgi-bin is for executables, in the past these were binary applications, but you can put shell/perl scripts etc in there.
PHP is actually parsed by Apache as a module, so 'normally' they are not executable, and not executed as such.
Our platform does use the CGI version of PHP rather than the apache module, but we have made some changes in our configurations to make it appear to work as if it was using the apache module. The exception to this is that we require php files to be executable permissions wise.
The hard and fast rules is that things other than php files and static content should be OUTSIDE of the cgi-bin (but still on the cgi servers). Binaries (such as compiled c code) and perl/python/whatever scripts should be in the cgi-bin.
Hope that helps explain a bit more.
Message 5 of 8
(488 Views)
Re: location for CSS files?
21-01-2009 4:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Ben Our platform does use the CGI version of PHP rather than the apache module, but we have made some changes in our configurations to make it appear to work as if it was using the apache module. The exception to this is that we require php files to be executable permissions wise.
I understand.
Quote The hard and fast rules is that things other than php files and static content should be OUTSIDE of the cgi-bin (but still on the cgi servers). Binaries (such as compiled c code) and perl/python/whatever scripts should be in the cgi-bin.
Hope that helps explain a bit more.
Yes it does.

OK. Just to be clear, if I move my ~/cgi-bin/wiki/css dir to ~/css then it should work? Assuming I can redirect the CSS requests globally...
Now where's that manual...
Message 6 of 8
(488 Views)
Re: location for CSS files?
22-01-2009 10:43 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That should work but personally I would move ~/cgi-bin/wiki to ~/wiki
As we pretend that PHP isn't using CGI this would work fine on our servers, as long as the php files are executable.
As we pretend that PHP isn't using CGI this would work fine on our servers, as long as the php files are executable.
Message 7 of 8
(488 Views)
Re: location for CSS files?
07-04-2009 9:37 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just to confirm that moving the css directory out of the cgi-bin path worked. I needed to change some configs in the wiki software in order to find the new location, but other than that it was easy.
Thanks.
Thanks.
Message 8 of 8
(488 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
- :
- location for CSS files?