I took a quick look at the website for phpfootball, and figured, “what the hell” - I gave it “quick install” and I now have it working on Dreamhhost. Here is what I have learned:
(This is for the “latest version” - Version 1.3 Released Aug 15, 21006 6:10 PM)
The mod_security setting (“Extra Web Security” on Dreamhost Control Panel) can be set “on” (“checked”) - it seems to make no difference.
As suspected, the error you encountered in your last post was due to the author’s use of $_SERVER[‘SCRIPT_NAME’] not returning the value he expected to see when running PHP as CGI in (at least) a couple of places. The fix is as I detailed in my last post: Replace all instances of $_SERVER[‘SCRIPT_NAME’] in the code with $_SERVER[‘PHP_SELF’] . So far, I found the change needed to be made in the entry.php file (around line 156) and team.php (around line 32). Making these two changes allowed the program to run “properly” in my initial testing (See more on that below).
After making the described changes in the (at least!) two files described in item 2 above, make sure you clear your browser’s cache to allow your changes to be reflected in the browser.
My test was done with PHP4.4.2, I have left testing under PHP 5 as an exercise for you. If PHP5 causes problems, and you don’t care which version of PHP you are running as long as you can run the application, just re-set your domain to use PHP4.42, similar to the way you modify the “Extra Web Security Setting” - from the Manage Domains control panel page (hit “edit” next to the domain name, make desired changes, and Save Settings).
That said, I have only spent about 1/2 hour testing, and although I went over the program’s menus fairly well and did not experience any other errors, you may may well find that error popping up in some other part of the application. If you do, just edit the file that generated the error, make the described change, and re-upload that file overwriting the one on the server. Alternately, if you feel competent to do so, you could just “go through everything” with a multifile search/replace utility and accomplish the same function. I’ll leave that as an additional exercise for you.
One thing I would suggest doing is removing the “raw” mailto: address from the template (lower left of screen) so as not to feed the email harvesting bots - It isn’t really needed as the “Contact” menu item takes users to a Contact Form. I also suggest replacing the mailto: link (“Administrator”) at the bottom of the “Help” file with a link to the “Contact Us” form (for the same reasons)
I don’t know how comfortable you are with the operation of the program, but understand you need to update data periodically in places, and run the cronupdate.php at least initially to populate the data so you can properly display the Current Game Status. Additionally, don’t forget to set your “Options” from the Admin login (there are several things you have to set there for things to work properly). For further help in operating the program, or managing data update, I think the author’s forum is probably the place to go.
Other than that, I think you should be good to go. I can tell from your postings on the author’s forum, that you have been working on this quite a while, so it will probably feel pretty good to get it running. The author might also appreciate knowing how to make his program work properly on systems running PHP as CGI, and I suggest you share your experience with him. Good Luck!