<?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>Techy Things &#187; virtualmin</title>
	<atom:link href="http://tech.yipp.ca/category/virtualmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Create a new Debian server with Virtualmin</title>
		<link>http://tech.yipp.ca/virtualmin/create-new-debian-server-virtualmin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-new-debian-server-virtualmin</link>
		<comments>http://tech.yipp.ca/virtualmin/create-new-debian-server-virtualmin/#comments</comments>
		<pubDate>Fri, 09 Sep 2016 02:16:54 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[virtualmin]]></category>
		<category><![CDATA[webpages]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2169</guid>
		<description><![CDATA[<p>&#160; Increase SWAP if have 512 MB or below $&#62; sudo dd if=/dev/zero of=/swap bs=1M count=1024 $&#62; sudo mkswap /swap $&#62; sudo swapon /swap $&#62; nano /etc/fstab # add the following line /swap swap swap sw&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualmin/create-new-debian-server-virtualmin/">Create a new Debian server with Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<h3>Increase SWAP if have 512 MB or below</h3>
<p>$&gt; sudo dd if=/dev/zero of=/swap bs=1M count=1024<br />
$&gt; sudo mkswap /swap<br />
$&gt; sudo swapon /swap<br />
$&gt; nano /etc/fstab<br />
# add the following line<br />
/swap swap swap sw 0 0<br />
# reboot and verify with the "free" command that you now have above 1GB of swap</p>
<h3>Install basic packages</h3>
<p>$&gt; apt-get install php5-curl php5-gd</p>
<p>#<strong> php5-gd</strong> is for wordpress thumbnails</p>
<h3>For Ruby on Rails servers</h3>
<p>Now on its own post <a href="http://tech.yipp.ca/ruby/putting-ruby-rails-production-debian-virtualmin/">http://tech.yipp.ca/ruby/putting-ruby-rails-production-debian-virtualmin/</a></p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualmin/create-new-debian-server-virtualmin/">Create a new Debian server with Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/virtualmin/create-new-debian-server-virtualmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Putting Ruby on Rails in Production on Debian with Virtualmin</title>
		<link>http://tech.yipp.ca/ruby/putting-ruby-rails-production-debian-virtualmin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=putting-ruby-rails-production-debian-virtualmin</link>
		<comments>http://tech.yipp.ca/ruby/putting-ruby-rails-production-debian-virtualmin/#comments</comments>
		<pubDate>Wed, 07 Sep 2016 23:27:37 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[virtualmin]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2586</guid>
		<description><![CDATA[<p>If you have 512 MB of SWAP or below you need to increase the SWAP $&#62; sudo dd if=/dev/zero of=/swap bs=1M count=1024 $&#62; sudo mkswap /swap $&#62; sudo swapon /swap To make permanent, add&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/ruby/putting-ruby-rails-production-debian-virtualmin/">Putting Ruby on Rails in Production on Debian with Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h3>If you have 512 MB of SWAP or below you need to increase the SWAP</h3>
<p>$&gt; sudo dd if=/dev/zero of=/swap bs=1M count=1024<br />
$&gt; sudo mkswap /swap<br />
$&gt; sudo swapon /swap</p>
<p>To make permanent, add this line to /etc/fstab</p>
<p>/swap swap swap sw 0 0</p>
<h3>Install Passenger</h3>
<p>$&gt; gem install passenger<br />
$&gt; apt-get install apache2-threaded-dev libapr1-dev libaprutil1-dev<br />
$&gt; passenger-install-apache2-module</p>
<p>At the end it will display for you what to add to <strong>apache global conf</strong> file, in my case :</p>
<pre>LoadModule passenger_module /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.30/buildout/apache2/mod_passenger.so
 &lt;IfModule mod_passenger.c&gt;
 PassengerRoot /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.30
 PassengerDefaultRuby /usr/local/bin/ruby
 &lt;/IfModule&gt;</pre>
<p>Also put something similar to this in the <strong>virtual host</strong> Apache config :</p>
<pre>DocumentRoot /home/cbuy/public_html/public
RailsEnv production
ErrorLog /var/log/virtualmin/community-buy.ca_error_log
CustomLog /var/log/virtualmin/community-buy.ca_access_log combined
ScriptAlias /cgi-bin/ /home/cbuy/cgi-bin/
ScriptAlias /awstats/ /home/cbuy/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
&lt;Directory /home/cbuy/public_html/public&gt;
allow from all
AllowOverride All
Options FollowSymLinks -MultiViews Indexes
&lt;/Directory&gt;</pre>
<p>Restart Apache</p>
<h2>Troubleshooting</h2>
<h3>Generic error</h3>
<p>Check where you can access the log file with</p>
<p>$&gt; passenger-config --detect-apache2</p>
<h3>"We're sorry, but something went wrong."</h3>
<p>Edit Apache VirtualHost configuration to run development mode to see the error:</p>
<p>RailsEnv development</p>
<p>Then restart Apache.</p>
<h3>"This web application process is being run as user 'nobody' and group 'nogroup' and must be able to access its application root directory"</h3>
<p>chown your app dir so that your user can access it. If you use virtualmin that is your domain account user.</p>
<h3>[2016-09-07 23:24:59] ERROR RuntimeError: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml`</h3>
<p>/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.2.3/lib/rails/application.rb:534:in `validate_secret_key_config!'<br />
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.2.3/lib/rails/application.rb:246:in `env_config'<br />
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.2.3/lib/rails/engine.rb:514:in `call'<br />
/usr/local/lib/ruby/gems/2.1.0/gems/railties-4.2.3/lib/rails/application.rb:165:in `call'<br />
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'<br />
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'<br />
/usr/local/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'<br />
/usr/local/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'<br />
/usr/local/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'<br />
/usr/local/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'</p>
<p>&nbsp;</p>
<p>Problem: Only accessible on localhost</p>
<p>Solution: RAILS_ENV=production rails server -b 0.0.0.0</p>
<p>Problem</p>
<h1>Forbidden</h1>
<p>You don't have permission to access / on this server.</p>
<p>Solution</p>
<p>You might have uploaded files as root or such that is not accessible by the Apache/passenger.</p>
<p>chown -R &lt;user&gt;:&lt;user&gt; /home/&lt;user&gt;/public_html</p>
<p>Problem : It doesnt work</p>
<p>Solution</p>
<pre class="default prettyprint prettyprinted"><code><span class="pln">RAILS_ENV</span><span class="pun">=</span><span class="pln">production bundle </span><span class="kwd">exec</span><span class="pln"> rake assets</span><span class="pun">:</span><span class="pln">precompile
</span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="pln">config</span><span class="pun">.</span><span class="pln">serve_static_assets </span><span class="pun">=</span> <span class="kwd">true
</span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="pln"> </span></code></pre>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/ruby/putting-ruby-rails-production-debian-virtualmin/">Putting Ruby on Rails in Production on Debian with Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/ruby/putting-ruby-rails-production-debian-virtualmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Muliviews: Enable no extension for Apache under Virtualmin</title>
		<link>http://tech.yipp.ca/virtualmin/muliviews-enable-extension-apache-virtualmin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=muliviews-enable-extension-apache-virtualmin</link>
		<comments>http://tech.yipp.ca/virtualmin/muliviews-enable-extension-apache-virtualmin/#comments</comments>
		<pubDate>Mon, 11 Jan 2016 00:36:53 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[virtualmin]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2171</guid>
		<description><![CDATA[<p>To have nice and clean URLs in your app and hide the .php extension, you can enable Multiviews. If you use Virtualmin, see below how to achieve this. First you select your virtual server,&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualmin/muliviews-enable-extension-apache-virtualmin/">Muliviews: Enable no extension for Apache under Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>To have nice and <strong><span style="color: #ff6600;">clean URLs</span></strong> in your app and hide the .php extension, you can enable <strong>Multiviews</strong>. If you use <strong><a href="http://tech.yipp.ca/virtualmin">Virtualmin</a></strong>, see below how to achieve this.</p>
<p>First you select your virtual server, in this example "chatzone.tv", then expend "<strong>Services</strong>" and select "<strong>Configure Website</strong>":</p>
<p><a href="http://tech.yipp.ca/files/2016/01/virtualmin-apache-multiview-1.png"><img class="alignnone size-full wp-image-2172" src="http://tech.yipp.ca/files/2016/01/virtualmin-apache-multiview-1.png" alt="virtualmin-apache-multiview-1" width="994" height="489" /></a></p>
<p>Then click on <strong>"Document Options</strong>", it will bring you to this view:</p>
<p><a href="http://tech.yipp.ca/files/2016/01/virtualmin-apache-multiview-21.png"><img class="alignnone size-full wp-image-2178" src="http://tech.yipp.ca/files/2016/01/virtualmin-apache-multiview-21.png" alt="virtualmin-apache-multiview-2" width="994" height="489" /></a></p>
<p>Then turn on "<strong>Generate Multiviews</strong>" and <strong>don't forget to select "Selected below"</strong> !!</p>
<p>Then<strong> Restart Apache.</strong></p>
<p>Wow that's such bad UX implementation... but that's another story</p>
<h2>Important additional steps if you have HTTPS</h2>
<p>Redo the steps above for your SSL endpoint if you want the same to work under https. Select your virtual server, in this example "chatzone.tv", then expend "<strong>Services</strong>" and select "<strong>Configure Website SSL</strong>". Then proceed as above!</p>
<h2>Troubleshooting</h2>
<p>Did you restart Apache? Try rebooting if you don't know how to restart it.</p>
<h2>If you are on raw Apache without Virtualmin, just write this in httpd.conf</h2>
<p>Options Indexes FollowSymLinks MultiViews ExecCGI<br />
AddType application/x-httpd-php .php</p>
<p>The AddType is important otherwise it won't work, even if you PHP files are currently executing correctly when accessed with the .php extension.</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualmin/muliviews-enable-extension-apache-virtualmin/">Muliviews: Enable no extension for Apache under Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/virtualmin/muliviews-enable-extension-apache-virtualmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a subdomain name to Virtualmin</title>
		<link>http://tech.yipp.ca/virtualmin/add-subdomain-name-virtualmin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-subdomain-name-virtualmin</link>
		<comments>http://tech.yipp.ca/virtualmin/add-subdomain-name-virtualmin/#comments</comments>
		<pubDate>Sat, 29 Aug 2015 19:11:28 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[virtualmin]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2005</guid>
		<description><![CDATA[<p>Login into the admin panel. There are two ways to create subdomains. The way I prefer is this: Click on "Create Virtual Server" Select "Sub-server" as the type of virtual server on the top&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualmin/add-subdomain-name-virtualmin/">Add a subdomain name to Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Login into the admin panel.</p>
<p>There are two ways to create subdomains. The way I prefer is this:</p>
<p>Click on "Create Virtual Server"</p>
<p>Select "Sub-server" as the type of virtual server on the top links.</p>
<p><a href="http://tech.yipp.ca/files/2015/08/Screen-Shot-2015-08-29-at-3.07.42-PM.png"><img src="http://tech.yipp.ca/files/2015/08/Screen-Shot-2015-08-29-at-3.07.42-PM.png" alt="Screen Shot 2015-08-29 at 3.07.42 PM" width="762" height="319" class="alignnone size-full wp-image-2006" /></a></p>
<p>In domain name, type the full domain name (without http://) but including the primary domain. For example: node.chatzone.tv</p>
<p>You will then get a new folder as the www root :<br />
/home/chatzone/domains/node.chatzone.tv</p>
<p>Et voilà !</p>
<p>If you want to run node.js on it, read my post about <a href="http://tech.yipp.ca/linux/run-node-js-app-virtualmin-ispconfig/">Running Node.js applicaiton with Virtualmin</a>.</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualmin/add-subdomain-name-virtualmin/">Add a subdomain name to Virtualmin</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/virtualmin/add-subdomain-name-virtualmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
