NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Can DBG be installed on a Virtual Srv?


Joined: 10 Feb 2007
Posts: 48
Reply with quote
Reading over the instructions it appears that PHP needs to reconfigure, which I take to mean that it cannot be used on a virtual server.

Is there a way to use the debugger on a virtual host?
View user's profileFind all posts by StorymanSend private message
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
If you have access to php.ini and can enable the DBG extension, then you can debug any virtual host on the remote server. If you do not have access to php.ini, then the answer is unfortunately "no".

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website


Joined: 10 Feb 2007
Posts: 48
Reply with quote
That's a no then.

Thanks for your help.
View user's profileFind all posts by StorymanSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
PHP needs to reconfigure, which I take to mean that it cannot be used on a virtual server

I'm not sure what you meant under reconfigure. If it is configure script to be run with different options, the asnwer is not, you don't need need such reconfigurations. If you meant configuration options in php.ini, the answer is yes. You need to make some changes in php.ini or added new dbg.ini file in /etc/php.d directory to get debugger (as a regular php extension) to be loaded.

Regarding virtual hosts, you can easily get debugger enabled only for specified hosts where you want to debug your scripts and disabled for all the others.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 10 Feb 2007
Posts: 48
Reply with quote
Hello Dmitri,

Maybe you can give me an idea if what I'd like to do is possible.

When I edit files they are sites that are dynamic. The problem with editing them locally is that there is no database, so stepping through the code results in immediate errors.

What I'd like to do is continue to work locally, upload the file, then debug it remotely on a server that host virtual domains using PHPed. Which means that changes to the php.ini are impossible. Loading files outside of the domains folders is difficult, but not entirely impossible.

I'm not sure how to proceed and would appreciate knowing if what I want to do is possible.
View user's profileFind all posts by StorymanSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
When I edit files they are sites that are dynamic. The problem with editing them locally is that there is no database, so stepping through the code results in immediate errors.

You may want to either install copy of the database locally or provide an access to the remote (live) database using ssh tunnel. For example ssh.exe -L3306:localhost:3306 myaccount@myhost will open such tunnel and let you connect to the database as if it was running locally.

Quote:
changes to the php.ini are impossible. Loading files outside of the domains folders is difficult, but not entirely impossible.
I'm not sure how to proceed and would appreciate knowing if what I want to do is possible.

it depends on your hosting company service. Please contact them for the instructions on how to install a php extension and have it loaded.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Can DBG be installed on a Virtual Srv?
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic