NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
several php.ini's for remote debugging


Joined: 26 Jun 2007
Posts: 2
Reply with quote
Hi,
that's a presale-question:

Having installed phpED on a windows-XP-PC (development/tests) sometimes there is the need for "remote debugging" on an remote VPS-server where approx 35 users have their live-application running. (debian sarge with apache 2.0 under confixx-administration).

How can the remote-debugging be activated for e.g. user-no.35, user-no.22, user-no.12 on the remote debian server but not for the remaining 32 remote users?

Is there to use the confixx-http-special-method in the admin-area? Should there be placed different php.ini's in user-subdirectories? Can the work be done by special input into htaccess? Or is it not possible to use phpED-remote-debugging on remote vps?

Regards
Walter
View user's profileFind all posts by froehlichSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
Hi - this can be easily resolvd with debugger.hosts_allow instruction - set it to the IPs of the users you want to be able to start the debug session.
PLease let us know if we understood your question right
View user's profileFind all posts by yfaktorSend private message
remote debugging on VPS - virtual servers with dbg/phpEd


Joined: 26 Jun 2007
Posts: 2
Reply with quote
yfaktor wrote:
PLease let us know if we understood your question right
Hi - the IP is identical for all approx. 30 users - every user has different domain.
The VPS has one php.ini for all which can be overruled in the confixx-admin-tool under "http-special" where per each domain/each user one can overrule the global php.ini-statements using the statement "php_admin_flag".

Example:
ErrorLog /var/www/web41/log/error_log.log
php_admin_flag safe_mode off
<Directory "/var/www/web41/html/">
AllowOverride All
</Directory>

"web41" is the user, but one can put in *per domain* the same overruling statements.

Alternatives to the above:
"Configuration settings from php.ini may be overridden by php_flag settings in the server configuration file or local .htaccess files. " from http://www.php.net/manual/en/ref.apache.php

So to overrule the global php.ini on VPS I would prefer the .htaccess-file. Is that possible?
Best regards
View user's profileFind all posts by froehlichSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
if I got you right, you need a way to allow debugging for particular VHOSTs. It can be done with debugger.enabled=Off in the main php.ini and php_admin_value allowing debugger for the VHOSTs where debugger should be enabled. Please check php manual on how to do this http://www.php.net/manual/en/configuration.changes.php

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
several php.ini's for remote debugging
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