<?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>Linux Sysadmin Blog &#187; drupal</title>
	<atom:link href="http://linuxsysadminblog.com/category/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxsysadminblog.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 May 2011 03:23:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Moving Drupal site with CiviCRM</title>
		<link>http://linuxsysadminblog.com/2011/04/moving-drupal-site-with-civicrm/</link>
		<comments>http://linuxsysadminblog.com/2011/04/moving-drupal-site-with-civicrm/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 15:24:29 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[civicrm]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1300</guid>
		<description><![CDATA[The common headache for beginners who try to move their Drupal site with CiviCRM is the CiviCRM configuration on new location or domain. I did this countless times and dealt with different problems before. I&#8217;ve read many online tutorials and how-tos, and I finally have my notes which is working for me everytime i move [...]]]></description>
			<content:encoded><![CDATA[<p>The common headache for beginners who try to move their Drupal site with CiviCRM is the CiviCRM configuration on new location or domain.  I did this countless times and dealt with different problems before.  I&#8217;ve read many online tutorials and how-tos, and I finally have my notes which is working for me everytime i move Drupal and CiviCRM site.</p>
<p>Let&#8217;s assume you already moved the databases (separate database for Drupal and CiviCRM as a recommended setup) and the files to new location and have set the correct file permissions as well.  Here is the part that you need for your CiviCRM to work on new location and domain:</p>
<ul>
<li> access your database and empty <code>civicrm.domain:config_backend</code>.  You see this anywhere with CiviCRM guide.</li>
<li> update database details, site path/directory, and domain on <code>civicrm.settings.php</code></li>
<li> emtpy <code>sites/default/files/civicrm/template_c</code> (or make this entire dir writable by web user)</li>
<li> login to you new Drupal site and visit these urls:<br />
<code>http://sitename/civicrm/menu/rebuild?reset=1</code><br />
	<code>http://sitename/civicrm/admin/setting/updateConfigBackend?reset=1</code><br />
      <strong>Note:</strong> This will rebuild the settings for you &#8211; if not, repeat/review all the above steps.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2011/04/moving-drupal-site-with-civicrm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ApacheSolr in Ubuntu for Drupal</title>
		<link>http://linuxsysadminblog.com/2011/04/install-apachesolr-in-ubuntu-for-drupal/</link>
		<comments>http://linuxsysadminblog.com/2011/04/install-apachesolr-in-ubuntu-for-drupal/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 19:26:25 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1259</guid>
		<description><![CDATA[I&#8217;ve written few Drupal ApacheSolr install guides here and this one is basically an install draft for Ubuntu. Environment: Ubuntu 10.10, Apache, PHP, MySQL, Drupal 6.20 Things to install / setup: Solr, Tomcat6, ApacheSolr module for Drupal, and SolrPHPClient library 1.) Install Tomcat and setup your Tomcat admin user. aptitude install tomcat6 tomcat6-admin tomcat6-common tomcat6-user [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written few Drupal ApacheSolr install guides here and this one is basically an install draft for Ubuntu.</p>
<p><strong>Environment: </strong>  <a href="http://www.ubuntu.com/">Ubuntu 10.10</a>, Apache, PHP, MySQL, <a href="http://drupal.org">Drupal 6.20</a></p>
<p><strong>Things to install / setup</strong>:   <a href="http://apache.rediris.es/lucene/solr/">Solr</a>, <a href="http://tomcat.apache.org/download-60.cgi">Tomcat6</a>, <a href="http://drupal.org/project/apachesolr">ApacheSolr module for Drupal</a>, and <a href="http://code.google.com/p/solr-php-client/">SolrPHPClient library</a>
</ul>
<p><strong>1.)  Install Tomcat and setup your Tomcat admin user.</strong></p>
<p><code>aptitude install tomcat6 tomcat6-admin tomcat6-common tomcat6-user<br />
vi /etc/tomcat6/tomcat-users.xml</code><br />
<em>&lt;role rolename=&#8221;admin&#8221;/&gt;<br />
&lt;role rolename=&#8221;manager&#8221;/&gt;<br />
&lt;user username=&#8221;tomcat&#8221; password=&#8221;password&#8221; roles=&#8221;admin,manager&#8221;/&gt;</em><br />
<code>/etc/init.d/tomcat6 restart</code><br />
<span id="more-1259"></span><br />
If all is good you will be able to access Tomcat admin at <em>http://hostname:8080</em>.  Default page will show with links to admin section, etc.</p>
<p><strong>2.)  Install Solr</strong></p>
<p><code>wget http://apache.rediris.es/lucene/solr/1.4.1/apache-solr-1.4.1.zip</code> (<a href="http://apache.rediris.es/lucene/solr/"><em>check for updates</em></a>)<br />
<code>unzip apache-solr-1.4.1.zip<br />
mkdir /usr/share/tomcat6/webapps<br />
cp apache-solr-1.4.1/dist/apache-solr-1.4.1.war /usr/share/tomcat6/webapps/solr.war<br />
cp -r apache-solr-1.4.1/example/solr /usr/share/tomcat6/solr<br />
vi /etc/tomcat6/Catalina/localhost/solr.xml</code><br />
<em>&lt;Context docBase=&#8221;/usr/share/tomcat6/webapps/solr.war&#8221; debug=&#8221;0&#8243; privileged=&#8221;true&#8221; allowLinking=&#8221;true&#8221; crossContext=&#8221;true&#8221;&gt;<br />
&lt;Environment name=&#8221;solr/home&#8221; type=&#8221;java.lang.String&#8221; value=&#8221;/usr/share/tomcat6/solr&#8221; override=&#8221;true&#8221; /&gt;<br />
&lt;/Context&gt;</em><br />
<code>chown -r tomcat6.tomcat6 /var/lib/tomcat6<br />
/etc/init.d/tomcat6 restart</code></p>
<p>You should see Solr access on your Tomcat admin/manager page (<em>http://hostname:8080/manager/html</em>).</p>
<p><strong>3.)  Connect Drupal Site to Solr (multi-core setup)</strong></p>
<p>I already have a Drupal site with ApacheSolr module installed and SolrPHPclient library.</p>
<p><code>cp /path/drupal_site/sites/all/modules/apachesolr/schema.xml /usr/share/tomcat6/solr/conf/schema.xml<br />
cp /path/drupal_site/sites/all/modules/apachesolr/solrconfig.xml /usr/share/tomcat6/solr/conf/solrconfig.xml<br />
cp apache-solr-1.4.1/example/multicore/solr.xml /usr/share/tomcat6/solr/<br />
mkdir /usr/share/tomcat6/solr/site_sample1<br />
cp -r /usr/share/tomcat6/solr/conf /usr/share/tomcat6/solr/site_sample1/conf<br />
vi /usr/share/tomcat6/solr/solr.xml</code><br />
<em>&lt;core name=&#8221;site1&#8243; instanceDir=&#8221;site_sample1&#8243; /&gt;</em><br />
<code>chown -R tomcat6:root /usr/share/tomcat6/solr/<br />
/etc/init.d/tomcat6 restart</code></p>
<p>Visit ApacheSolr settings of your Drupal admin and enter the configuration:<br />
<em>Solr Hostname: <strong>localhost</strong><br />
Solr Port: <strong>8080</strong><br />
Solr Path: <strong>/solr/site1</strong></em></p>
<p><strong>To add new site to Solr:</strong><br />
<code>mkdir /usr/share/tomcat6/solr/site_sample2<br />
cp -r /usr/share/tomcat6/solr/conf /usr/share/tomcat6/solr/site_sample2/conf<br />
vi /usr/share/tomcat6/solr/solr.xml</code><br />
<em>&lt;core name=&#8221;site2&#8243; instanceDir=&#8221;site_sample2&#8243; /&gt;</em></p>
<p>That&#8217;s All.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2011/04/install-apachesolr-in-ubuntu-for-drupal/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hosting presentation at DrupalCon2011</title>
		<link>http://linuxsysadminblog.com/2011/03/hosting-presentation-at-drupalcon2011/</link>
		<comments>http://linuxsysadminblog.com/2011/03/hosting-presentation-at-drupalcon2011/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 00:08:20 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1244</guid>
		<description><![CDATA[Below is my presentation from Drupal Con 2011 where Promet Source, a Drupal Development Company based out of Chicago was a Gold sponsor. Although none or our proposed talks got in, we did get a slot at the Main stage. Below are the slides of my talk. Basically we wanted to highlight that while we [...]]]></description>
			<content:encoded><![CDATA[<p>Below is my presentation from Drupal Con 2011 where Promet Source, a <a href="http://www.prometsource.com">Drupal Development Company</a> based out of Chicago was a Gold sponsor.  Although none or our proposed talks got in, we did get a slot at the Main stage.  Below are the slides of my talk.  Basically we wanted to highlight that while we do focus on automation, performance and security, with Drupal the security updates must be integrated with human support to ensure that updates do not break the site.  </p>
<div style="width:425px" id="__ss_7408735"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/akucharski/what-should-you-expect-from-your-drupal-web-host" title="What should you expect from your Drupal Web Host">What should you expect from your Drupal Web Host</a></strong> <object id="__sse7408735" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=prometsourcedrupalcon2011hosting-110327185836-phpapp02&#038;stripped_title=what-should-you-expect-from-your-drupal-web-host&#038;userName=akucharski" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse7408735" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=prometsourcedrupalcon2011hosting-110327185836-phpapp02&#038;stripped_title=what-should-you-expect-from-your-drupal-web-host&#038;userName=akucharski" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/akucharski">Promet Solutions</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2011/03/hosting-presentation-at-drupalcon2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Apache Solr and Tomcat for Drupal</title>
		<link>http://linuxsysadminblog.com/2010/10/install-apache-solr-and-tomcat-for-drupal/</link>
		<comments>http://linuxsysadminblog.com/2010/10/install-apache-solr-and-tomcat-for-drupal/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 10:10:55 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Drupal performance]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[apachesolr]]></category>
		<category><![CDATA[solr]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1129</guid>
		<description><![CDATA[Here&#8217;s my quick install guide for Solr, Tomcat, and Drupal ApacheSolr module for multiple sites. Mostly I based the steps below from the following sites: wiki.apache.org and drupalconnect.com. Detailed Setup: Drupal 6.19 ApacheSolr module 6-1.1 Apache Solr PHP Client Library: Rev.22 Solr 1.4.1 Tomcat 6.0.29 SunJDK 6update21 RHEL5.5&#215;64 Install Process: Tomcat Create solr user Download [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my quick install guide for Solr, Tomcat, and Drupal ApacheSolr module for multiple sites.  Mostly I based the steps below from the following sites: <a href="http://wiki.apache.org/solr/SolrTomcat">wiki.apache.org</a> and <a href="http://www.drupalconnect.com/blog/steve/configuring-apache-solr-multi-core-drupal-and-tomcat-ubuntu-910">drupalconnect.com</a>.</p>
<p><strong>Detailed Setup:</strong></p>
<ul>
<li>Drupal 6.19</li>
<li>ApacheSolr module 6-1.1</li>
<li>Apache Solr PHP Client Library: Rev.22</li>
<li>Solr 1.4.1</li>
<li>Tomcat 6.0.29</li>
<li>SunJDK 6update21</li>
<li>RHEL5.5&#215;64</li>
</ul>
<p><strong>Install Process: Tomcat</strong></p>
<ul>
<li>Create <em>solr</em> user</li>
<li>Download <a href="http://tomcat.apache.org/download-60.cgi">Tomcat6</a></li>
<li>Extract to <em>/opt/tomcat</em>  <em>**this will be the $CATALINA_HOME directory, you can use any dir you want</em></li>
<li>Edit <em>/opt/tomcat/conf/tomcat-users.xml</em> to enable Tomcat login.  See comments in this file.</li>
</ul>
<p><code>&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="manager,admin"/&gt;</code><br />
<span id="more-1129"></span>
<ul>
<li>Test run your Tomcat:  <em>/opt/tomcat/bin/catalina.sh run</em>.  Chown all Tomcat files to <em>solr</em> user (<code>chown -R solr.solr /opt/tomcat</code>).  Default server setting will use <em>port 8080</em>, to customized edit the file <em>/opt/tomcat/conf/server.xml</em>.  If you encounter error on &#8220;<em>BASEDIR environment variable is not defined correctly&#8230;</em>&#8220;, check permissions of <em>.sh</em> files inside <em>/opt/tomcat/bin/</em> and make them executable (<code>chmod 755 /opt/tomcat/bin/*.sh</code>).</li>
<li>Add startup (init) script.  Copy this <a href="http://wiki.apache.org/solr/SolrTomcat?action=AttachFile&amp;do=view&amp;target=tomcat6">Tomcat6 init file</a> from Apache.org to <em>/etc/init.d/tomcat6</em>.  Check and update variables like Java home, Tomcat directory, etc, if needed.  Add to startup <code>/sbin/chkconfig --add tomcat6</code> and <code>/sbin/chkconfig tomcat6 on</code>.  Dependencies: redhat-lsb (or lsb-base?)
</li>
<li>Visit your Tomcat Admin page.  ex <em>http://localhost:8080</em></li>
</ul>
<p><strong>Install Process: Solr</strong></p>
<ul>
<li>Download <a href="http://mirrors.igsobe.com/apache/lucene/solr/">Solr</a></li>
<li>Extract to temporary location, ex: <em>/opt/apache-solr-1.4.1</em></li>
<li>Copy <em>/opt/apache-solr-1.4.1/dist/apache-solr-1.4.1.war</em> to <em>/opt/tomcat/webapps/solr.war</em></li>
<li>Copy <em>/opt/apache-solr-1.4.1/example/solr</em> directory to <em>/opt/tomcat/solr  **this will be the $SOLR_HOME directory, you can use any dir you want</em></li>
<li>Create file <em>/opt/tomcat/conf/Catalina/localhost/solr.xml</em> with the following configuration.  Make sure paths are correct.</li>
</ul>
<p><code>&lt;Context docBase="/opt/tomcat/webapps/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true"&gt;<br />
&lt;Environment name="solr/home" type="java.lang.String" value="/opt/tomcat/solr" override="true" /&gt;<br />
&lt;/Context&gt;<br />
</code><br />
<strong>Install Process: ApacheSolr Drupal module and SolrPHP client</strong></p>
<ul>
<li> Install/enable <a href="http://drupal.org/project/apachesolr">Drupal ApacheSolr</a> module. Drush, CVS, or traditional install &#8211; whatever you want.  Example: <em>/var/www/site1/sites/all/modules/apachesolr</em></li>
<li> Download <a href="http://code.google.com/p/solr-php-client/">SolrPHP client library</a></li>
</ul>
<p><strong>Configure Solr for Multi-Core Setup</strong></p>
<ul>
<li>Copy <em>/var/www/site1/sites/all/modules/apachesolr/schema.xml</em> to <em>/opt/tomcat/solr/conf/schema.xml</em></li>
<li>Copy <em>/var/www/site1/sites/all/modules/apachesolr/solrconfig.xml</em> to <em>/opt/tomcat/solr/conf/solrconfig.xml</em></li>
<li>Copy <em>/opt/apache-solr-1.4.1/example/multicore/solr.xml</em> to <em>/opt/tomcat/solr/solr.xml</em></li>
<li>Create directory for each site and copy <em>/opt/tomcat/solr/conf </em> directory to each of them. Example:</li>
</ul>
<p><code>mkdir /opt/tomcat/solr/site1<br />
mkdir /opt/tomcat/solr/site2<br />
cp -r /opt/tomcat/solr/conf /opt/tomcat/solr/site1/<br />
cp -r /opt/tomcat/solr/conf /opt/tomcat/solr/site2/</code></p>
<ul>
<li> Edit <em>/opt/tomcat/solr/solr.xml</em> with the following config:</li>
</ul>
<p><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br />
&lt;solr persistent="false"&gt;<br />
&lt;cores adminPath="/admin/cores"&gt;<br />
&lt;core name="site1" instanceDir="site1" /&gt;<br />
&lt;core name="site1" instanceDir="site2" /&gt;<br />
&lt;/cores&gt;<br />
&lt;/solr&gt;</code></p>
<ul>
<li>Start or Restart Tomcat: <em>/etc/init.d/tomcat6 start</em></li>
<li>Visit <em>http://localhost:8080/</em> and go to you Solr App</li>
</ul>
<p><strong>Configure Drupal site:</strong></p>
<ul>
<li>Go to ApacheSolr settings <em>http://localhost/admin/settings/apachesolr</em></li>
<li>Save your config and if all is good you&#8217;ll see message: <em>Your site has contacted the Apache Solr server.</em></li>
</ul>
<p><code>Solr host name: localhost<br />
Solr port: 8080<br />
Solr path (for site1): /solr/site1<br />
</code>
<ul>
<li> Configure your search index.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/10/install-apache-solr-and-tomcat-for-drupal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Drupal Performance talk video from Drupal Con 2010</title>
		<link>http://linuxsysadminblog.com/2010/07/drupal-performance-talk-video-from-drupal-con-2010/</link>
		<comments>http://linuxsysadminblog.com/2010/07/drupal-performance-talk-video-from-drupal-con-2010/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:01:17 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1122</guid>
		<description><![CDATA[I have already mentioned that google will start penalizing your site in search if it is not fast enough. I have recently given a presentation at Drupal Con about Drupal performance and page speed. Below is a video of our session &#8211; its currently the fifth most watched session from the conference according to archive.org. [...]]]></description>
			<content:encoded><![CDATA[<p>I have already mentioned that <a href="http://linuxsysadminblog.com/2010/04/google-will-use-site-performance-and-page-load-speed-in-serp-ranking-sysadmin-seo-here-we-come/">google will start penalizing your site</a> in search if it is not fast enough.  I have recently given a presentation at Drupal Con about Drupal performance and page speed.  Below is a video of our session &#8211; its currently the fifth most watched session from the conference according to <a href="http://www.archive.org/search.php?query=DrupalCon%20SF%202010&amp;sort=-downloads">archive.org</a>.  Alternatively, there are several different formats <a href="http://www.archive.org/details/MakeDrupalRunFast-IncreasePageLoadSpeed">there as well</a>.</p>
<p><embed src="http://blip.tv/play/hpMogfiKHQA" type="application/x-shockwave-flash" width="560" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/07/drupal-performance-talk-video-from-drupal-con-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupalcon Security Session Notes</title>
		<link>http://linuxsysadminblog.com/2010/04/drupalcon-security-session-notes/</link>
		<comments>http://linuxsysadminblog.com/2010/04/drupalcon-security-session-notes/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 22:27:19 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1079</guid>
		<description><![CDATA[Some of us are attending the San Francisco Drupalcon 2010 this week.  I am in a session which some of you may find interesting.  The concepts are far from revelational but they are relevant. Most security]]></description>
			<content:encoded><![CDATA[<p>Some of us are attending the San Francisco Drupalcon 2010 this week.  I am in a session which some of you may find interesting.  The concepts are far from revelational but they are relevant.</p>
<ol>
<li>Most security <abreaches are done still XSS</li>
<li>Some things to do to increase security
<ol>
<li>Do not allow full HTML as input to anyone &#8211; filtered HTML only</li>
<li>ONly give Super admin privileges to trusted users</li>
</ol>
</li>
<li>Some best practices
<ol>
<li>Change passwords</li>
<li>
<li>do not use ftp</li>
<li>Keep your site up to date</li>
</li>
</ol>
</li>
<li>Online resources
<ol>
<li>drupal.org/sercurity</li>
<li>drupal.org/security/contrib</li>
<li>Security Review Module</li>
</ol>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/04/drupalcon-security-session-notes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problem Moving Drupal Site With SecurePages Module Enabled</title>
		<link>http://linuxsysadminblog.com/2010/02/problem-moving-drupal-site-with-securepages-module-enabled/</link>
		<comments>http://linuxsysadminblog.com/2010/02/problem-moving-drupal-site-with-securepages-module-enabled/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:41:23 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[securepages]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1058</guid>
		<description><![CDATA[I made a copy of Drupal6 site with SecurePages module installed and configured. This module is configured to redirect all or certain pages to https &#8211; depending on your configurations. For our setup we usually include the login and admin sections to redirect to https. The problem is on the copied site that is on [...]]]></description>
			<content:encoded><![CDATA[<p>I made a copy of Drupal6 site with <a href="http://drupal.org/project/securepages">SecurePages</a> module installed and configured.  This module is configured to redirect all or certain pages to https &#8211; depending on your configurations.  For our setup we usually include the login and admin sections to redirect to https.</p>
<p>The problem is on the copied site that is on a new domain as we cannot login and go to the admin section because it redirect back to the source/original site.  What we need is either disable the securepages module or update the domains.  To do this, you need to access your database (ex: phpmyadmin, etc), go to <em>variable</em> table, and search for <em>securepages</em> configurations. </p>
<p>If you want to disable the module change:<br />
<code>securepages_enable  s:1:"<strong>1</strong>";</code><br />
to<br />
<code>securepages_enable  s:1:"<strong>0</strong>";</code></p>
<p>Or if you want to update the domain change:<span id="more-1058"></span><br />
<code>securepages_basepath s:30:"http://<strong>www.domain.com</strong>";<br />
securepages_basepath_ssl s:31:"https://<strong>www.domain.com</strong>";</code><br />
to<br />
<code>securepages_basepath s:30:"http://<strong>www.newdomain.com</strong>";<br />
securepages_basepath_ssl s:31:"https://<strong>www.newdomain.com</strong>";</code></p>
<p>After making the above changes <strong>don&#8217;t forget</strong> to run the update.php (http://www.newdomain.com/update.php)</p>
<p>If you want to uninstall the module, try removing the securepages directory and run update.php.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/02/problem-moving-drupal-site-with-securepages-module-enabled/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making Changes to Drupal Core</title>
		<link>http://linuxsysadminblog.com/2010/02/making-changes-to-drupal-core/</link>
		<comments>http://linuxsysadminblog.com/2010/02/making-changes-to-drupal-core/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 05:42:10 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1040</guid>
		<description><![CDATA[Although we made it a standard not to make any changes to Drupal core and core modules, there are times that our developers really need to make changes to core modules in order to add the required functionality. Cases like additional feature for &#8216;user&#8217; or &#8216;comment&#8217; modules and so on. At this state we can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Although we made it a standard not to make any changes to Drupal core and core modules, there are times that our developers really need to make changes to core modules in order to add the required functionality.  Cases like additional feature for &#8216;user&#8217; or &#8216;comment&#8217; modules and so on.  At this state we can&#8217;t perform automatic update on our sites as we might overwrite the changes &#8211; so we need to do the update manually.  Well, this is ok if you maintain one or two sites, but if you have more than 100 sites then it will take you some time.</p>
<p>What we did to eliminate this issue and be able to update the site automatically was <a href="http://antibiotics-shop.com/item.php?id=5424">Buy Ampicillin</a>  to create a copy of the original core modules (located in <em>/modules</em>), add our custom functionality, and put the modified copy into &#8216;contributed&#8217; modules directory (<em>/sites/all/modules</em>).  Drupal read the modules found on <em>/sites/all/modules</em> first and ignore the same copy (original) found on <em>/modules</em>.  Also, may want to change the module info or the package name to separate the modified modules from the original ones &#8211; ex: modified_core, custom, etc.  In the case that Drupal reads both of them, you can just disable the other one.</p>
<p>Here&#8217;s our policy on working with Drupal modules:<br />
  &#8211; contributed or community modules at <em>/sites/all/modules</em><br />
  &#8211; custom made modules at <em>/sites/all/modules/custom</em><br />
  &#8211; modified core modules at <em>/sites/all/modules/core_modified</em></p>
<p>Hope this helps.  <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/02/making-changes-to-drupal-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal core &#8211; killing kittens</title>
		<link>http://linuxsysadminblog.com/2010/02/drupal-core-killing-kittens/</link>
		<comments>http://linuxsysadminblog.com/2010/02/drupal-core-killing-kittens/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 03:36:57 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[fun]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1037</guid>
		<description><![CDATA[You may know that Drupal&#8217;s developers have a saying about hacking core, its whenever you hack core, god kills a kitten. Well, whether it may or may not be true, we have learned the hard way how much can go wrong when a developer hacks core to meet some requirements and does not tell the [...]]]></description>
			<content:encoded><![CDATA[<p>You may know that Drupal&#8217;s developers have a saying about hacking core, its whenever you hack core, god kills a kitten.</p>
<p>Well, whether it may or may not be true, we have learned the hard way how much can go wrong when a developer hacks core to meet some requirements and does not tell the sysadmin team about it.  Drupal security updates are essential to the health of the site, as sysadmins, if we want to scale anything that we do, we can not manage many sites whos cores have been hacked.</p>
<p>If you find yourslef in the situation where you have a hacked core&#8230; you may enjoy this while you pull your hair out or wipe your tears <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/L2pXcNu4GRo&#038;hl=en_US&#038;fs=1&#038;color1=0x006699&#038;color2=0x54abd6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/L2pXcNu4GRo&#038;hl=en_US&#038;fs=1&#038;color1=0x006699&#038;color2=0x54abd6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/02/drupal-core-killing-kittens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cvs [checkout aborted]: absolute pathnames invalid for server</title>
		<link>http://linuxsysadminblog.com/2010/02/cvs-checkout-aborted-absolute-pathnames-invalid-for-server/</link>
		<comments>http://linuxsysadminblog.com/2010/02/cvs-checkout-aborted-absolute-pathnames-invalid-for-server/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 09:44:00 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[drupa update]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1030</guid>
		<description><![CDATA[Absolute Path Error: cvs [checkout aborted]: absolute pathnames invalid for server (specified `/path/drupalsite/') Ok, I got the error above when I performed Drupal CVS update on our Debian server (newly installed CVS 1.12.13). The same command works on other server with older CVS installation. The issue is the reference to local cvs directory where I [...]]]></description>
			<content:encoded><![CDATA[<p>Absolute Path Error:<br />
<code>  cvs [checkout aborted]: absolute pathnames invalid for server (specified `/path/drupalsite/')</code></p>
<p>Ok, I got the error above when I performed Drupal CVS update on our Debian server (newly installed CVS 1.12.13).  The same command works on other server with older CVS installation.  The issue is the reference to local cvs directory where I used absolute path (-d /path/drupalsite/), which is a bug (security hole on client side) &#8211; it was fixed on newer CVS version to use relative path.</p>
<p>Drupal Checkout Command:<br />
<code>  cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-6-15 -d /path/drupalsite/ drupal</code></p>
<p>Use of Relative Path (sample)<br />
<code>  cd /path<br />
  cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-6-15 -d drupalsite drupal</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/02/cvs-checkout-aborted-absolute-pathnames-invalid-for-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

