<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My Science Is Better &#187; zend server</title>
	<atom:link href="http://www.myscienceisbetter.info/tag/zend-server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.myscienceisbetter.info</link>
	<description></description>
	<lastBuildDate>Sun, 18 Dec 2011 22:26:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Setting up Xdebug with Zend Server on Linux</title>
		<link>http://www.myscienceisbetter.info/setting-up-xdebug-with-zend-server-on-linux.html</link>
		<comments>http://www.myscienceisbetter.info/setting-up-xdebug-with-zend-server-on-linux.html#comments</comments>
		<pubDate>Tue, 02 Feb 2010 16:06:20 +0000</pubDate>
		<dc:creator>Romeo Adrian Cioaba</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[xdebug]]></category>
		<category><![CDATA[zend server]]></category>

		<guid isPermaLink="false">http://www.myscienceisbetter.info/?p=134</guid>
		<description><![CDATA[Since our team work on different operating system, we switched for custom apache/php/mysql installs to Zend Server. Before everyone was using something different (the guys on windows were using XAMP, WAMP, on ubuntu i was using the packages in the repo and on the server we're using apache from cPanel) and applications were behaving a [...]]]></description>
			<content:encoded><![CDATA[<p>Since our team work on different operating system, we switched for custom apache/php/mysql installs to Zend Server. Before everyone was using something different (the guys on windows were using XAMP, WAMP, on ubuntu i was using the packages in the repo and on the server we're using apache from cPanel) and applications were behaving a differently according to the default settings for all those platforms.</p>
<p>So we decided to install Zend Server  CE as it has more or less the same settings over different platforms.  I've had some bad experiences installing ZSCE on a system that already had apache installed via apt, but after a clear install of Karmic, ZF was running like a charm. The install process described in the <a href="http://files.zend.com/help/Zend-Server-Community-Edition/deb_installation.htm">online documentation</a> works great.</p>
<p>After install is done, make sure to symlink php, pecl, pear and phpize so you can access them system  wide:</p>
<pre class="brush: bash; title: ; notranslate">
sudo ln -s /usr/local/zend/bin/zendctl.sh /usr/sbin/zendctl
sudo ln -s /usr/local/zend/bin/pear /usr/sbin/pear
sudo ln -s /usr/local/zend/bin/pecl /usr/sbin/pecl
sudo ln -s /usr/local/zend/bin/php /usr/sbin/php
sudo ln -s /usr/local/zend/bin/phpize /usr/sbin/phpize
</pre>
<p>At this point you should be able to run php -i in terminal and the phpinfo will be displayed.</p>
<p>Next step is to install xdebug via pecl by running: </p>
<pre class="brush: bash; title: ; notranslate">sudo pecl install xdebug</pre>
<p>If all went well you should have the xdebug library located at /usr/local/zend/lib/php_extensions/xdebug.so . If you don't have it there, then something went wrong and you should NOT continue reading. This issue must be sorted first.</p>
<p>Next you need to comment out the 1st line of /usr/local/zend/etc/conf.d/debugger.ini so it looks like this:</p>
<pre class="brush: bash; title: ; notranslate">
#open editor
gksu gedit /usr/local/zend/etc/conf.d/debugger.ini

# this is how the 1st two lines should look afterwards
; register the extension to be loaded by Zend Extension Manager
;zend_extension_manager.dir.debugger=/usr/local/zend/lib/debugger
</pre>
<p>Xdebug needs to be loaded before Zend Extension Manager, that's why you need to add the following line just on top of the /usr/local/zend/etc/ext.d/extension_manager.ini</p>
<pre class="brush: bash; title: ; notranslate">
#open the editor
gksu gedit /usr/local/zend/etc/ext.d/extension_manager.ini

#add this line on 1st line:
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so

#save the file
</pre>
<p>Restart zend server by running:</p>
<pre class="brush: bash; title: ; notranslate">
sudo /etc/init.d/zend-server restart
</pre>
<p>You can check if xdebug is working like so:</p>
<pre class="brush: bash; title: ; notranslate">
php -i |grep xdebug
</pre>
<p>The output should be something similar to this:</p>
<pre class="brush: bash; title: ; notranslate">
xdebug
xdebug support =&gt; enabled
xdebug.auto_trace =&gt; Off =&gt; Off
xdebug.collect_includes =&gt; On =&gt; On
xdebug.collect_params =&gt; 0 =&gt; 0
xdebug.collect_return =&gt; Off =&gt; Off
xdebug.collect_vars =&gt; Off =&gt; Off
xdebug.default_enable =&gt; On =&gt; On
xdebug.dump.COOKIE =&gt; no value =&gt; no value
xdebug.dump.ENV =&gt; no value =&gt; no value
xdebug.dump.FILES =&gt; no value =&gt; no value
xdebug.dump.GET =&gt; no value =&gt; no value
xdebug.dump.POST =&gt; no value =&gt; no value
xdebug.dump.REQUEST =&gt; no value =&gt; no value
xdebug.dump.SERVER =&gt; no value =&gt; no value
xdebug.dump.SESSION =&gt; no value =&gt; no value
xdebug.dump_globals =&gt; On =&gt; On
xdebug.dump_once =&gt; On =&gt; On
xdebug.dump_undefined =&gt; Off =&gt; Off
xdebug.extended_info =&gt; On =&gt; On
xdebug.idekey =&gt; mimir =&gt; no value
xdebug.manual_url =&gt; http://www.php.net =&gt; http://www.php.net
xdebug.max_nesting_level =&gt; 100 =&gt; 100
xdebug.profiler_aggregate =&gt; Off =&gt; Off
xdebug.profiler_append =&gt; Off =&gt; Off
xdebug.profiler_enable =&gt; Off =&gt; Off
xdebug.profiler_enable_trigger =&gt; Off =&gt; Off
xdebug.profiler_output_dir =&gt; /tmp =&gt; /tmp
xdebug.profiler_output_name =&gt; cachegrind.out.%p =&gt; cachegrind.out.%p
xdebug.remote_autostart =&gt; Off =&gt; Off
xdebug.remote_enable =&gt; Off =&gt; Off
xdebug.remote_handler =&gt; dbgp =&gt; dbgp
xdebug.remote_host =&gt; localhost =&gt; localhost
xdebug.remote_log =&gt; no value =&gt; no value
xdebug.remote_mode =&gt; req =&gt; req
xdebug.remote_port =&gt; 9000 =&gt; 9000
xdebug.show_exception_trace =&gt; Off =&gt; Off
xdebug.show_local_vars =&gt; Off =&gt; Off
xdebug.show_mem_delta =&gt; Off =&gt; Off
xdebug.trace_format =&gt; 0 =&gt; 0
xdebug.trace_options =&gt; 0 =&gt; 0
xdebug.trace_output_dir =&gt; /tmp =&gt; /tmp
xdebug.trace_output_name =&gt; trace.%c =&gt; trace.%c
xdebug.var_display_max_children =&gt; 128 =&gt; 128
xdebug.var_display_max_data =&gt; 512 =&gt; 512
xdebug.var_display_max_depth =&gt; 3 =&gt; 3
</pre>
<p>Note the xdebug support => enabled on line 2.</p>
<p>Hope that helps <img src='http://www.myscienceisbetter.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.myscienceisbetter.info/setting-up-xdebug-with-zend-server-on-linux.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

