<?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>Sébastien Barbieri's blog &#187; ubuntu</title>
	<atom:link href="http://blog.sbw.be/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sbw.be</link>
	<description>My life, my work, my projects</description>
	<lastBuildDate>Sat, 24 Dec 2011 00:12:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>installing xdebug on ubuntu with Zend Server CE (not solved yet)</title>
		<link>http://blog.sbw.be/2010/11/12/installing-xdebug-on-ubuntu/</link>
		<comments>http://blog.sbw.be/2010/11/12/installing-xdebug-on-ubuntu/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 10:16:09 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[freelance]]></category>
		<category><![CDATA[truc de g33k]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xdebug]]></category>
		<category><![CDATA[zend server ce]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/?p=439</guid>
		<description><![CDATA[You need to sudo user@laptop:~$ sudo bash 1st be sre to have the pecl, pear available as root in command line root@laptop:~# PATH=$PATH:/usr/local/zend/bin trying to install root@laptop:~# pecl install xdebug downloading xdebug-2.1.0.tgz ... Starting to download xdebug-2.1.0.tgz (301,354 bytes) .....................................................done: 301,354 bytes 66 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend [...]]]></description>
			<content:encoded><![CDATA[<p>You need to sudo</p>
<p><code>user@laptop:~$ sudo bash</code></p>
<p>1st be sre to have the pecl,  pear available as root in command line</p>
<p><code>root@laptop:~# PATH=$PATH:/usr/local/zend/bin</code></p>
<p>trying to install</p>
<p><code>root@laptop:~# pecl install xdebug<br />
downloading xdebug-2.1.0.tgz ...<br />
Starting to download xdebug-2.1.0.tgz (301,354 bytes)<br />
.....................................................done: 301,354 bytes<br />
66 source files, building<br />
running: phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
Cannot find autoconf. Please check your autoconf installation and the<br />
$PHP_AUTOCONF environment variable. Then, rerun this script.</p>
<p>ERROR: `phpize' failed<br />
</code><br />
Argl it seems to be failing&#8230;</p>
<p>looks like autoconf is missing</p>
<p><code>root@laptop:~# autoconf<br />
The program 'autoconf' can be found in the following packages:<br />
 * autoconf<br />
 * autoconf2.13<br />
Try: apt-get install &lt;selected package&gt;<br />
</code></p>
<p>ok let&#8217;s add it:</p>
<p><code><br />
root@laptop:~# apt-get install autoconf<br />
</code></p>
<p>and now let&#8217;s try again</p>
<p><code><br />
root@laptop:~# pecl install xdebug<br />
downloading xdebug-2.1.0.tgz ...<br />
Starting to download xdebug-2.1.0.tgz (301,354 bytes)<br />
.............................................................done: 301,354 bytes<br />
66 source files, building<br />
running: phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
configure.in:3: warning: prefer named diversions<br />
configure.in:3: warning: prefer named diversions<br />
building in /var/tmp/pear-build-root/xdebug-2.1.0<br />
running: /tmp/pear/temp/xdebug/configure<br />
checking for grep that handles long lines and -e... /bin/grep<br />
checking for egrep... /bin/grep -E<br />
checking for a sed that does not truncate output... /bin/sed<br />
checking for cc... cc<br />
...<br />
Build process completed successfully<br />
Installing '/usr/local/zend/lib/php_extensions/xdebug.so'<br />
install ok: channel://pecl.php.net/xdebug-2.1.0<br />
configuration option "php_ini" is not set to php.ini location<br />
You should add "extension=xdebug.so" to php.ini<br />
</code></p>
<p>Great!</p>
<p>Don&#8217;t forget to add the librairy in the php.ini</p>
<p>create the xdebug.ini in the ext.d directory and the symlink in the conf.d directory</p>
<p><code><br />
root@laptop:/usr/local/zend/etc/ext.d# more xdebug.ini<br />
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so<br />
; You may put any extension-specific directives here</p>
<p>root@laptop:/usr/local/zend/etc/conf.d# ln -s ../ext.d/xdebug.ini xdebug.ini<br />
</code></p>
<p>Now let&#8217;s try PHP:</p>
<p><code>scips@laptop:~$ php<br />
Segmentation fault<br />
</code></p>
<p>Looks like I need to investigate deeper&#8230;</p>
<p>Ok problem solved:</p>
<blockquote><p><strong>Instructions</strong></p>
<p><em><strong>Warning: You seem to be using Zend Server, which is known to cause issues with Xdebug. It might work, but you&#8217;re on your own.</strong></em></p>
<p>Download xdebug-2.1.0.tgz<br />
Unpack the downloaded file with tar -xvzf xdebug-2.1.0.tgz<br />
Run: cd xdebug-2.1.0<br />
Run: phpize</p>
<p>As part of its output it should show:</p>
<p>Configuring for:<br />
&#8230;<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.</p>
<p>Run: ./configure<br />
Run: make<br />
Run: cp modules/xdebug.so /usr/local/zend/lib/php_extensions<br />
Open /usr/local/zend/etc/conf.d/debugger.ini and put a ; in front of the line that says zend_extension_manager.dir.debugger= so that it says ;zend_extension_manager.dir.debugger=<br />
Edit /usr/local/zend/etc/php.ini and add at the begining of the file the line<br />
zend_extension = /usr/local/zend/lib/php_extensions/xdebug.so
</p></blockquote>
<p>I did just paste in has requested my php -i output on <a href="http://xdebug.org/find-binary.php">http://xdebug.org/find-binary.php</a> then compiled and everything ran fine.</p>
<p>The problem is that you have to use one or the other not the both at the same time&#8230; still not a real option for me. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2010/11/12/installing-xdebug-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Server CE &#124; PDO &#124; ubuntu 9.10 &#124; /tmp/mysql.sock</title>
		<link>http://blog.sbw.be/2009/12/11/zend-ce-pdo-ubuntu-mysql/</link>
		<comments>http://blog.sbw.be/2009/12/11/zend-ce-pdo-ubuntu-mysql/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 14:56:50 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/?p=339</guid>
		<description><![CDATA[You are using PDO and Zend Server CE and Ubuntu 9.10 You have a little problem? This is The solution (thanks to @DwebConsulting). sudo service mysql stop sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak sudo cp /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak sudo vim /etc/mysql/my.cnf replace every line starting with &#8220;socket =&#8221; by &#8220;socket = /tmp/mysql.sock&#8221; sudo vim /etc/mysql/debian.cnf replace every line [...]]]></description>
			<content:encoded><![CDATA[<p>You are using PDO and Zend Server CE and Ubuntu 9.10</p>
<p>You have a little problem?</p>
<p>This is The solution (thanks to <a href="http://twitter.com/DwebConsulting">@DwebConsulting</a>).</p>
<ol>
<li>sudo service mysql stop</li>
<li>sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak</li>
<li>sudo cp /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak</li>
<li>sudo vim /etc/mysql/my.cnf
<ol>
<li>replace every line starting with &#8220;socket =&#8221; by &#8220;socket = /tmp/mysql.sock&#8221; </li>
</ol>
</li>
<li>sudo vim /etc/mysql/debian.cnf
<ol>
<li>replace every line starting with &#8220;socket =&#8221; by &#8220;socket = /tmp/mysql.sock&#8221; </li>
</ol>
</li>
<li>sudo service mysql start</li>
</ol>
<p>in the Zend Server CE admin (http://localhost:10081/ZendServer/) > Server Setup > Directives ><br />
Search for default_socket and in mysql and mysqli remove the content of the textarea (empty value => default value used instead)<br />
Then click <strong>Save Changes</strong> and click <strong>Restart PHP</strong></p>
<p>It will work until Zend Server CE bug is fixed (release 5.0).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2009/12/11/zend-ce-pdo-ubuntu-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ubuntu on: ATI Mobility Radeon HD 3650 &#8211; hp EliteBook 8530p</title>
		<link>http://blog.sbw.be/2009/06/18/ubuntu-ati-hd-3650-elitebook/</link>
		<comments>http://blog.sbw.be/2009/06/18/ubuntu-ati-hd-3650-elitebook/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 06:45:47 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[truc de g33k]]></category>
		<category><![CDATA[8530p]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[elitebook]]></category>
		<category><![CDATA[hd 3650]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/?p=273</guid>
		<description><![CDATA[To install ubuntu on this PC you need to desactivate the FAN in the BIOS menu Deactivate in the BIOS: Fan Always on while on AC Power desactivate acpi for the ATI card System > Administration > Hardware Drivers > ATI/AMD propietary FGLRX graphic driver: Install but don&#8217;t reboot now !!! In a terminal: sudo [...]]]></description>
			<content:encoded><![CDATA[<p>To install ubuntu on this PC you need to</p>
<ol>
<li> desactivate the FAN in the BIOS menu
<ul>
<li>Deactivate in the BIOS: Fan Always on while on AC Power</li>
</ul>
</li>
<li>desactivate acpi for the ATI card
<ul>
<li>System > Administration > Hardware Drivers > ATI/AMD propietary FGLRX graphic driver: <strong>Install</strong> but don&#8217;t reboot now !!!</li>
<li>In a terminal: <strong>sudo aticonfig &#8211;initial</strong></li>
<li>In a terminal: <strong>sudo aticonfig &#8211;acpi-services=off</strong></li>
<li>Now you may reboot, in the terminal: <strong>sudo reboot</strong></li>
</ul>
</li>
<p>sources:</p>
<ul>
<li>
<a href="http://gurudelleccelsopicco.wordpress.com/2009/02/24/ubuntu-810-on-hp-elitebook-8530p/trackback/">http://gurudelleccelsopicco.wordpress.com/2009/02/24/ubuntu-810-on-hp-elitebook-8530p/trackback/</a>
</li>
<li>
<a href="http://www.phoronix.com/forums/showthread.php?t=15215">http://www.phoronix.com/forums/showthread.php?t=15215</a>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2009/06/18/ubuntu-ati-hd-3650-elitebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

