- Eclipse PHPEclipse Drupal Setup – the IBM version – is old. Better to use XAMPP install as it has everything and appears PHPEclipse already assumes its usage although it can be altered to use custom installs of Apache / MySQL / PHP – This article stops short in that it does not tell you how to run from within Eclipse. Maybe that is because it does not instruct on how to install a debugger. ( not sure )
- PHPEclipse Setup – do not check the "install as service" checkbox when installing XAMPP or you will not be able to start Apache from the XAMPP control panel
- Test your XAMPP install by clicking on this link: localhost/xampp/index.php
- Now the plugin should be sucessfully installed. Now we have to make it tie into XAMPP.
- Point XAMPP at your workspace – edit apache httpd.conf file. Default workspace location is \xampp\htdocs – All projects must be defined in the workspace directory so that PHP files can be found by the Apache Web Server. You cannot create PHP projects in other parts of the file system.
- To test the http document index.html dial in http://localhost/index.html
- Set mysql root password and phpMyAdmin password using this http://localhost/security/xamppsecurity.php
- Set up drupal so the install program can be run: Set up the base_url in the setup file
- You should be able to run a version of your install on localhost now: http://localhost/YourWebSiteDirectory … it will default to index.php in that directory. You should run and verify operation
- Next the Eclipse IDE needs to be set up so it can run the index.php script of the drupal install. See this Example for running PHP script … it is the german install but it is similar enough to see what to do. You need to point to the index.php file with the argument should point to the index.php file and include the directory path to it. At this point I observed that I could run and observe the text output of the php file run in the console tab.
SUMMARY: XDebug instructions in the xdebug.txt file packaged with XAMPP reads as follows:
1: Activate XDEBUG in apache\bin\php.ini
2: Comment out ZEND (only one zend_extension_ts is going)
3: Start PHP Scripts with session param ?XDEBUG_SESSION_START=<name>
4: Start xampp\php\debugclient-x.y.z.exe ( x.y.z being the appropriate version shipped with your XAMPP install )
You should have already saved the Xdebug extension DLL file to your PHP extension folder. Record down the full path of it. Now, open up your php.ini file and go down to the [XDebug] section, or create it if it’s not there. Uncomment or add the following lines:
;; Only Zend OR (!) XDebug
The zend_extension_ts should point to location of your Xdebug extension DLL that you downloaded earlier; modify as appropriate. Then, you should disable the Xdebug entry in the list of dynamic extensions. This is confusing, but since we are already setting up Xdebug as a Zend extension, we don’t need another entry. Disable the Xdebug dynamic extension by ensuring the following line is commented out, like below:
There is one last very important step you need to do, particularly if you are running XAMPP. Current versions of Xdebug are incompatible with the Zend optimizer that is enabled by default in XAMPP, so you must disable that if you want Xdebug to work. If you don’t, you’ll notice that Apache will crash every time you try to load it with Xdebug enabled. To disable the Zend optimizer, find the [Zend] section in php.ini and comment out all of the entries under it, like so: (This is an example, there may be more to comment out)
;zend_extension_ts = "D:\XAMPP\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "D:\XAMPP\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
Restart apache because you have modified php.ini. Then use the XAMPP phpinfo() page url ( mine is http://localhost/xampp/phpinfo.php ) to verify XDebug is working. You should see:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans
Debugger Usage – Settings – Running
Email related – delayed till later
- Run the install.php – mine flagged an error that it could not send an email. Otherwise it all installed
- Email fixes: -1- use gmail as your smtp server
Darek Dawicki · July 11, 2009 at 1:23 pm
Czy to je po polskiemu????