

- Configure eclipse for php magento on mac osx how to#
- Configure eclipse for php magento on mac osx mac os x#
- Configure eclipse for php magento on mac osx install#
- Configure eclipse for php magento on mac osx software#
- Configure eclipse for php magento on mac osx code#
So the first thing to do is to open the PHP Servers preference page, and set the Local Web Root to the DocumentRoot The default PHP server is and has no Local Web Root set. Typically you will set the Local Web Root of the default PHP server ( to the DocumentRoot of your local Web server (e.g. The script index.php in the root of your Project with the default PHP Server, PDT will launch a debug session in a browser with the URL If the Local Web Root property of a server is set, you can choose the Server as the base-directory in the New PHP Project dialog (see screenshot below). When you start a debug session, the Base URL is used in conjunction with the path of the script you're debugging to determine the absolute URL to open. The following examples assume you're debugging on a local mashine, not a remote server.ĭebugging using the default DocumentRoot ( PDT provides a preference dialog to configure different PHP servers.Įach server has has a Base URL and a Local Web Root property. Is loaded by your server, use the phpinfo() method and check if you can find an Xdebug configuration section.

Typically you set this value in your php.ini. The most important setting for Xdebug to work with PDT is xdebug.remote_enable = 1. To setup Xdebug as your default debugger in PDT, simply configure the Default Settings in the Debug eclipse preference page of PHP

Configure eclipse for php magento on mac osx how to#
See the Installation section of the Xdebug manual for how to obtain the extension.
Configure eclipse for php magento on mac osx install#
The first step is to install Xdebug and verify that Xdebug is running. PDT has built in support for Xdebug, which allows you to step-debug through your PHP projects. Xdebug is an opensource Debugger and Profiler for PHP.
Configure eclipse for php magento on mac osx code#
Download libjpeg-6b source code and go to its directory, then run the following commands: cp /usr/share/libtool/config.sub. Before install GD you must have libjpeg installed. The last PHP lib required by Magento is GD. Restart Apache web server with apachectl command line tool. Ln -s no-debug-non-zts-20060613/mcrypt.so mcrypt.soĪdd the following line to php.ini. This step is very similar to the previous one, the I’ll skip the explanation and just show the necessary code. If you create a PHP file with the phpinfo() function, you’ll see the PDO MySQL function enabled. vim /etc/php.iniĪdd the following line to the end of file: extension=pdo_mysql.soįinally, restart the web server. Ln -s no-debug-non-zts-20060613/pdo_mysql.so pdo_mysql.so configure -prefix=/usr -with-pdo-mysql=/usr/local/mysql \ cd /ext/pdo_mysqlĬFLAGS='-arch x86_64 -g -Os -pipe -no-cpp-precomp' \ To install the PDO MySQL module on PHP, run the following sequence of commands. We consider as the directory where you have download the PHP source code.

You can check your PHP version with the following command on Terminal: php -v You have to download the source code for your PHP version.
Configure eclipse for php magento on mac osx mac os x#
I’m using Mac OS X 10.5.8 that comes with PHP 5.2.12. Search for extensions_dir and change its value for: extensions_dir = /usr/lib/php/extensions Then edit the extensions’ path on the PHP settings file. You can grab its installer from the official site.Īll steps bellow consider that you are the root of the system, then run the following command: sudo su
Configure eclipse for php magento on mac osx software#
These software usually comes at an additional installation disc, along with your computer. Once installed the PHP module in Apache and properly configured, you must compile some libraries from source.įirst of all, you should make sure that you have Developer Tools installed. A quick Google search brings some good results over this. This version comes with a few libraries installed, then you need to make some customizations.įirst you must enable the PHP module in Apache, there are several tutorials talking about it on the web. I recently formatted my MacBook and I chose to use PHP that comes with the operating system.
