Skip to content
This repository has been archived by the owner. It is now read-only.

PHP Support #18

Open
josegonzalez opened this issue Oct 5, 2013 · 18 comments
Open

PHP Support #18

josegonzalez opened this issue Oct 5, 2013 · 18 comments
Labels

Comments

@josegonzalez
Copy link

@josegonzalez josegonzalez commented Oct 5, 2013

Not sure how to go about adding this myself, though I'd love to!

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Oct 5, 2013

It's been a while since I last used PHP so if you can point me to some bash script for setting up a "modern PHP dev environment" I might be able to add support for it :)

@fgrehm fgrehm mentioned this issue Oct 5, 2013
@josegonzalez
Copy link
Author

@josegonzalez josegonzalez commented Oct 5, 2013

How was ruby support added?

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Oct 5, 2013

Platforms are made of a class and a set of Vagrant guest capabilities.Not sure how familiar you are with Ruby / Vagrant plugin architecture but that might serve as a start :)

I'm heading out now but feel free to ask more questions ;)

@josegonzalez
Copy link
Author

@josegonzalez josegonzalez commented Oct 5, 2013

PHP is weird in that - for web contexts - it mostly requires the usage of a server. There is a built-in server, but most use either apache or nginx.

Simple setup for apache: https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu

Simple setup for nginx: https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04

Note that the server requirement is necessary to make php useful in it's base setup.

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Oct 7, 2013

Tks for the info :) I've love if there is something similar to rvm for PHP as it might make our lives a lot easier.

Do u know if there such tool? I've actually found more than one but I'm not sure if the community is actually using them neither if the projects are being actively maintained.

@josegonzalez
Copy link
Author

@josegonzalez josegonzalez commented Oct 7, 2013

https://github.com/phpenv/phpenv

For users that don't use homebrew-php to manage php, I recommend this.

On Mon, Oct 7, 2013 at 12:07 PM, Fabio Rehm notifications@github.comwrote:

Tks for the info :) I've love if there is something similar to rvmhttps://rvm.io/for PHP as it might make our lives a lot easier.

Do u know if there such tool? I've actually found more than one but I'm
not sure if the community is actually using it neither if the projects are
being actively maintained.


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

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Oct 7, 2013

Cool, that seems to do the trick as it also supports Apache as well. I'm thinking that Apache + phpenv might serve as a nice head start for PHP support.

Although I'd love to see Apache / nginx running as a Docker service, I have no idea right now how we would go about setting things up for that so let's keep things simple for now :)

@josegonzalez
Copy link
Author

@josegonzalez josegonzalez commented Nov 30, 2013

ping

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Nov 30, 2013

Something else showed up and I'm not sure I'll be able to handle this over the weekend. But I promise you I'll try to get this into the upcoming version available on the next branch.
I'll ping u once there's something for u to test :D

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Dec 3, 2013

@josegonzalez For the record, I tried installing php 5.3 with phpenv and it didn't work =/ I'll post my findings tomorrow to see if you can help me out

@josegonzalez
Copy link
Author

@josegonzalez josegonzalez commented Dec 3, 2013

hmm oks. 5.3 isn't really supported, so I'd recommend 5.4 as a base if that solves anything.

@rogeriopradoj
Copy link

@rogeriopradoj rogeriopradoj commented Dec 4, 2013

Hope see this integrated ASAP :-)))))

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Dec 4, 2013

Just so you guys know, I'm planning to cut 0.4.0 tonight as it is a really big release already and PHP support will land as soon as I'm able to figure out how to get phpenv to work ;)

@rogeriopradoj
Copy link

@rogeriopradoj rogeriopradoj commented Dec 4, 2013

@fgrehm just a suggestion (that maybe might go against the option @josegonzalez gave), maybe try https://github.com/CHH/phpenv instead of https://github.com/phpenv/phpenv.

Some issues in Travis CI about the theme: travis-ci/travis-ci#1626 and https://github.com/travis-ci/travis-ci.github.com/pull/409/files.

CHH/phpenv is the one used by Travis CI (that makes it get some additional points for me, more it the one I'm using in my Mac ;-) Unfortunately I'm not using Apache + PHP in my host, yet, (every time I need to use a PHP webserver in a project with this machine I go to Vagrant or use the built-in PHP web server (PHP 5.4+)).

Also, that's the reason I'm calling @CHH to the discussion, maybe he could help us with that.

As long as I'm calling the core committer of one, let's call the core committers of the other, phpenv/phpenv, @nickl- and @humanshell.

@josegonzalez
Copy link
Author

@josegonzalez josegonzalez commented Dec 4, 2013

Seems legit. I like the @CHH guy. Howverm I would have assumed that the @phpenv bros would be on top of it, given that they have the organization and all. Maybe they can join forces?

If it makes it easy, then I'd use what travis-ci uses. The @phpenv project seems to be more active than @CHH's, which gives me pause, but given that it doesn't work - and that we can switch later - I am for whatever gives ventriloquist php support soonest.

@CHH Hai!

@nickl-
Copy link

@nickl- nickl- commented Dec 4, 2013

I got pinged by @phpenv,,,,

the phpenv organisation is the evolution from humanshell/phpenv and is not only the complete rbenv but includes the php installation facilities as well.

CHH is actually maintaining CHH/php-build which travis uses and the phpenv wrapper is merely syntax sugar.

The major differences are phpenv builds from the repository sources while php-build focuses on release builds. We also try and simplify the patching/configuration with a focus on humans using the software.

I am busy finalising a next release which will also mark the first full or master release since the organisation.

We can successfully build 4.4, 5.2, 5.3, 5.4 and 5.5. and include the most common pecl extensions built as shared or dynamic libraries.

If I can understand what you guys actually want to accomplish perhaps I can lend a hand. What are the requirements?

@rogeriopradoj
Copy link

@rogeriopradoj rogeriopradoj commented Dec 4, 2013

@fgrehm, now it's up to you!

Rogerio
rogeriopradoj@gmail.com
On Dec 4, 2013 11:22 AM, "Nick Lombard" notifications@github.com wrote:

I got pinged by @phpenv https://github.com/phpenv,,,,

the phpenv organisation is the evolution from humanshell/phpenv and is not
only the complete rbenv but includes the php installation facilities as
well.

CHH is actual https://github.com/CHH/php-build which travis uses and the
phpenv wrapper is merely syntax sugar.

I am busy finalising a next release which will also mark the first full or
master release since the organisation.

If I can understand what you guys actually want to accomplish perhaps I
can lend a hand. What are the requirements?


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

@fgrehm
Copy link
Owner

@fgrehm fgrehm commented Dec 4, 2013

Thanks guys for helping out guys! :)

The only thing preventing me from having this in place is actually being able to successfully install PHP with phpenv. I created an upstream issue with the problem I hit phpenv/phpenv#38. Once I can get past that I hope things should work just fine :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.