Git Product home page Git Product logo

Comments (56)

smutek avatar smutek commented on July 29, 2024 7

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.

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024 4

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.

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024 4

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.

from scotch-box.

coolbluethomas avatar coolbluethomas commented on July 29, 2024 2

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"

from scotch-box.

jonathanbossenger avatar jonathanbossenger commented on July 29, 2024 2

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.

from scotch-box.

bobrocke avatar bobrocke commented on July 29, 2024 1

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

from scotch-box.

jonathanbossenger avatar jonathanbossenger commented on July 29, 2024 1

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.

from scotch-box.

pouyada avatar pouyada commented on July 29, 2024 1

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

from scotch-box.

pouyada avatar pouyada commented on July 29, 2024 1

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

from scotch-box.

iamgoodbytes avatar iamgoodbytes commented on July 29, 2024 1

@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.

from scotch-box.

btantlinger avatar btantlinger commented on July 29, 2024 1

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.

from scotch-box.

Das123 avatar Das123 commented on July 29, 2024 1

@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. :)

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024 1

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

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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.

from scotch-box.

ClementParis016 avatar ClementParis016 commented on July 29, 2024

@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

from scotch-box.

bobrocke avatar bobrocke commented on July 29, 2024

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.

from scotch-box.

iamgoodbytes avatar iamgoodbytes commented on July 29, 2024

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 :)

from scotch-box.

iamgoodbytes avatar iamgoodbytes commented on July 29, 2024

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

from scotch-box.

coolbluethomas avatar coolbluethomas commented on July 29, 2024

@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.

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

Super helpful. Thanks

from scotch-box.

coolbluethomas avatar coolbluethomas commented on July 29, 2024

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

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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

from scotch-box.

iamgoodbytes avatar iamgoodbytes commented on July 29, 2024

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

from scotch-box.

courtney-miles avatar courtney-miles commented on July 29, 2024

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.

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024

@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.

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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.

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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 .

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024

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. :-)

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

Sounds fun and cool! Email me [email protected] and I'll have our blog tweet it. Also don't want this thread getting off topic too much!

from scotch-box.

smutek avatar smutek commented on July 29, 2024

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.

from scotch-box.

smutek avatar smutek commented on July 29, 2024

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

from scotch-box.

raisen avatar raisen commented on July 29, 2024

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?

from scotch-box.

pouyada avatar pouyada commented on July 29, 2024

@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

from scotch-box.

smutek avatar smutek commented on July 29, 2024

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

from scotch-box.

daviddarke avatar daviddarke commented on July 29, 2024

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

from scotch-box.

smutek avatar smutek commented on July 29, 2024

See also -

#273
#257
https://www.patreon.com/posts/now-is-time-to-7009050

from scotch-box.

pouyada avatar pouyada commented on July 29, 2024

@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 .

from scotch-box.

daviddarke avatar daviddarke commented on July 29, 2024

Thanks for this :)

from scotch-box.

briannambui avatar briannambui commented on July 29, 2024

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

from scotch-box.

raisen avatar raisen commented on July 29, 2024

@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?

from scotch-box.

Zykhatslover avatar Zykhatslover commented on July 29, 2024

Same issue here :/

from scotch-box.

Zykhatslover avatar Zykhatslover commented on July 29, 2024

@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!).

from scotch-box.

iamgoodbytes avatar iamgoodbytes commented on July 29, 2024

@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.

from scotch-box.

Zykhatslover avatar Zykhatslover commented on July 29, 2024

@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 :)!

from scotch-box.

robme avatar robme commented on July 29, 2024

@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

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024

@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.

from scotch-box.

Zykhatslover avatar Zykhatslover commented on July 29, 2024

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 :-).

from scotch-box.

btantlinger avatar btantlinger commented on July 29, 2024

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.

from scotch-box.

Zykhatslover avatar Zykhatslover commented on July 29, 2024

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024

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

from scotch-box.

btantlinger avatar btantlinger commented on July 29, 2024

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.

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024

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

from scotch-box.

btantlinger avatar btantlinger commented on July 29, 2024

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

from scotch-box.

mikeschinkel avatar mikeschinkel commented on July 29, 2024

@btantlinger https://github.com/wplib/wplib-box/milestone/20

from scotch-box.

iuriimattos avatar iuriimattos commented on July 29, 2024

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

from scotch-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.