Closed Bug 681945 Opened 13 years ago Closed 13 years ago

Setup dev.itisatrap.org

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rik, Assigned: nmaul)

References

Details

This should be the same setup as www-trunk.stage.mozilla.com. Maybe we can reuse the same SVN checkout. The only difference is DocumentRoot. It should point to trunk/itisatrap.org/. I hope everything works with that simple change. I'm available on IRC if anything breaks. The domain name is just a suggestion, I don't know what are the recommendations these days. The webdev related bug is bug 662213. Thanks in advance.
Assignee: server-ops → cshields
dev and stage for this would be: itsatrap-dev.allizom.org for dev and itsatrap.allizom.org for stage
Hey, Corey, what is the next step for this?
next step is for us to setup an environment for it.. its on our list
Jake, can we do this on generic.phx1?
Assignee: cshields → nmaul
Generic.phx1 should work fine, I think. If the site is www.itisatrap.org, are we sure we want to use allizom.org for dev/stage? I don't know that there's any standardization/convention on non-mozilla.org domains as far as dev/stage naming... seems to be kinda random. www-trunk.stage.mozilla.com appears to be this SVN repo: https://svn.mozilla.org/projects/mozilla.com/trunk It does not have the separate /org/ subdirectory with the old mozilla.org code. Does this seem appropriate for this project? It seems odd that this would not be treated as a new site entirely, with it's own git/svn repo. We can do it, it just seems kinda strange is all. Note that "http://www.mozilla.com/firefox/its-a-trap.html" in Firefox it actually seems to invoke the built-in "it's a trap" page in dark red, but if I ignore the warning it redirects to http://www.mozilla.org/firefox/its-a-trap.html, which is a totally different page with a different theme. I don't know nearly enough about this functionality to know if this is expected/proper behavior, but I thought it was worth pointing out.
(In reply to Jake Maul [:jakem] from comment #5) > www-trunk.stage.mozilla.com appears to be this SVN repo: > https://svn.mozilla.org/projects/mozilla.com/trunk > It does not have the separate /org/ subdirectory with the old mozilla.org > code. > > Does this seem appropriate for this project? It seems odd that this would > not be treated as a new site entirely, with it's own git/svn repo. We can do > it, it just seems kinda strange is all. The idea is to have the same codebase so that when mozilla.org/firefox theme is updated, this page is also updated. > Note that "http://www.mozilla.com/firefox/its-a-trap.html" in Firefox it > actually seems to invoke the built-in "it's a trap" page in dark red, but if > I ignore the warning it redirects to > http://www.mozilla.org/firefox/its-a-trap.html, which is a totally different > page with a different theme. I don't know nearly enough about this > functionality to know if this is expected/proper behavior, but I thought it > was worth pointing out. This is the expected behaviour.
Component: Server Operations → Server Operations: Web Operations
QA Contact: mrz → cshields
Both itisatrap.allizom.org and itisatrap-dev.allizom.org are configured on generic.phx1. Site is not loading because it depends on files outside of the itisatrap document root such as ../includes/external_prefetch.php. I assume this is https://svn.mozilla.org/projects/mozilla.com/trunk/includes.
Thanks Brian. Discussing over IRC now how to fix that.
So last week, we fixed part of the setup. But we're seeing a PHP error apparently. Jake: Brian mentioned that you had an idea about the problem. Any update?
Any update ?
This issue is unrelated to what I was expecting. I was remembering an issue where the www-dev.allizom.org site behaved like this if the config.inc.php file is missing. This is similar, but for entirely different reasons. I did manage to find this, however: ----- Warning: require(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /data/www/itisatrap-dev.allizom.org/includes/functions.inc.php on line 1315 Parse error: syntax error, unexpected $end in /data/www/itisatrap-dev.allizom.org/includes/functions.inc.php on line 1315 ----- This is included by external_prefetch.php, and that's where the index page dies. This seems to be killing PHP entirely, resulting in the 500 ISE. However, I would also like to state that it is rather scary having one site embedded in another one like this. I would be much happier with this if this site were totally divorced from the mozilla.org code base. Is that a goal we can shoot for (and/or is it already on the plate)? It would be nice to dis-engangle this before we start migrating to bedrock.
Assignee: nmaul → anthony
Component: Server Operations: Web Operations → www.mozilla.org
Product: mozilla.org → Websites
QA Contact: cshields → www-mozilla-org
So I'm gonna create a separate version of this in a git repo. It's gonna be a static copy of every included file. The download button, because it won't include all the PHP logic will just redirect to mozilla.org/firefox.
So the repo is at https://github.com/mozilla/itisatrap. It is just static HTML, do you need other instructions?
Assignee: anthony → nmaul
This is deployed and working: http://itisatrap-dev.allizom.org/ At the moment no auto-updating is configured for this. Probably we'll want that at some point. Let me know what should generally be needed to update this, or if just 'git pull' should be sufficient.
Thanks! Looks good to me. Since it's really a static website, git pull should be just enough.
Thanks guys! Can this bug be closed?
Jake told me he had to write down some documentation for IT. So I'll let him decide when to close this one.
Preliminary docs created, closing this out. https://mana.mozilla.org/wiki/display/websites/itisatrap.org
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.