<?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>Autarchy of the Private Cave &#187; shared hosting</title> <atom:link href="https://bogdan.org.ua/tags/shared-hosting/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>An alternative to shared hosting</title><link>https://bogdan.org.ua/2008/06/04/an-alternative-to-shared-hosting.html</link> <comments>https://bogdan.org.ua/2008/06/04/an-alternative-to-shared-hosting.html#comments</comments> <pubDate>Wed, 04 Jun 2008 16:50:56 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[Links]]></category> <category><![CDATA[Notepad]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[dedicated]]></category> <category><![CDATA[physical]]></category> <category><![CDATA[shared hosting]]></category> <category><![CDATA[slice]]></category> <category><![CDATA[slicehost]]></category> <category><![CDATA[VDS]]></category> <category><![CDATA[VPS]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=301</guid> <description><![CDATA[Personal communication resulted in a link to slicehost, who provide VDS/VPS services at prices as low as 20$/mo, which is comparable in price to good shared hosting plans, and is cheaper than Dedicated plans. I&#8217;m considering a move from shared hosting, and found Slicehost attractive. For 20$/mo, you get guaranteed 256MiB RAM, 10GiB disk and [&#8230;]]]></description> <content:encoded><![CDATA[<p>Personal communication resulted in a link to <a
href="http://www.slicehost.com/" class="broken_link" rel="nofollow">slicehost</a>, who provide <abbr
title="Virtual Dedicated Server">VDS</abbr>/<abbr
title="Virtual Private Server">VPS</abbr> services at prices as low as 20$/mo, which is comparable in price to good shared hosting plans, and is cheaper than Dedicated plans.</p><p>I&#8217;m considering a move from shared hosting, and found Slicehost attractive. For 20$/mo, you get guaranteed 256MiB RAM, 10GiB disk and 100GiB traffic, which is sufficient to host several under-1k-per-day sites.</p><p>The only thing which isn&#8217;t spoken aloud is the guaranteed CPU speed. Based on the numbers provided: 16GiB total RAM per server, quad-core CPU, and CPU quotas set equivalently to RAM quotas, I came to a conclusion that 20$-plan guarantees ~125MHz of CPU (take 16 GiB, multiply by 4 20$-plans &#8211; you get 64 &#8220;slices&#8221; &#8211; virtual servers; quad core CPUs were quoted as 8+GHz &#8211; I assume that&#8217;s the sum of the core frequencies, thus 8GHz divided by 64 slices gives as little as 125MHz guaranteed per slice).</p><p>The better slice you buy &#8211; the more CPU is guaranteed, so for 1024-RAM slice you&#8217;d have a minimum of 500MHz of CPU.</p><p>However, slicehost describes their CPU-clamping system as the one allowing &#8220;bursted&#8221; performance, if others aren&#8217;t actively using their CPU shares. So it must be much better than what I&#8217;m calculating here. And even if it&#8217;s not, then for some applications it&#8217;s better to have a 125MHz-clamp on CPU, than have a <a
href="http://bogdan.org.ua/2007/10/16/godaddy-undocumented-20-second-cpu-time-maximal-execution-limit-python-elf.html">20-seconds maximal CPU time limit</a>.</p><p>Still, I&#8217;m looking for reasonably-priced collocation services in Ukraine &#8211; e.g. those (currently unavailable) from Volia, starting at 40$/mo for the rented physical  VIA C7-based server with enough traffic included.</p><p><ins
datetime="2009-01-03T14:16:27+00:00">Update:</ins> I now have my own server collocated in Ukraine. This blog still lives on a shared hosting, but I&#8217;m considering the move to own server (where I have the <a
href="http://biomed.org.ua/" class="broken_link" rel="nofollow">biomed</a> half-dead site and resource-hungry <a
href="http://biomed.org.ua/COTRASIF/" class="broken_link" rel="nofollow">COTRASIF tool</a>).</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F06%2F04%2Fan-alternative-to-shared-hosting.html&amp;linkname=An%20alternative%20to%20shared%20hosting" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F06%2F04%2Fan-alternative-to-shared-hosting.html&amp;linkname=An%20alternative%20to%20shared%20hosting" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F06%2F04%2Fan-alternative-to-shared-hosting.html&amp;linkname=An%20alternative%20to%20shared%20hosting" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F06%2F04%2Fan-alternative-to-shared-hosting.html&amp;linkname=An%20alternative%20to%20shared%20hosting" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F06%2F04%2Fan-alternative-to-shared-hosting.html&amp;linkname=An%20alternative%20to%20shared%20hosting" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F06%2F04%2Fan-alternative-to-shared-hosting.html&#038;title=An%20alternative%20to%20shared%20hosting" data-a2a-url="https://bogdan.org.ua/2008/06/04/an-alternative-to-shared-hosting.html" data-a2a-title="An alternative to shared hosting"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/06/04/an-alternative-to-shared-hosting.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Instructions on installing libmp3lame-enabled ffmpeg on shared linux hosting</title><link>https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html</link> <comments>https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html#comments</comments> <pubDate>Wed, 12 Mar 2008 06:25:54 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[ffmpeg]]></category> <category><![CDATA[install]]></category> <category><![CDATA[libmp3lame]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[shared hosting]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html</guid> <description><![CDATA[Note: this post is based on the comment by Simon, who generously shared his experience. Step-by-step: Download the compiled ffmpeg with libmp3lame support (direct download links: older version ffmpeg.with.lame and newer version ffmpeg.2007-10-28.with-libmp3lame-support). Rename the downloaded executable file to &#8220;ffmpeg&#8221; (no extension), upload it to the directory on your server (in this example /home/myusername/). Download [&#8230;]]]></description> <content:encoded><![CDATA[<p><em>Note:</em> this post is based on the <a
href="http://bogdan.org.ua/2007/10/25/using-libmp3lame-enabled-ffmpeg-on-shared-hosting.html#comment-59670">comment by Simon</a>, who generously shared his experience.</p><p>Step-by-step:</p><ul><li>Download the <a
title="this page will be irregularly updated with new compiled binaries of ffmpeg" href="http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html">compiled ffmpeg with libmp3lame support</a> (direct download links: older version <a
href="http://bogdan.org.ua/wp-content/uploads/2007/06/ffmpeg.with.lame">ffmpeg.with.lame</a> and newer version <a
href="http://bogdan.org.ua/wp-content/uploads/2007/10/ffmpeg.2007-10-28.with-libmp3lame-support">ffmpeg.2007-10-28.with-libmp3lame-support</a>).</li><li>Rename the downloaded executable file to &#8220;ffmpeg&#8221; (no extension), upload it to the directory on your server (in this example /home/myusername/).</li><li>Download <a
href="http://bogdan.org.ua/wp-content/uploads/2008/03/libmp3lame.so.0">libmp3lame.so.0</a>.</li><li>Upload libmp3lame.so.0 to the same directory where you placed ffmpeg in.</li><li>Create a php file with the following code (remember to change the paths to your own, where you actually uploaded binaries in previous steps):<div
id="ig-sh-1" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #000000; font-weight: bold;">&lt;?php</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #990000;">exec</span><span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">&quot;export LD_LIBRARY_PATH=/home/myusername/&quot;</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #b1b100;">echo</span> <span
style="color: #990000;">passthru</span><span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">&quot;/home/myusername/ffmpeg -formats&quot;</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #000000; font-weight: bold;">?&gt;</span></div></li></ol></div></div></li><li>If you access that PHP file with your browser, you should be able to see a list of formats which are supported by ffmpeg, and if you find &#8220;EA libmp3lame&#8221; somewhere in the output, then it means you now can Encode Audio in libmp3lame!</li><li>If that doesn&#8217;t work for you: LD_LIBRARY_PATH can be a protected variable in PHP (you can check for this by searching for the &#8220;safe_mode_protected_env_vars&#8221; value in phpinfo() output). The workaround here can be to write your commands to a file from php, then <strong>chmod</strong> that file with 0755 permissions (rwx-rx-rx), and run the file through <strong>exec()</strong>. In this way, PHP is not changing the LD_LIBRARY_PATH, but telling the server to run a file, which tells the server to change it. This method worked for the original author of these instructions.</li></ul><p>For passing arguments to the PHP wrapper script &#8211; check out PHP&#8217;s $argv variable (more on this <a
href="http://www.php.net/features.commandline">here</a>). If you decided to use shell-script as a wrapper for &#8220;export LD_LIBRARY_PATH&#8221;, then using $1, $2 etc will allow you to pass parameters to the shell script, e.g. in the example below</p><div
id="ig-sh-2" class="syntax_hilite"><div
class="code"><ol
class="code" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">#!/bin/bash</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">export LD_LIBRARY_PATH=/home/myusername/</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/home/myusername/ffmpeg -i /home/myusername/$1 $2 /home/myusername/$3</div></li></ol></div></div><p>you could pass &#8220;input file&#8221; as first argument, &#8220;parameters&#8221; as second and &#8220;output file&#8221; as third to make such a wrapper script work.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&#038;title=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" data-a2a-url="https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html" data-a2a-title="Instructions on installing libmp3lame-enabled ffmpeg on shared linux hosting"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html/feed</wfw:commentRss> <slash:comments>19</slash:comments> </item> <item><title>Using libmp3lame-enabled ffmpeg on shared hosting</title><link>https://bogdan.org.ua/2007/10/25/using-libmp3lame-enabled-ffmpeg-on-shared-hosting.html</link> <comments>https://bogdan.org.ua/2007/10/25/using-libmp3lame-enabled-ffmpeg-on-shared-hosting.html#comments</comments> <pubDate>Thu, 25 Oct 2007 21:09:27 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[ffmpeg]]></category> <category><![CDATA[lame]]></category> <category><![CDATA[libmp3lame]]></category> <category><![CDATA[shared hosting]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/2007/10/25/using-libmp3lame-enabled-ffmpeg-on-shared-hosting.html</guid> <description><![CDATA[Update: there&#8217;s now a much more recent post on how to install libmp3lame-enabled ffmpeg on shared linux hosting. As Gabe pointed out in my post with compiled ffmpeg Linux binaries, there is a relatively simple method of adding libmp3lame.so.0 file to your shared hosting so that ffmpeg executable will see the library: You can upload [&#8230;]]]></description> <content:encoded><![CDATA[<p><ins
datetime="2008-03-12T06:35:24+00:00">Update:</ins> there&#8217;s now a much more recent post on <a
href="http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html">how to install libmp3lame-enabled ffmpeg on shared linux hosting</a>.</p><p>As Gabe <a
href="http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html#comment-31359">pointed out</a> in my post with <a
href="http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html">compiled ffmpeg Linux binaries</a>, there is a relatively simple method of adding libmp3lame.so.0 file to your shared hosting so that ffmpeg executable will see the library:</p><blockquote><p>You can upload libmp4lame.so as well to the shared hosting site and when you call ffmpeg, call something to set an environment variable right before the call to ffmpeg i.e. in php Iâ€™d do exec(â€export LD_LIBRARY_PATH=/path/to/lib/with/lame; /path/to/ffmpeg [ffmpegargs]â€); That way you can use the uploaded lame. I hope that helps someone as I have been unable to find any info on how to use an uploaded lame. Iâ€™ve tried it and it works on godaddy.</p></blockquote><p>Hope this helps.</p><p><ins
datetime="2008-03-11T06:35:03+00:00">Update:</ins> here&#8217;s <a
href="http://bogdan.org.ua/wp-content/uploads/2008/03/libmp3lame.so.0" title="libmp3lame.so.0 (from slackware 2.4.x, lame-3.97)">libmp3lame.so.0.0.0 (from slackware 2.4.x, lame-3.97)</a>. I have no idea if it&#8217;ll work in your (shared hosting) environment; it is provided AS IS, use at your own risk etc. I can only state that the archived binary file at the moment of upload was indeed libmp3lame.so.0.0.0 from my elderly Slackware with 2.4.x kernel.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F25%2Fusing-libmp3lame-enabled-ffmpeg-on-shared-hosting.html&amp;linkname=Using%20libmp3lame-enabled%20ffmpeg%20on%20shared%20hosting" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F25%2Fusing-libmp3lame-enabled-ffmpeg-on-shared-hosting.html&amp;linkname=Using%20libmp3lame-enabled%20ffmpeg%20on%20shared%20hosting" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F25%2Fusing-libmp3lame-enabled-ffmpeg-on-shared-hosting.html&amp;linkname=Using%20libmp3lame-enabled%20ffmpeg%20on%20shared%20hosting" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F25%2Fusing-libmp3lame-enabled-ffmpeg-on-shared-hosting.html&amp;linkname=Using%20libmp3lame-enabled%20ffmpeg%20on%20shared%20hosting" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F25%2Fusing-libmp3lame-enabled-ffmpeg-on-shared-hosting.html&amp;linkname=Using%20libmp3lame-enabled%20ffmpeg%20on%20shared%20hosting" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F25%2Fusing-libmp3lame-enabled-ffmpeg-on-shared-hosting.html&#038;title=Using%20libmp3lame-enabled%20ffmpeg%20on%20shared%20hosting" data-a2a-url="https://bogdan.org.ua/2007/10/25/using-libmp3lame-enabled-ffmpeg-on-shared-hosting.html" data-a2a-title="Using libmp3lame-enabled ffmpeg on shared hosting"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2007/10/25/using-libmp3lame-enabled-ffmpeg-on-shared-hosting.html/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>