Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Any environment requirements? #2

Closed
patcable opened this issue Oct 17, 2013 · 10 comments
Closed

Any environment requirements? #2

patcable opened this issue Oct 17, 2013 · 10 comments

Comments

@patcable
Copy link

Are there PHP version requirements? MySQL requirements? The MySQL that ships with RHEL6 doesnt have support for that.

I moved to an ubuntu 12.04 machine and tried to run it and I'm running into -

PHP Parse error: syntax error, unexpected '[' in /web/morgue/phplib/Postmortem.php on line 48

(which i imagine is a php version thing, but not sure?)

@mckern
Copy link

mckern commented Oct 17, 2013

@patcable PHP 5.3, 5.4, or 5.5? I get past this problem with 5.5, but then I see a missing requirement for 'EtsyInternalAuth/etsy_auth.php' (#4)

@josegonzalez
Copy link

Seems like it might need a MORGUE_ENVIRONMENT: https://github.com/etsy/morgue/blob/master/phplib/Configuration.php

Might be worth trying to set this up in Heroku. I've been using the buildpack by CHH for my own slim apps (I contributed the slim support) so I might end up doing this later today if I get a chance.

@mrtazz
Copy link
Contributor

mrtazz commented Oct 17, 2013

I just added requirements to the README (3a24a15). Let me know in case I missed something.

@mrtazz mrtazz closed this as completed Oct 17, 2013
@josegonzalez
Copy link

What does the config file look like, and where does it exist?

@patcable
Copy link
Author

Did a git pull this morning, still running into:

[Fri Oct 18 10:44:29 2013] [error] [client 172.26.145.100] PHP Parse error: syntax error, unexpected '[' in /web/morgue/phplib/Postmortem.php on line 48

Running PHP 5.3.10-1ubuntu3.8, Apache 2.2.22. (Ubuntu 12.04)

Didn't know about the config file in config/{development,production}.json - wasnt sure if the web interface built it on first login. (Update the readme?)

@josegonzalez
Copy link

Patrick: Seems like you need to run PHP 5.4 (contrary to the readme!)
because function array dereferencing came in at that version.

http://php.net/manual/en/migration54.new-features.php

From looking at the source, seems like you need to commit the config json
file. It doesn't appear to be generated.

On Fri, Oct 18, 2013 at 10:46 AM, Patrick Cable notifications@github.comwrote:

Did a git pull this morning, still running into:

[Fri Oct 18 10:44:29 2013] [error] [client 172.26.145.100] PHP Parse
error: syntax error, unexpected '[' in /web/morgue/phplib/Postmortem.php on
line 48

Running PHP 5.3.10-1ubuntu3.8, Apache 2.2.22. (Ubuntu 12.04)

Didn't know about the config file in config/{development,production}.json

  • wasnt sure if the web interface built it on first login. (Update the
    readme?)


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-26601409
.

@josegonzalez
Copy link

This pr might fix it: #7

On Fri, Oct 18, 2013 at 10:49 AM, Jose Diaz-Gonzalez <
admin@josediazgonzalez.com> wrote:

Patrick: Seems like you need to run PHP 5.4 (contrary to the readme!)
because function array dereferencing came in at that version.

http://php.net/manual/en/migration54.new-features.php

From looking at the source, seems like you need to commit the config json
file. It doesn't appear to be generated.

On Fri, Oct 18, 2013 at 10:46 AM, Patrick Cable notifications@github.comwrote:

Did a git pull this morning, still running into:

[Fri Oct 18 10:44:29 2013] [error] [client 172.26.145.100] PHP Parse
error: syntax error, unexpected '[' in /web/morgue/phplib/Postmortem.php on
line 48

Running PHP 5.3.10-1ubuntu3.8, Apache 2.2.22. (Ubuntu 12.04)

Didn't know about the config file in config/{development,production}.json

  • wasnt sure if the web interface built it on first login. (Update the
    readme?)


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-26601409
.

@patcable
Copy link
Author

Yeah, not a big deal re: the config file, just trying to make sure folks know the readme is a bit inconclusive :)

I'll merge #7 and see what happens.

@patcable
Copy link
Author

Seeing this now. Setting 'tags" to off in my config file "fixes" it, but it would seem that there should be a 'tags' dir under features?

[Fri Oct 18 10:58:35 2013] [error] [client 172.26.145.100] PHP Fatal error: Uncaught exception 'ErrorException' with message 'include(tags/lib.php): failed to open stream: No such file or directory' in /web/morgue/index.php:397\nStack trace:\n#0 /web/morgue/index.php(397): Slim::handleErrors(2, 'include(tags/li...', '/web/morgue/ind...', 397, Array)\n#1 /web/morgue/index.php(397): include()\n#2 {main}\n thrown in /web/morgue/index.php on line 397

@josegonzalez
Copy link

Also potentially fixed by #8

On Fri, Oct 18, 2013 at 11:03 AM, Patrick Cable notifications@github.comwrote:

Seeing this now. Setting 'tags" to off in my config file "fixes" it, but
it would seem that there should be a 'tags' dir under features?

[Fri Oct 18 10:58:35 2013] [error] [client 172.26.145.100] PHP Fatal
error: Uncaught exception 'ErrorException' with message
'include(tags/lib.php): failed to open stream: No such file or directory'
in /web/morgue/index.php:397\nStack trace:\n#0 /web/morgue/index.php(397):
Slim::handleErrors(2, 'include(tags/li...', '/web/morgue/ind...', 397,
Array)\n#1 /web/morgue/index.php(397): include()\n#2 {main}\n thrown in
/web/morgue/index.php on line 397


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-26602871
.

@nkammah nkammah mentioned this issue Nov 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants