Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Xdebug #7

Closed
ClementParis016 opened this issue Nov 13, 2014 · 56 comments
Closed

Add Xdebug #7

ClementParis016 opened this issue Nov 13, 2014 · 56 comments

Comments

@ClementParis016
Copy link

@ClementParis016 ClementParis016 commented Nov 13, 2014

Using this awesome Scotch Box for PHP projects would be more comfortable with Xdebug pre-installed on the VM.
I think it's not too hard to install it manually, but it would be nice to add it by default.

@whatnickcodes
Copy link
Member

@whatnickcodes whatnickcodes commented Nov 29, 2014

Yup - not to hard to install manually, but I think I'm going to leave it out for now. A lot of users of this box are beginners where Xdebug will just throw them off their game. Anyone who wants Xdebug probably knows how to install it.

@bobrocke
Copy link

@bobrocke bobrocke commented Dec 24, 2014

Dang. Can I get some tips about how to get Xdebug going in Scotch Box?

@ClementParis016
Copy link
Author

@ClementParis016 ClementParis016 commented Dec 24, 2014

@bobrocke you can use APT to install it: sudo apt-get install php5-xdebug php5-dev

And then restart the Apache server: sudo service apache2 restart

@bobrocke
Copy link

@bobrocke bobrocke commented Jan 2, 2015

True. But that's kind of tedious every time I fire up a VM. And using Puppet for just Xdebug adds far too much complication. The pleasure of using Scotch Box is that everything is there already.

@iamgoodbytes
Copy link

@iamgoodbytes iamgoodbytes commented Jan 3, 2015

I'd like to add that also for our team we're looking at things like https://github.com/jakubgg/scotch-box4dev and homestead again, because we require xdebug in our dev setup. We'd love to stay with scotch-box if possible because we enjoy it so much :)

@coolbluethomas
Copy link

@coolbluethomas coolbluethomas commented Apr 6, 2015

Installing xdebug on the vm (excellent fork btw @iamgoodbytes , thank you for that) isn't too bad, but how would you setup phpstorm to work with xdebug? I'm having issues getting my mappings correct.

edit: I was doing it wrong, my settings were overwritten I think;

make sure to check your phpinfo();

update your settings in /etc/php5/apache2/conf.d/20-xdebug.ini
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Added to enable Xdebug ;
;;;;;;;;;;;;;;;;;;;;;;;;;;
; use the following command to find xdebug.so:
; find / -name 'xdebug.so' 2> /dev/null
zend_extension=/usr/lib/php5/20121212/xdebug.so
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_port = 9000
xdebug.var_display_max_children = 512
xdebug.var_display_max_data = 1024
xdebug.var_display_max_depth = 10
xdebug.idekey = "PHPSTORM"

@iamgoodbytes
Copy link

@iamgoodbytes iamgoodbytes commented Apr 7, 2015

Glad you got it to work @coolbluethomas - I tend to use this link as a reference for these settings: http://www.sitepoint.com/install-xdebug-phpstorm-vagrant/ whenever I forget

@coolbluethomas
Copy link

@coolbluethomas coolbluethomas commented Apr 7, 2015

@iamgoodbytes was looking at that site as well, allthough for xdebug he wasn't much use since he was using homestead.

I totally forgot what I added to get phpstorm working itsself. I've added a server with the 192.168.33.10 ip adress, turned on "use path mappings". Then mapped my project folder to /var/www (Absolute path on the server). Validating in phpstorm didn't work, because of some error, just an FYI.

@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Jan 7, 2016

I too would vote for XDEBUG installed by default and made sure it works with PhpStorm.

BTW, this is failing:

sudo apt-get install php5-xdebug php5-dev

With:

Processing triggers for install-info (5.2.0.dfsg.1-2) ...
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/p/php5/php5-dev_5.6.14+dfsg-1+deb.sury.org~trusty+1_amd64.deb  404  Not Found

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/x/xdebug/php5-xdebug_2.3.2-1+deb.sury.org~trusty+1_amd64.deb  404  Not Found

Anyone who wants Xdebug probably knows how to install it.

Just as a point of reference I run a WordPress coders meetup and most of the people in that group would want to use XDEBUG but many of them would have no clue how to install XDEBUG. As it is, I am struggling with it too.

@whatnickcodes
Copy link
Member

@whatnickcodes whatnickcodes commented Jan 7, 2016

Unfortunately, I still don't think I will add this.

Do:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5-xdebug php5-dev
@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Jan 17, 2016

Unfortunately, I still don't think I will add this.

Understood.

Just FYI, what I was looking for was a box I can point people to and say "That will just work."

Do:...

Unfortunately that is not enough, at least not enough to get PhpStorm working. You also need these in /etc/php5/apache2/conf.d/20-xdebug.ini:

xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.ide_key=PHPSTORM

Hope this helps others.

@whatnickcodes
Copy link
Member

@whatnickcodes whatnickcodes commented Jan 17, 2016

Super helpful. Thanks

@coolbluethomas
Copy link

@coolbluethomas coolbluethomas commented Jan 18, 2016

Could just create a fork for that and keep those settings in there?

@whatnickcodes
Copy link
Member

@whatnickcodes whatnickcodes commented Jan 18, 2016

Fork doesn't really make sense because this is a base box (not a bunch of provisioning scripts).

I think what would be best is if we had a shell script to provision and set all this up on vagrant up.

We can just dump this in our docs and make it well known if anyone wants to take point

@iamgoodbytes
Copy link

@iamgoodbytes iamgoodbytes commented Jan 19, 2016

+1 for adding this to the scotchbox docs. Thanks @ncerminara

@courtney-miles
Copy link

@courtney-miles courtney-miles commented Jun 7, 2016

I half expected that it may have setup Xdebug the way Composer recommends at Xdebug impact on Composer.

I expected this box would be used mostly by developers for development and so Xdebug would be in high demand.

I think what would be best is if we had a shell script to provision and set all this up on vagrant up.

I agree that this would be a good option as I'm sure a lot of people need their own variations.

@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Jun 7, 2016

@courtney-miles We were frustrated by ScotchBox's lack of support for XDEBUG, so frustrated in fact that we decided to build our own box (WPLib Box) for WordPress developers and start promoting it, although it should work for most PHP use-cases. It has XDEBUG working "out-if-the-box," so to speak.

@whatnickcodes
Copy link
Member

@whatnickcodes whatnickcodes commented Jun 7, 2016

Awesome! We encourage it: https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one. Anyone can customize and create their own "scotch box" in minutes with absolutely zero effort.

Scotch Box is meant to be super vanilla and largely targeted for beginners. It's also by design to have absolutely zero dependencies so things break less with updates and stuff (note: WPLib has vagrant-plugins, etc. Not a bad thing, just a different purpose than Scotch Box). @mikeschinkel check out this plugin https://github.com/fgrehm/vagrant-cachier

For now, Xdebug is still going to stay out of the box. It's harder for people confused by it to uninstall it, than people who know how to use it to install it. I think that's completely fair and reasonable.

@whatnickcodes
Copy link
Member

@whatnickcodes whatnickcodes commented Jun 7, 2016

Also! Just a quick note in case anyone is confused about a WP specific box versus Scotch Box from above ^

Scotch Box is LAMP. WordPress runs on LAMP. WordPress and Scotch Box are basically best friends. Also WP-CLI is installed (but needs an update).

You can install WP on Scotch Box in like 5 seconds: https://scotch.io/bar-talk/announcing-scotch-box-2-5#installing-wordpress.

cd my/favorite/folder/for/storing/projects
git clone https://github.com/scotch-io/scotch-box my-new-wordpress-project
cd my-new-wordpress-project
vagrant up
vagrant ssh
cd /var/www/public
rm index.php
git clone https://github.com/WordPress/WordPress --depth=1 .
@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Jun 8, 2016

Awesome! We encourage it: https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one. Anyone can customize and create their own "scotch box" in minutes with absolutely zero effort.

Great, thanks! We decided to use Packer and start with Ubunutu 14.04 LTS, but your article is definitely one we should link to for people interested in extending ours too.

Scotch Box is meant to be super vanilla and largely targeted for beginners.

Cool.

We are trying to straddle both beginners (by making the initial success experience as easy as possible) and advanced users (by offering tons of flexibility and power, though much of which is still just planned) but optimized for WordPress. So while our current box may work for Drupal, Symfony, etc, it won't be optimized for any of them.

We will just have to see if we can pull off both ends of the WordPress spectrum. :-)

It's also by design to have absolutely zero dependencies so things break less with updates and stuff

What are examples of dependencies as you are thinking of it? You do require Vagrant and VirtualBox or equivalent, right?

Do you mean dependencies inside the box too, or just outside the box?

Speaking of, our instructions currently require Composer and a few Vagrant plugins but that was just to get us started; we'll soon remove Composer as a requirement and we are writing our own Vagrant plugin that I would not be an external dependency.

@mikeschinkel check out this plugin https://github.com/fgrehm/vagrant-cachier

That's cool, but really only beneficial for Vagrantfile that have provisioning scripts, right?

For now, Xdebug is still going to stay out of the box. It's harder for people confused by it to uninstall it, than people who know how to use it to install it. I think that's completely fair and reasonable.

Good plan. Like you implied, we are targeting different groups and use-cases and can easily co-exist. We have plans to make WPLib Box the best solution for WordPress local development and eventually the best solution for deployment. That is definitely different that being framework-agnostic LAMP stack targeting beginners.

Also! Just a quick note in case anyone is confused about a WP specific box versus Scotch Box from above ^ Scotch Box is LAMP. WordPress runs on LAMP. WordPress and Scotch Box are basically best friends. Also WP-CLI is installed (but needs an update). You can install WP on Scotch Box in like 5 seconds: https://scotch.io/bar-talk/announcing-scotch-box-2-5#installing-wordpress.

To clarify the alternative, WPLib Box serves WordPress as delivered, complete with a LEMP Stack: Ubuntu Linux, NGINX, MySQL, and PHP and WordPress pre-installed, Redis for persistent object-caching, several development-related plugins, composer.json for professional development, PHP 5.6, and WP-CLI preinstalled.

And by the end of this week version 0.10.7 will add PHP 7.0, automatic database dump (backup) to host /sql directory, Node/NPM/Gulp/Grunt/Bower/Yoeman, "On File Action" scripts (basically file watchers), Gearman Message Queue+Task Runner, and MailCatcher. Plans the version after will have an API for doing things like adding sites to the box, and an initial pass at a CLI and more.

If nothing else though, it has been a fun project for my team to work on. :-)

@whatnickcodes
Copy link
Member

@whatnickcodes whatnickcodes commented Jun 8, 2016

Sounds fun and cool! Email me nick@scotch.io and I'll have our blog tweet it. Also don't want this thread getting off topic too much!

@smutek
Copy link

@smutek smutek commented Jun 12, 2016

Scotch Box is meant to be super vanilla and largely targeted for beginners.

Dead horse and all that, but I've found that the best tools for me have been the ones that allow me to grow into them over time.

Learning how to use Xdebug was game changing for me. It seems like Xdebug is something that would not add complexity because a user won't even know it's there until they want to use it.

It would stay out of the way of beginners, but would be great for them to have once they are ready to use it. VVV's implementation is pretty good in my opinion, in order to use it you have to ssh into the bux and run xdebug_on.

I do mostly WordPress development and I've been looking for a lighter weight alternative to VVV. I'd like to have one box per project as well as a box that offers more flexibility. Scotch is perfect - but the amount of config up front to get the box the way I'd require (mainly this boils down to having to install Xdebug for each project) prohibits me from adopting Scotch for my day to day.

That said, I respect your philosophy and will look into either forking scotch or setting up my own box tailored to my departments needs.

Thanks for the great tools.

@jonathanbossenger
Copy link
Contributor

@jonathanbossenger jonathanbossenger commented Oct 22, 2016

I know this has been closed, but I'd like to leave this hear for anyone who comes across this url.

https://medium.com/@felladrin/installing-xdebug-on-scotch-box-and-integrating-it-with-phpstorm-webstorm-5b1f96ce69#.fr7vyawd4

100% got me setup with xdebug and PHP Storm on Scotchbox.

@pouyada
Copy link

@pouyada pouyada commented Nov 14, 2016

i still have this problem while installing xdebug .
sudo apt-get install php5-xdebug

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/p/php5/php5-dev_5.6.14+dfsg-1+deb.sury.org~trusty+1_amd64.deb 404 Not Found

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/x/xdebug/php5-xdebug_2.3.2-1+deb.sury.org~trusty+1_amd64.deb 404 Not Found

@smutek
Copy link

@smutek smutek commented Nov 14, 2016

Hey @pouyada, I have a fork going that installs xDebug. There's not much to my fork really, just a small shell script that installs xDebug. The script follows the steps in the link that @jonathanbossenger posted.

Here's a link to the shell script if you want to check it out - https://github.com/smutek/sassscotch/blob/master/vagrant_bootstrap/bootstrap.sh

@raisen
Copy link

@raisen raisen commented Nov 21, 2016

I'm having the same problem that @pouyada is having, and @smutek's script failed as well. I think something is wrong with this APT source:

deb http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu trusty main

located at /etc/apt/sources.list.d ?

UPDATE 1: I was able to install xdebug by running these:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

UPDATE 2: The above commands will install a module that is incompatible with the current Zend version. From the apache logs:

Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.

I'm now stuck again :(

It looks like that source doesn't exist anymore? From this page, when I click on the ppa:ondrej/php5-5.6 link, I get a 404 page.

Any ideas?

@pouyada
Copy link

@pouyada pouyada commented Nov 23, 2016

@smutek's script did not work also for me. Anyway i resolved this problem by modifying sources list located in : /etc/apt/sources.list.d
1- cd /etc/apt/sources.list.d
2- find any file which name contains php 5.6 or 5_6 ( i had 2 files like this )
3- open those files using nano ( sudo nano filename )
4- any file contains just 2 lines . comment all lines by adding a # and then save the file ( ctrl + o )
5 - close the nano ( ctrl x )

and then
sudo apt-get install php5-xdebug php5-dev

@smutek
Copy link

@smutek smutek commented Nov 23, 2016

@pouyada @raisen I just tried as well and am also getting the APT source issue. Sorry about that, it was working for me previously.

@pouyada
Copy link

@pouyada pouyada commented Nov 23, 2016

yes because you are doing sudo apt-get update at the beginning of the script, and this issue does not allow.

@daviddarke
Copy link

@daviddarke daviddarke commented Nov 27, 2016

Getting the same APT issue as @pouyada @raisen @smutek :(

@smutek
Copy link

@smutek smutek commented Nov 27, 2016

I think the issue is that the PPA is obsolete. See: http://askubuntu.com/questions/741913/php7-0-dev-installation-fails-on-ubuntu-14-0-4

I was able to get Xdebug installed by following these steps from the same Ask Ubuntu thread, then installing Xdebug, then restarting the server.

So all steps -

  • Get rid of the old PPA
    sudo apt-get install ppa-purge
    ppa-purge ppa:ondrej/php5-5.6

  • Add the current PPA
    sudo add-apt-repository ppa:ondrej/php

  • Update
    sudo apt get update
    sudo apt-get upgrade
    sudo apt-get autoremove

  • Install Xdebug
    sudo apt-get install php5-xdebug

  • Configure Xdebug
    sudo vim /etc/php5/apache2/conf.d/20-xdebug.ini

    • add to the file, save and close
      zend_extension=xdebug.so
      xdebug.remote_enable=1
      xdebug.remote_connect_back=1
      xdebug.remote_port=9000
      xdebug.remote_host=192.168.33.10
      
  • Restart apache
    sudo service apache2 restart

I updated my script, and my fork, and I am able to vagrant up, test, and verify with PHPStorm that Xdebug is working as expected.

Problems and Disclaimers are:

  1. I have no idea what I'm doing.
  2. Other things may now be broken, I have no idea, YMMV.
  3. Somewhere along the line one of these processes creates an empty html directory for some reason. Safe to delete, but testament that I have no idea what I'm doing.
  4. Running the updates and upgrade takes a really long time.

But, Xdebug is working!

Unfortunately Xdebug is working at the expense of the speed, convenience, ease of use and all the other things that drew me to ScotchBox in the first place (and possibly at the expense of breaking other things.)

I think the main underlying problem is that the ScotchBox itself needs an update.

It was last updated in November of 2005 and doesn't seem to be regularly maintained. There's been updates, but nothing major, and the base box hasn't been updated for over a year.

Again, no idea what I'm doing, but if updating everything makes it possible to install Xdebug then it seems to follow that the base box probably needs a refresh. Another example, WP-CLI was added in November (but no Xdebug because it will "throw beginners of their game"?) but the WP-CLI version that ships with the box is out of date and isn't compatible with the current version of WordPress. So it needs to be immediately updated in order to be used.

I don't know, Scotch isn't really a solution for me anymore and rather than trying to make it work for me I think I'd personally be better off learning how to make my own box.

Regardless, I'm super appreciative to have been able to use ScotchBox for the past couple years. Thanks for the great work, I've learned a ton.

@pouyada
Copy link

@pouyada pouyada commented Nov 27, 2016

@daviddarke follow the Instructions that i said in my last comment . il will work 100% .
i dont know the about @smutek instructions and I can't try that because i dont use scotch box any more. it was so annoying .

@daviddarke
Copy link

@daviddarke daviddarke commented Nov 28, 2016

Thanks for this :)

@briannambui
Copy link

@briannambui briannambui commented Nov 28, 2016

In regards to adding new PPA...

Note: If your system's locale is set to anything other than UTF-8, adding the PPA may fail due to a bug handling characters in the author's name. As a workaround, you can install language-pack-en-base to make sure that locales are generated, and override system-wide locale settings while adding the PPA:

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php

@raisen
Copy link

@raisen raisen commented Dec 8, 2016

@smutek, thanks for providing these steps.

I followed them, got no errors, but for some reason, xdebug.so is installed into /usr/lib/php5/20121212, whereas the server is expecting to be installed at /usr/lib/php5/20131226. Any ideas why?

@Zykhatslover
Copy link

@Zykhatslover Zykhatslover commented Dec 12, 2016

Same issue here :/

@iamgoodbytes
Copy link

@iamgoodbytes iamgoodbytes commented Dec 19, 2016

@smutek thanks for these instructions, installing xdebug has cost me several hours in scotch box. I had a good process going, but I needed your instructions in order to get rid of the old PPA recently.

I'm also looking for alternatives because of this, but since I'm a Laravel developer I'll probably switch to homestead for my next project. I'm also really grateful for the time scotchbox has saved me over the years. Right now, unfortunately it's costing me more and more time just to get up and running with xdebug.

@Zykhatslover
Copy link

@Zykhatslover Zykhatslover commented Dec 19, 2016

@iamgoodbytes I ran into the same problem (as I commented above) and I found out that puppet (via puPHPet) is a really good alternative! Just visit this link and follow the steps .

It's easy to use, easy to maintain, easy to share with others, seriously it rocks :o you can easily configure multiple box (with, let's say another PHP version), virtual hosts etc, it's a bit tougher than scotchbox but at least it's doable :). As for Laravel, just make sure you "installed" all the PHP mods and you'r good to go (it worked for my Laravels as well as for my Symfonys projects!).

@iamgoodbytes
Copy link

@iamgoodbytes iamgoodbytes commented Dec 22, 2016

@Zykhatslover puPHPet is indeed a good alternative, but I'm a bit concerned about maintenance of those boxes and don't feel like doing that myself. Right now, I just switched over to Homestead (being a Laravel developer) and xdebug just works out of the box. You only need to set your path mappings if you use phpstorm, but that's just a few seconds work. Anyway, I have used scotchbox for years and have really enjoyed it and I respect the decision to not include xDebug.

@Zykhatslover
Copy link

@Zykhatslover Zykhatslover commented Dec 23, 2016

@iamgoodbytes Well it's not that hard to configure and I don't think it's hard to maintain but Homestead is a good alternative too. I went for that for my Laravels projects as well but I don't really like the fact that Nginx is preferred to Apache (I haven't been too far into Homestead since all I needed was a running server for Laravel but maybe you can configure it so it uses Apache instead I don't know). Anyways Scotchbox will probably get back sooner or later with a new version :)!

@robme
Copy link

@robme robme commented Mar 6, 2017

@mikeschinkel how did you fix the problem with the packages not being found?

When I run

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5-xdebug php5-dev

I get this after the install command:

Err http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/ trusty/main php5-dev amd64 5.6.14+dfsg-1+deb.sury.org~trusty+1
  404  Not Found
Err http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/ trusty/main php5-xdebug amd64 2.3.2-1+deb.sury.org~trusty+1
  404  Not Found
Err http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/ trusty/main dh-php5 all 0.2+deb.sury.org~trusty+2
  404  Not Found
Err http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/ trusty/main pkg-php-tools all 1.21+deb.sury.org~trusty+1
  404  Not Found
E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/p/php5/php5-dev_5.6.14+dfsg-1+deb.sury.org~trusty+1_amd64.deb  404  Not Found

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/x/xdebug/php5-xdebug_2.3.2-1+deb.sury.org~trusty+1_amd64.deb  404  Not Found

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/d/dh-php5/dh-php5_0.2+deb.sury.org~trusty+2_all.deb  404  Not Found

E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/p/pkg-php-tools/pkg-php-tools_1.21+deb.sury.org~trusty+1_all.deb  404  Not Found
@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Mar 6, 2017

@robme It's been over a year since I last looked at how to do that so don't actually remember. We've built our own box that has XDEBUG baked-in called WPLib Box to solve exactly that problem. It is named to appeal to WordPress developers but really is just a general-purpose PHP box.

@btantlinger
Copy link

@btantlinger btantlinger commented Mar 13, 2017

Please just add xdebug to scotchbox and make us all happy. I don't get your reasoning that it's "for beginners." It's not like you're forced to use xdebug. You could also add a switch to enable/disable it similar to what Laravel homestead does. E.g xon to turn on xdebug, xoff to turn it off.

@jonathanbossenger
Copy link
Contributor

@jonathanbossenger jonathanbossenger commented Mar 14, 2017

Everyone moaning about wanting to add xDebug to Scotch Box, please read @whatnickcodes comments here #244

If I had known my comment would have meant that people just continue to moan about the project, I wouldn't have posted the tutorial. (apologies to those who have actually posted useful comments or alternate solutions)

If you want it, make it happen. Fork the project, figure out the problem and release it back to the world. Or do what @mikeschinkel has done and build and release your own box. Or go find a box that does what you want it to. Complaining that a feature you want is not available in an open source project is like peeing against the wind. Be the change you want to see in the world and do something about it yourself.

@whatnickcodes please close this issue.

@Zykhatslover
Copy link

@Zykhatslover Zykhatslover commented Mar 14, 2017

I'll give a +1 to that even tho I believe a lot of people would love to fix this issue. They (we :p) just don't have the skills to do it.

By the way I'll repeat it, you guys should give a try to puPHPet. It's quite easy to configure, it comes with xdebug out of the box (you can disable it if you want). You can configure it as much as you want and once it's all set, there's nothing else to do.. I personally wouldn't use scotchbox anymore after dealing with puPHPet.

That's my 2 cent :-).

@btantlinger
Copy link

@btantlinger btantlinger commented Mar 14, 2017

I actually do use puPHPet for some projects, but maintaining those puPHPet boxes over the long haul doesn't work so well in my experience. E.g, I'll create a box for what I need, save the yaml file... but then the yaml file often breaks with newer versions of puPHPet as things change. So I end up having to configure a new puphpet box every time, which gets tedious.

This is one of the really nice things about scotchbox. I don't have to worry about any of that, just issue a vagrant up, and I'm on my way without expending mental cycles on configuring a dev environment. Sadly, scotchbox is beginning to show its age, and the lack of xdebug is starting to be a deal-breaker.

@Zykhatslover
Copy link

@Zykhatslover Zykhatslover commented Mar 14, 2017

@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Mar 14, 2017

@btantlinger Just curious, what are you using Scotch Box for? What type of development? Drupal, WordPress, Laravel, other, vanilla PHP?

@btantlinger
Copy link

@btantlinger btantlinger commented Mar 14, 2017

Various types, but with scotchbox mostly WP - I did take a look at your WPLibBox, but I'd rather use apache in my dev environment as that is what I mostly deploy to.

@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Mar 14, 2017

@btantlinger We will be supporting Apache in the near future...

@btantlinger
Copy link

@btantlinger btantlinger commented Mar 14, 2017

@mikeschinkel awesome to hear, I will keep an eye out for it. Looks very cool!

@Das123
Copy link

@Das123 Das123 commented Mar 20, 2017

@smutek Thanks. Your longish post from Nov 28 got it working for me. Much appreciated. There were a few things not quite working if you update your post:
Need to add 'sudo' to
sudo ppa-purge ppa:ondrej/php5-5.6
Hyphen missing in
sudo apt-get update
After restart running a check to see it is installed
php -v
Thanks again. :)

@mikeschinkel
Copy link

@mikeschinkel mikeschinkel commented Apr 5, 2017

@btantlinger As promised, WPLib Box now also supports Apache.

@iurimattos
Copy link

@iurimattos iurimattos commented Jun 20, 2018

It's simple, start a ssh session then sudo apt-get install php-xdebug

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

Successfully merging a pull request may close this issue.

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