<?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>HowToBSD</title>
	<atom:link href="http://howtobsd.com/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>subsystem request for sftp</title>
		<link>http://howtobsd.com/solutions/sftp_reques.html</link>
		<comments>http://howtobsd.com/solutions/sftp_reques.html#comments</comments>
		<pubDate>Wed, 28 Nov 2012 14:41:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=537</guid>
		<description><![CDATA[When I try to connect by FileZilla to server I get error: Nov 28 08:25:51 server01 sshd[19577]: Accepted password for root from 77.120.137.175 port 55070 ssh2 Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp Nov 28 08:25:51 server01 sshd[19577]: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory Nov 28 08:25:51 server01 sshd[19577]: [...]]]></description>
				<content:encoded><![CDATA[<p>When I try to connect by FileZilla to server I get error:<br />
<code>Nov 28 08:25:51 server01 sshd[19577]: Accepted password for root from 77.120.137.175 port 55070 ssh2<br />
Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp<br />
Nov 28 08:25:51 server01 sshd[19577]: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory<br />
Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp failed, subsystem not found</code><br />
But it is fine to connect via usual ssh connection.</p>
<p>This is easy to fix by creating symbolic link to correct place.<br />
Please find this by locate command :<br />
<code><br />
root@server01 ~]# locate sftp-server<br />
/usr/libexec/openssh/sftp-server<br />
</code></p>
<p>and them make link:<br />
<code><br />
ln -s /usr/libexec/openssh/sftp-server /usr/libexec/sftp-server<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/sftp_reques.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1030 &#8211; Got error -1 from storage engine</title>
		<link>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html</link>
		<comments>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html#comments</comments>
		<pubDate>Sun, 13 Nov 2011 23:39:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=524</guid>
		<description><![CDATA[I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with [...]]]></description>
				<content:encoded><![CDATA[<p>I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with another table (`item`).<br />
This is error shown by phpmyadmin:<br />
<code>Error<br />
SQL query:<br />
DELETE FROM `fancypets`.`groups` WHERE `groups`.`group_id` =1<br />
MySQL said: Documentation<br />
#1030 - Got error -1 from storage engine </code></p>
<p>this error a got through mysql command line:</p>
<p><code>mysql> delete from groups where `group_id`=4;<br />
ERROR 1030 (HY000): Got error -1 from storage engine</code></p>
<p>It is mysql&#8217;s error log:</p>
<p><code>Cannot delete/update rows with cascading foreign key constraints that exceed max depth of 250</code><br />
If you use 5.1.51- Just update your mysql-server version.<br />
This is bug of mysql-server-5.1.51 &#8211; after:<br />
<code>#portupgrade mysql-server</code></p>
<p>problem disappeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation Redmine on FreeBSD</title>
		<link>http://howtobsd.com/software/redmine-on-freebsd.html</link>
		<comments>http://howtobsd.com/software/redmine-on-freebsd.html#comments</comments>
		<pubDate>Sat, 22 Oct 2011 15:32:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=500</guid>
		<description><![CDATA[Perhaps you know redmine ported in FreeBSD and first of all I tried to install it: #cd /usr/ports/www/redmine ===> redmine-1.2.1_1 is marked as broken: Does not work with RubyGems 1.8. *** Error code 1 Stop in /usr/ports/www/redmine. Sure. You wouldn&#8217;t read this post if process had been done successfully Maintainer of this port marked this [...]]]></description>
				<content:encoded><![CDATA[<p>Perhaps you know redmine ported in FreeBSD and first of all I tried to install it:</p>
<p><code>#cd /usr/ports/www/redmine<br />
===>  redmine-1.2.1_1 is marked as broken: Does not work with RubyGems 1.8.<br />
*** Error code 1</p>
<p>Stop in /usr/ports/www/redmine.</code></p>
<p>Sure. You wouldn&#8217;t read this post if process had been done successfully <img src='http://howtobsd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Maintainer of this port marked this port as broken because of bug in Gem 1.8.</p>
<p>As result we have to install it manually. Hopefully we have official <a href="http://www.redmine.org/projects/redmine/wiki/RedmineInstall">installation guide</a>.</p>
<p>I came across with some problems during installation. So, this post will be a guide adapted for FreeBSD with some errors and solutions.<br />
Hope it will be useful. It seems as long process, but really easy. Let&#8217;s start.</p>
<p><strong>1) Get Redmine (I used svn for it):</strong></p>
<p><code>#svn co http://redmine.rubyforge.org/svn/branches/1.2-stable redmine-1.2</code></p>
<p><strong>2) Create database:</strong><br />
<code>mysql -uuser -ppasword<br />
mysql> create database redmine character set utf8;<br />
mysql> create user 'redmine'@'localhost' identified by 'passforuser';<br />
mysql> grant all privileges on redmine.* to 'redmine'@'localhost';<br />
mysql>exit;</code><br />
<strong><br />
3) Database configuration (copy from config/database.yml.example). config/database.yml:</strong><br />
<code>production:<br />
  adapter: mysql<br />
  database: redmine<br />
  host: localhost<br />
  username: redmine<br />
  password: passforuser</code></p>
<p><strong>4)Generate a session store secret.</strong><br />
<code>#rake generate_session_store<br />
Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`</code></p>
<p>At this place started problems. Don&#8217;t worry. Just do thing redmine suggests. </p>
<p><code>#gem install -v=0.4.2 i18n<br />
Fetching: i18n-0.4.2.gem (100%)<br />
Successfully installed i18n-0.4.2<br />
1 gem installed<br />
Installing ri documentation for i18n-0.4.2...<br />
Installing RDoc documentation for i18n-0.4.2...</code></p>
<p>trying again:</p>
<p><code>#rake generate_session_store<br />
Missing the Rails 2.3.11 gem. Please `gem install -v=2.3.11 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.</code></p>
<p>I tried update  RAILS_GEM_VERSION (on 3.0.5) but Redmine doesn&#8217;t work with 3.0.5 yet, so:</p>
<p><code># gem install -v=2.3.11 rails</code></p>
<p>then again:<br />
<code># rake generate_session_store<br />
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)<br />
WARNING: 'task :t, arg, :needs => [deps]' is deprecated.  Please use 'task :t, [args] => [deps]' instead.<br />
    at /vol1/www/www.slim/httdocs/redmine/redmine-1.2/lib/tasks/email.rake:170</code></p>
<p>Googled the problem and found out it connected with rake version (need to downgrade):</p>
<p><code># gem install -v=0.8.7 rake<br />
Fetching: rake-0.8.7.gem (100%)<br />
Successfully installed rake-0.8.7<br />
1 gem installed<br />
Installing ri documentation for rake-0.8.7...<br />
Installing RDoc documentation for rake-0.8.7...</code></p>
<p><code># gem uninstall -v=0.9.2 rake<br />
Successfully uninstalled rake-0.9.2</code></p>
<p>finally it done:<br />
<code># rake generate_session_store<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)</code></p>
<p><strong>5) Database migration:</strong><br />
<code># rake db:migrate RAILS_ENV=production<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)<br />
rake aborted!<br />
syntax error on line 8, col 2: `  encoding: utf8'</p>
<p>(See full trace by running task with --trace)</code></p>
<p>Problem was &#8211; I missed space in config/database.yml before the password.</p>
<p><code># rake db:migrate RAILS_ENV=production<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)<br />
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.<br />
rake aborted!<br />
no such file to load -- mysql</code></p>
<p>installing gem mysql:<br />
<code>howtobsd# gem install mysql</code></p>
<p>and then:<br />
<code>howtobsd# rake db:migrate RAILS_ENV=production</code></p>
<p>db migration done!</p>
<p><strong>6) Load default data (recommended):</strong><br />
<code># rake redmine:load_default_data  RAILS_ENV=production<br />
(in /vol1/www/www.slim/httdocs/redmine/redmine-1.2)</p>
<p>Select language: bg, bs, ca, cs, da, de, el, en, en-GB, es, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en]</code></p>
<p>Choose language and moving ahead. </p>
<p><strong>7)According to manual set permissions (create required folders if it doesn&#8217;t exist):</strong></p>
<p><code>chown -R username:username files log tmp public/plugin_assets<br />
chmod -R 755 files log tmp public/plugin_assets</code></p>
<p><strong>8) Test installation:</strong><br />
<code>#ruby script/server webrick -e production<br />
=> Booting WEBrick<br />
=> Rails 2.3.11 application starting on http://0.0.0.0:3000</p>
<p>now you can enter in your browser http://localhost:3000</code></p>
<p>    *  login: admin<br />
    * password: admin</p>
<p>Great! It is works!</p>
<p><strong>9) We only need to configure Apache for redmine.</strong><br />
It is described in my article <a href="software/installing-ruby-on-rails-on-freebsd.html"> &#8220;Installing Ruby on Rails on FreeBSD&#8221;</a> with differences in httpd.conf for new versions.<br />
Now for me it:<br />
<code>LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so<br />
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5<br />
PassengerRuby /usr/local/bin/ruby18</code></p>
<p><strong>10)My example of virtual host for redmine:</strong><br />
<code>&lt;VirtualHost *:80&gt;<br />
        ServerName my-projects.com<br />
        DocumentRoot /vol1/www/www.slim/httdocs/redmine/redmine-1.2/public/<br />
        RailsEnv production<br />
        ErrorLog /vol1/www/www.slim/httdocs/redmine/redmine-1.2/log/httpd.log<br />
&lt;/VirtualHost&gt;</code></p>
<p>That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/redmine-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HTC Wildfire freebsd</title>
		<link>http://howtobsd.com/hardware/htc-wildfire-freebsd.html</link>
		<comments>http://howtobsd.com/hardware/htc-wildfire-freebsd.html#comments</comments>
		<pubDate>Sun, 16 Oct 2011 15:39:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=494</guid>
		<description><![CDATA[This post describes how to mount htc wildfire flash disk on FreeBSD. Actually it is not especially trick for HTC Wildfire and solution will be the same for mounting another flash disks which are not mounting automatically. Take a look at dmesg: howtobsd# dmesg -a &#124; tail ..... da0 at umass-sim0 bus 0 scbus0 target [...]]]></description>
				<content:encoded><![CDATA[<p>This post describes how to mount htc wildfire flash disk on FreeBSD.<br />
Actually it is not especially trick for HTC Wildfire and solution will be the same for mounting another flash disks which are not mounting automatically.<br />
Take a look at dmesg:<br />
<code>howtobsd# dmesg -a | tail<br />
.....<br />
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0<br />
da0: <HTC Android Phone 0100> Removable Direct Access SCSI-2 device<br />
da0: 40.000MB/s transfers<br />
da0: Attempt to query device size failed: NOT READY, Medium not present</code></p>
<p>make next command to find out name of partition of our device (I hope you will try to mount in exist directory <img src='http://howtobsd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ):<br />
<code>howtobsd#mount /dev/da0 /mnt/flash<br />
mount: /dev/da0 : Invalid argument</code></p>
<p>Ignore this message and looking at /dev directory &#8211; there should appear new device:<br />
<code>howtobsd#ls -l /dev/da*<br />
crw-r-----  1 root  operator    0, 143 16 окт 17:57 /dev/da0<br />
crw-r-----  1 root  operator    0, 144 16 окт 18:29 /dev/da0s1</code></p>
<p>And now we are ready to mount it:</p>
<p><code>mount_msdosfs /dev/da0s1 /mnt/flash/  </code></p>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/hardware/htc-wildfire-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount iso image in FreeBSD</title>
		<link>http://howtobsd.com/software/how-to-mount-iso-image-in-freebsd.html</link>
		<comments>http://howtobsd.com/software/how-to-mount-iso-image-in-freebsd.html#comments</comments>
		<pubDate>Mon, 03 Oct 2011 12:19:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=487</guid>
		<description><![CDATA[It is very actual question &#8220;mount iso in freebsd&#8220;. However mounting of iso is very easy. Let&#8217;s make sure it: Firstly we need to make virtual device for our iso image (use mdconfig for it): howtobsd# mdconfig -a -f /path_to_iso/Mac_OS_X.iso md0 md0 (command return) &#8211; it is name of virtual device (should appear in /dev/md0). [...]]]></description>
				<content:encoded><![CDATA[<p>It is very actual question &#8220;<strong>mount iso in freebsd</strong>&#8220;. However mounting of iso is very easy. Let&#8217;s make sure it:</p>
<p>Firstly we need to make virtual device for our iso image (use mdconfig for it):<br />
<code>howtobsd# mdconfig -a -f /path_to_iso/Mac_OS_X.iso<br />
md0</code></p>
<p>md0 (command return) &#8211; it is name of virtual device (should appear in /dev/md0).<br />
you can check if it appeared in /dev:<br />
<code>howtobsd# ls /dev/ | grep md0<br />
md0</code></p>
<p>And now we just need to mount virtual device:</p>
<p><code>howtobsd# mount_cd9660 /dev/md0 /cdrom</code></p>
<p>That&#8217;s all, your iso image available in /cdrom directory.</p>
<p>If you need to unmount and delete virtual device, do following commands:<br />
<code>howtobsd# umount  /cdrom<br />
mdconfig -d -u md0</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/how-to-mount-iso-image-in-freebsd.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>E575: viminfo: Illegal starting char in line:  ^E14</title>
		<link>http://howtobsd.com/solutions/e575-viminfo-illegal-starting-char-in-line-e14.html</link>
		<comments>http://howtobsd.com/solutions/e575-viminfo-illegal-starting-char-in-line-e14.html#comments</comments>
		<pubDate>Sun, 02 Oct 2011 21:31:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=484</guid>
		<description><![CDATA[This error appearing when you start vim (or try to open\save file using vim editor): E575: viminfo: Illegal starting char in line: ^E14 Solution is: delete ifrom the home directory file ~/.viminfo: rm ~/.viminfo Do not worry &#8211; it is just file of history and can be deleted.]]></description>
				<content:encoded><![CDATA[<p>This error appearing when you start vim (or try to open\save file using vim editor):<br />
<code>E575: viminfo: Illegal starting char in line:  ^E14</code></p>
<p>Solution is:  delete ifrom the home directory file  ~/.viminfo:</p>
<p><code>rm ~/.viminfo</code></p>
<p>Do not worry &#8211; it is just file of history and can be deleted.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/e575-viminfo-illegal-starting-char-in-line-e14.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch convert files using iconv</title>
		<link>http://howtobsd.com/development/batch-convert-files-using-iconv.html</link>
		<comments>http://howtobsd.com/development/batch-convert-files-using-iconv.html#comments</comments>
		<pubDate>Sat, 10 Sep 2011 20:47:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=429</guid>
		<description><![CDATA[Converting file from KOI8-R to utf-8: #iconv -f KOI8-R -t utf-8 originalfile > newfile You can change KOIR-8 and utf-8 to yours. Batch converting files from folder: #mkdir new; for a in $(find . -name "*.php"); do iconv -f KOI8-R -t utf-8 &#60;"$a" &#62;new/"$a" ; done It will make &#8220;new&#8221; directory with converted files.]]></description>
				<content:encoded><![CDATA[<p>Converting  file from KOI8-R to utf-8:<br />
<code>#iconv -f KOI8-R -t utf-8 originalfile > newfile</code><br />
You can change KOIR-8 and utf-8 to yours. </p>
<p><strong>Batch converting files from folder</strong>:</p>
<p><code>#mkdir new; for a in $(find . -name "*.php");  do iconv  -f KOI8-R -t utf-8 &lt;"$a" &gt;new/"$a" ; done</code></p>
<p>It will make &#8220;new&#8221; directory with converted files.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/batch-convert-files-using-iconv.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysqldump on FreeBSD</title>
		<link>http://howtobsd.com/software/mysqldump-on-freebsd.html</link>
		<comments>http://howtobsd.com/software/mysqldump-on-freebsd.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:32:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=400</guid>
		<description><![CDATA[Just a few notes about mysqldump. Create dump of mysql base: # mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql or # mysqldump --user=username --password=password DBNAME > filename.sql if you need to make dump of a few databases you can use parametr -B (or –databases): mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2 > filename.sql Make dump of the [...]]]></description>
				<content:encoded><![CDATA[<p>Just a few notes about mysqldump. </p>
<p>Create dump of mysql base:</p>
<p><code># mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql</code></p>
<p>or<br />
<code># mysqldump --user=username --password=password DBNAME > filename.sql</code> </p>
<p>if you need to make dump of a few databases you can use parametr -B (or –databases):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2  > filename.sql</code></p>
<p>Make dump of the all Databases on host:<br />
<code>mysqldump -uDBUSER -pPASSWORD -A  > filename.sql</code></p>
<p>If you need only dump structure of database (without data):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD --no-data DBNAME > filename.sql</code></p>
<p>If you want to make limited by records mysqldump, next command especially for you (It was really cool command when I need dump and then move test copy of project with enormous mysql database):</p>
<p><code> mysqldump -uDBUSER  -pPASSWORD --where="true limit 100" DBNAME > filename.sql  </code></p>
<p>this command will dump your database with defined amount records in each table. </p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/mysqldump-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl: Premature end of script headers</title>
		<link>http://howtobsd.com/development/perl-premature-end-of-script-headers.html</link>
		<comments>http://howtobsd.com/development/perl-premature-end-of-script-headers.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:52:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=391</guid>
		<description><![CDATA[Internal Server Error 500 This error appeared when I tried run IPN script for paypal. httpd-error logs: Perl: Premature end of script headers A long time I have tried to fix it by sending headers like: print "Content-type: text/plain\n\n"; но безуспешно. The problem was just in DOS newline format. Just need change format from DOS/WIN [...]]]></description>
				<content:encoded><![CDATA[<p>Internal Server Error 500<br />
This error appeared when I tried run IPN script for paypal.<br />
httpd-error logs:</p>
<p><code>Perl: Premature end of script headers </code></p>
<p>A long time I have tried to fix it by sending headers like:</p>
<p><code>print "Content-type: text/plain\n\n";</code> но безуспешно.</p>
<p>The problem was just  in DOS newline format.  Just need change format from DOS/WIN (CR/LF) to Unix (LF). </p>
<p>I hope it will help somebody else.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/perl-premature-end-of-script-headers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update to php 5.3.6 problem (autoconf: required version 2.68 not found)</title>
		<link>http://howtobsd.com/solutions/update-to-php-5-3-6-problem-autoconf.html</link>
		<comments>http://howtobsd.com/solutions/update-to-php-5-3-6-problem-autoconf.html#comments</comments>
		<pubDate>Sun, 17 Apr 2011 15:12:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php extentions]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=373</guid>
		<description><![CDATA[Was updating php on FreeBSD to php 5.3.6 lang/php5 updated correctly but when I tried update php5-extensions &#8211; it cause problems. I also tried article portupgrade for certain module also didn&#8217;t work (php5-mcrypt, for example): howtobsd# portupgrade php5-mcrypt [Updating the pkgdb in /var/db/pkg ... - 951 packages found (-1 +0) (...) done] ---&#62; Upgrading 'php5-mcrypt-5.3.3_2' [...]]]></description>
				<content:encoded><![CDATA[<p>Was updating php on FreeBSD to php 5.3.6<br />
lang/php5 updated correctly but when I tried update php5-extensions  &#8211; it cause problems. I also tried <a title="Update php5-* without portupgrade “php5-*”" href="/?p=116"> article </a><br />
portupgrade for certain module also didn&#8217;t work (php5-mcrypt, for example):<br />
<code>howtobsd# portupgrade php5-mcrypt<br />
[Updating the pkgdb<br />
in /var/db/pkg ... - 951 packages found (-1 +0) (...) done]<br />
---&gt;  Upgrading 'php5-mcrypt-5.3.3_2' to 'php5-mcrypt-5.3.6' (security/php5-mcrypt)<br />
---&gt;  Building '/usr/ports/security/php5-mcrypt'<br />
===&gt;  Cleaning for php5-mcrypt-5.3.6<br />
===&gt;  Vulnerability check disabled, database not found<br />
===&gt;  License check disabled, port has not defined LICENSE<br />
===&gt;  Extracting for php5-mcrypt-5.3.6<br />
=&gt; SHA256 Checksum OK for php-5.3.6.tar.bz2.<br />
===&gt;  Patching for php5-mcrypt-5.3.6<br />
===&gt;   php5-mcrypt-5.3.6 depends on file: /usr/local/bin/phpize - found<br />
===&gt;   php5-mcrypt-5.3.6 depends on file: /usr/local/bin/autoconf-2.68 - found<br />
===&gt;   php5-mcrypt-5.3.6 depends on shared library: mcrypt.8 - found<br />
===&gt;   php5-mcrypt-5.3.6 depends on shared library: ltdl.7 - found<br />
===&gt;  PHPizing for php5-mcrypt-5.3.6<br />
Configuring for:<br />
PHP Api Version:         20090626<br />
Zend Module Api No:      20090626<br />
Zend Extension Api No:   220090626<br />
autoconf: required version 2.68 not found<br />
*** Error code 1<br />
Stop in /usr/ports/security/php5-mcrypt.<br />
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20110417-89058-19avmgv-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php5-mcrypt-5.3.3_2 UPGRADE_PORT_VER=5.3.3_2 make<br />
** Fix the problem and try again.<br />
** Listing the failed packages (-:ignored / *:skipped / !:failed)<br />
! security/php5-mcrypt (php5-mcrypt-5.3.3_2)    (unknown build error)<br />
</code><br />
As you can see autoconf 2.68 required:<br />
<code><br />
howtobsd# portupgrade autoconf<br />
</code><br />
But also you need update autoconf-wrapper:<br />
<code><br />
howtobsd# portupgrade autoconf-wrapper<br />
</code></p>
<p>after that it updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/update-to-php-5-3-6-problem-autoconf.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
