CodeLobster IDE http://codelobster.com/forum/ |
|
How to enable debugging of very simple php page http://codelobster.com/forum/viewtopic.php?f=3&t=1114 |
Page 1 of 1 |
Author: | raca [ Tue Jun 16, 2009 10:00 am ] |
Post subject: | How to enable debugging of very simple php page |
First question: How to enable debugging of very simple php page? I read all topics regarding starting a debugging a page. I have www.mybusiness.com mapped to 127.0.0.1 in my hosts file. I have Windows Vista OS. I am new to php development. I come from asp, asp.net and IIS world. I managed to install Apache 2.2 and to create 2 websites that run on different port on my machine with 1 static IP address that I pay for through my ISP. I am trying to debug a very simple php script helloworld.php that runs OK as http://www.mybusiness.com:2091/helloworld.php $hello = "Hello world, I love evil kittens!"; echo ($hello); There is no way I can Step Into (the button is disabled) or when I try to debug a page using either F5 or F8, IE 8 opens the page with no debugger attached. Please help. I am using Codelobster 3.1.3 trial. My second question is: Can I use Smarty feature to work with x-cart php application? Will it be useful for designing pages including *.tpl files. Thanks, Rad I checked my php.ini for the presence of debugger extensions. [CLDbg] extension=php_cl_dbg_5_2.dll clport=6000 My preferences for debugger settings sections are: Virtual folder: E:\WebSites\PHP\X-Cart Pro v4.1.9\ Virtual host URL: http://www.mybusiness.com:2091/ Path to php ini: C:\php\ Web Server: Apache2.2 Php version: 5.2.9 Port: 6000 This is partial listing of my Httpd.conf file: DocumentRoot "D:/WebSites/PHP" <IfModule mime_module> TypesConfig conf/mime.types AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" </IfModule> <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> <Directory "C:/php"> AllowOverride None Options None Order allow,deny Allow from all </Directory> Listen 2081 Listen 2091 NameVirtualHost www.mybusiness.com:2081 NameVirtualHost www.mybusiness.com:2091 <VirtualHost *:2081> ServerName www.mybusiness.com:2081 DocumentRoot "D:/WebSites/PHP/xcart" </VirtualHost> <VirtualHost *:2091> ServerName www.mybusiness.com:2091 DocumentRoot "D:/WebSites/PHP/X-Cart Pro v4.1.9" </VirtualHost> |
Author: | Admin [ Tue Jun 16, 2009 3:27 pm ] |
Post subject: | |
Hi. 1) You should set virtual folder D:/WebSites/PHP/X-Cart Pro v4.1.9 for www.mybusiness.com:2091 host and virtual folder D:/WebSites/PHP/xcart for www.mybusiness.com:2081 Path to php.ini file you may see by the following command: <?php echo(phpinfo()); ?> We suggest you to create several projects with this different preferences. Also, how have you installed PHP? 2) Please, send us the sample of x-cart php application. We will check our debugger with it. Regards, Codelobster Team. |
Author: | raca [ Tue Jun 16, 2009 11:50 pm ] |
Post subject: | |
1. Actually I made a mistake when I entered E:\ instead of D:\ in my post. I believe my settings are correct. I installed PHP by running php-5.2.9-2-nts-win32-installer.msi installer package. Basically I can run PHP applications with either IIS7 on Vista and Apache 2.2 (I run websites on different ports) I followed this instructions to run PHP on Apache: http://www.thesitewizard.com/php/instal ... dows.shtml I used option b: b.Running PHP 5 as a CGI Binary I will send my phpinfo settings in a separate email. Thanks, Rad |
Author: | Admin [ Wed Jun 17, 2009 5:33 pm ] |
Post subject: | |
Hi. You use Non-thread-safe PHP version. But now we support only Thread-safe. We should do a research for supporting it. Regards, Codelobster Team. |
Author: | raca [ Sat Jun 20, 2009 1:53 am ] |
Post subject: | |
Should I then use: PHP 5.2.10 installer (php-5.2.10-win32-installer.msi) or php-5.2.10-Win32.zip instead of PHP 5.2.10 Non-thread-safe installer (php-5.2.9-2-nts-win32-installer.msi) (which I think I used when installing PHP). Should I still used method Should I run PHP as Apache Module (option a) or as a CGI Binary (option b in above link)? Can I have both version of PHP running on Apache (thread safe and non-thread safe versions)? Do you have some instrustions on properly installing PHP and Apache to enable PHP debugging with Codelobster IDE. Thanks, Rad |
Author: | Admin [ Mon Jun 22, 2009 1:19 pm ] |
Post subject: | |
Hi. 1) Yes, you should use PHP 5.2.10 installer (php-5.2.10-win32-installer.msi) or php-5.2.10-Win32.zip 2) It doesn't matter what option you select: Apache Module or as a CGI Binary. 3) Sure, you may install both versions, but you need to write PHP for using in your Apache server, and it means that it can use only one version. 4) Unfortunately, now we have no good documentation. You may search our forum or send your questions to support directly by email. Regards, Codelobster Team. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |