Page 1 of 1

Change in file uploads

Posted: Mon 28 Jan 2013 1:17 pm
by avoorpool
Hi Steve,

I guess a simple question for you.

I renamed my indexT.htm file into indexT.php since I've inserted a simple script from Environment Canada which issues weather warnings & alerts (if applicable). (see attachment)
My files are uploaded every 5 mins (Standard files, html files and additional ftp)
Where do I change the upload of 'standard files and 'html files', so the indexT.php file will be uploaded every 5 mins and not the indexT.html file???

Thanks,

Arthur

Re: Change in file uploads

Posted: Mon 28 Jan 2013 1:32 pm
by steve
Add your indexT.php file to the 'files' tab of the internet settings, and give it a remote name with the correct path (i.e. your ftp directory) with index.php on the end. Tick 'process' and 'ftp'. If you've renamed indexT.htm, then a file with that name no longer exists, so Cumulus won't find it when it looks for it, so it won't get processed and uploaded.

Re: Change in file uploads

Posted: Mon 28 Jan 2013 1:44 pm
by avoorpool
Great!!

Thanks Steve.

Re: Change in file uploads

Posted: Mon 28 Jan 2013 3:47 pm
by avoorpool
Hi Steve,

I've set the indexT.php upload in the Cumulus.ini file (remote: index.php).

I try to figure out where the 'index page' setting needs to be changed.
Using 'http://altonaweather.ca' it used to show the index page. (http://altonaweather.ca/index.htm)
When I use it now, nothing shows....
Probably forgot where to address the actual index page.

Thanks,

Arthur

Re: Change in file uploads

Posted: Mon 28 Jan 2013 3:52 pm
by mcrossley
You probably need to put a redirect in a .htaccess file on your web server from index.htm to index.php

Re: Change in file uploads

Posted: Mon 28 Jan 2013 4:00 pm
by steve
When your browser asks for a URL without a page, the web server should look for a default page, e.g. index.htm etc. Normally, index.php would be one of the files it looks for, but your server appears to be sending a blank page instead. You need to look in your root directory to see if you have any files which might be being used as the default in preference to index.php, and delete them. If there aren't any, then perhaps your web server needs configuring to look for index.php as a default page. You can usually do this yourself with a .htaccess file in the root with a DirectoryIndex command in it, e.g.

DirectoryIndex index.php

Re: Change in file uploads

Posted: Mon 28 Jan 2013 4:04 pm
by steve
Actually, I've just realised that Cumulus will be uploading a blank index.htm because the indexT.htm file doesn't exist, so the hack of removing/renaming the indexT.htm file isn't perfect.

Because of that, Mark's suggestion of a redirect is probably your easiest fix.

Re: Change in file uploads

Posted: Mon 28 Jan 2013 4:08 pm
by avoorpool
Thanks guys,

Added a 'default page' (index.php) in the htaccess section of my server.
Works fine now.

Cheers,

Arthur