Page 1 of 1

index.php?

Posted: Sun 19 Feb 2017 2:38 pm
by bnwrx
2 days ago i began having an issue with my homepage, it would not display some scripts correctly. An Advisory and 2 forecast scripts from Ken True at Saratoga. These had worked for several years without any problems. I contacted Ken and he was kind enough to suggest renaming my index.htm file to index.php in order for the php scripts to work. That suggestion did work, temporarily. I thought renaming the index.htm file in the folder Cumulus/web was all I needed to do, but Cumulus would not process/upload that file. After lots of trial and error, my current solution is this....I am having Cumulus process the index.htm file as both a standard file and also an "extra file". The extra file goes to my remote file which is named index.php. Also, after a lot of searching for a fix, I found the "htaccess" file at my website, and inserted this rule...DirectoryIndex index.php index.html. After all of this, the homepage now displays correctly. It works, but I am not sure I understand why.....Why can't I just replace the indexT.htm with .php and in the the web folder and have Cumulus process it? It won't do that. Also, why all of a sudden did the scripts stop working when they had been fine for a long time.

As always, thanks in advance for thoughts and suggestions....

Re: index.php?

Posted: Sun 19 Feb 2017 2:46 pm
by ConligWX
Do you host your own website or if it hosted with someone like GoDaddy? perhaps the Apache or PHP versions have been updated and broke something?

without seeing the templates for index.htm and php, and knowing the website folder structure, we can only guess.

Re: index.php?

Posted: Sun 19 Feb 2017 3:09 pm
by bnwrx
Hosting is thru GreenGeeks....it is possible the host updated something that led to this. As I stated it worked fine for a long time, and I have not done anything at my end that changed anything.

Re: index.php?

Posted: Sun 19 Feb 2017 5:02 pm
by steve
bnwrx wrote:Why can't I just replace the indexT.htm with .php and in the the web folder and have Cumulus process it?
Because Cumulus doesn't know anything about a file called indexT.php, it only knows about the files that are supplied with it. It can't just scan the web directory and automatically process every file in there, regardless of where they came from, because it would then have to start making assumptions about what to call the output file.

Re: index.php?

Posted: Sun 19 Feb 2017 5:08 pm
by mcrossley
If you want to use index.php, then you will have to disable the Cumulus automatic web page processing and list all the files individually - you can call them whatever you want then.

Re: index.php?

Posted: Sun 19 Feb 2017 5:24 pm
by bnwrx
Thank you for your replies....I'll leave it as is for now, its working.