
| View previous topic :: View next topic |
| Author |
Message |
marballs
Joined: 08 Sep 2009 Posts: 3
|
Posted: Tue Sep 08, 2009 11:30 pm Post subject: Newbie - Debugging - apache etc. on a VMWare virtual machine |
|
|
Hi,
I very much want to be able to debug my PHP / MySQL applications but have not set up the feature mostly because I do not want to have to bog my already bloted laptop down with apache installed etc.
I saw the virtual box installation but again, I already have VMware installed on my laptop as I need it for other things and I did try and get the virtual box images to open in VMWare but did not have any luck (Don't think it's possible).
So what I instead am thinking of doing is setting up virtual box on my other Vista 64 bit PC I have that is always on and had a good connection.
Could I install Virtual box on that PC and set it up in a way that I can still debug from my laptop when connected to my PC running virtual box remotely?
So basically I'm happy with Netbeans on my PC for development but it would be great if I could debug without having to install anythign else on to my laptop OR using the VMware insatllation I already have on my laptop.
Hope this makes sense and I look forward to any input on this matter. |
|
| Back to top |
|
 |
Peter Ford Posted via mailing list.
|
Posted: Wed Sep 09, 2009 1:02 pm Post subject: Newbie - Debugging - apache etc. on a VMWare virtual machine |
|
|
marballs wrote:
| Quote: | Hi,
I very much want to be able to debug my PHP / MySQL applications but have not set up the feature mostly because I do not want to have to bog my already bloted laptop down with apache installed etc.
I saw the virtual box installation but again, I already have VMware installed on my laptop as I need it for other things and I did try and get the virtual box images to open in VMWare but did not have any luck (Don't think it's possible).
So what I instead am thinking of doing is setting up virtual box on my other Vista 64 bit PC I have that is always on and had a good connection.
Could I install Virtual box on that PC and set it up in a way that I can still debug from my laptop when connected to my PC running virtual box remotely?
|
The answer is 'yes', but it's not necessarily trivial
I do something like this myself when I have to work from home.
A lot will depend on what sort of Newbie you are...
You would need:
1. The Windows version of VirtualBox (somewhere at http://www.virtualbox.org)
2. A easily configurable linux distro - Ubuntu Server Edition
(http://www.ubuntu.com/getubuntu/download-server)has a "package" that sets
up a LAMP (Linux Apache Mysql Php) server with not much more than a few
keypresses.
Then:
1. Set up a VM with bridged networking so that other machines will be able to
see it.
2. Install Ubuntu Server
3. Add the LAMP package
4. Add an FTP server (so you can copy your source files in).
5. Probably worth adding OpenSSH server package too, and installing PuTTY on
your laptop so you can get a terminal up on the server without going
physically over to the PC.
6. Install xdebug.
That's a starting point - now you'd just need to set up Apache and PHP and MySQL
etc. how you need them (including the xdebug incantations you need in the php.ini)
Then point your Netbeans project at the new VM and (hopefully) Bob's you Uncle :)
If this has all gone over your head, then you may be the wrong sort of Newbie...
--
Peter Ford, Developer phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd. www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS |
|
| Back to top |
|
 |
marballs
Joined: 08 Sep 2009 Posts: 3
|
Posted: Wed Sep 09, 2009 1:22 pm Post subject: |
|
|
Thanksfully much did not go over head. The bits I don't like are the Linux bits as I tried to avoid Linux other then through my webhost, but I know most of what you covered.
In particular, is there not a ready image I could use for the virtual box? Therefore one with things like MySQL and other stuff already installed?
Then again you mention that in step 2, but still list the need to install MySQL, Apache etc.
Does my quesion make sense? |
|
| Back to top |
|
 |
marballs
Joined: 08 Sep 2009 Posts: 3
|
Posted: Wed Sep 09, 2009 1:24 pm Post subject: |
|
|
Also, ifI just decide to mkae life easy aspossible and just install virtual box on my laptop, am I right in thinking there is a prepared image that will make it very easy for me to debug my PHP / MySQL applicaiton?
Or would I still have to go through much of what you listed, only on a local image rather then a remote one? |
|
| Back to top |
|
 |
Peter Ford Posted via mailing list.
|
Posted: Thu Sep 10, 2009 7:57 am Post subject: Newbie - Debugging - apache etc. on a VMWare virtual machine |
|
|
marballs wrote:
| Quote: | Thanksfully much did not go over head. The bits I don't like are the Linux bits as I tried to avoid Linux other then through my webhost, but I know most of what you covered.
In particular, is there not a ready image I could use for the virtual box? Therefore one with things like MySQL and other stuff already installed?
Then again you mention that in step 2, but still list the need to install MySQL, Apache etc.
Does my quesion make sense?
|
OK, I can understand your problem...
I don't know of a ready image, although there is one for Solaris, which might be
fine for your needs. Take a look at the Netbeans tutorial:
http://www.netbeans.org/kb/docs/php/webstack.html
I haven't tried this yet, partly I prefer to use PostgreSQL for the database on
my applications.
It does look like a nice solution to your problem: after all, it hardly matters
what the server OS is as long as it works!
--
Peter Ford, Developer phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd. www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS |
|
| Back to top |
|
 |
Peter Ford Posted via mailing list.
|
Posted: Thu Sep 10, 2009 10:52 am Post subject: Newbie - Debugging - apache etc. on a VMWare virtual machine |
|
|
Peter Ford wrote:
| Quote: | marballs wrote:
| Quote: | Thanksfully much did not go over head. The bits I don't like are the Linux bits as I tried to avoid Linux other then through my webhost, but I know most of what you covered.
In particular, is there not a ready image I could use for the virtual box? Therefore one with things like MySQL and other stuff already installed?
Then again you mention that in step 2, but still list the need to install MySQL, Apache etc.
Does my quesion make sense?
|
OK, I can understand your problem...
I don't know of a ready image, although there is one for Solaris, which might be
fine for your needs. Take a look at the Netbeans tutorial:
http://www.netbeans.org/kb/docs/php/webstack.html
I haven't tried this yet, partly I prefer to use PostgreSQL for the database on
my applications.
It does look like a nice solution to your problem: after all, it hardly matters
what the server OS is as long as it works!
|
I've just tried this tutorial, and it seems good - downloading the image took a
while, and I also had to make sure I had VirtualBox up to date, but otherwise
all is well - you get an Apache server, MySQL database, PHP and XDebug all ready
to go out of the box. The only command line stuff is because VirtualBox doesn't
have a GUI for setting up port-forwarding yet, but otherwise it's all
point-and-click...
One suggestion I have is to use the non-open-source version of VirtualBox so you
can have a VRDP connection to the VM, then you can use windows Remote Desktop
Connection and point it at the VirtualBox *host* on port 3389 instead of
worrying about SSH...
--
Peter Ford, Developer phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd. www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS |
|
| Back to top |
|
 |
halwaraj
Joined: 26 Sep 2009 Posts: 1
|
Posted: Sat Sep 26, 2009 3:36 pm Post subject: Issue while trying to debug using Netbeans 6.7.1 |
|
|
Hey guys I am trying to run remote debugger in Netbeans.
My Environment:
This is a Virtual Machine. VirtualBox.org by Sun Microsystems.
Windows XP SP3
Wamp
Netbeans 6.7.1
I am trying to debug drupal code base.
I have tried to follow the instruction on Netbeans and other sites. NO LUCK YET.
When I launch the debugger from NB the URL does show
http://localhost/pra/index.php?XDEBUG_SESSION_START=netbeans-xdebug
but it gets redirected to regular URL
http://localhost/pra/install.php?profile=default
Dont know what is the reason.
I have tried both versions of xdebug dll ie thread safe and non thread safe.
Please help
Halwaraj |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|