<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sugarlabs.org/index.php?action=history&amp;feed=atom&amp;title=Drupal</id>
	<title>Drupal - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sugarlabs.org/index.php?action=history&amp;feed=atom&amp;title=Drupal"/>
	<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Drupal&amp;action=history"/>
	<updated>2026-05-09T21:37:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Drupal&amp;diff=14464&amp;oldid=prev</id>
		<title>RodrigoPadula: New page: == Drupal-OLPC community ==  There is a community of Drupal hackers who are deeply interested in the OLPC project and doing some fantastic work at the intersection of the two. See http://g...</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Drupal&amp;diff=14464&amp;oldid=prev"/>
		<updated>2009-01-19T21:25:37Z</updated>

		<summary type="html">&lt;p&gt;New page: == Drupal-OLPC community ==  There is a community of Drupal hackers who are deeply interested in the OLPC project and doing some fantastic work at the intersection of the two. See http://g...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Drupal-OLPC community ==&lt;br /&gt;
&lt;br /&gt;
There is a community of Drupal hackers who are deeply interested in the OLPC project and doing some fantastic work at the intersection of the two. See http://groups.drupal.org/drupal-olpc for more.&lt;br /&gt;
&lt;br /&gt;
== Why do this? ==&lt;br /&gt;
&lt;br /&gt;
Well, here are 3 reasons:&lt;br /&gt;
 * The XO is cool&lt;br /&gt;
 * Drupal is cool&lt;br /&gt;
 * XO + Drupal = righteous!&lt;br /&gt;
&lt;br /&gt;
More seriously, this could let a community of XOers write books, blog, vote, arrange events and store/list structured content and do all the great community centric things that Drupal allows.&lt;br /&gt;
&lt;br /&gt;
This HOWTO uses Lighttpd instead of Apache, because it is much more lightweight. I considered using SQLite instead of MySQL, but after testing found that MySQL was perfectly fast enough (and makes using contributed modules much easier). Having said that, you wouldn&amp;#039;t want to use this for serving more than a handful of clients on a regular XO!&lt;br /&gt;
&lt;br /&gt;
If you are interested in joining other people interested in Drupal on XOs there is a group at http://groups.drupal.org/drupal-olpc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;&amp;lt;em&amp;gt;A fourth reason?&amp;lt;/em&amp;gt;&amp;lt;/strong&amp;gt;: See the Discussion tab on this page for a possible application of Drupal wizardry in actual XO classrooms... [[Talk:Drupal]]&lt;br /&gt;
&lt;br /&gt;
== Installing software ==&lt;br /&gt;
&lt;br /&gt;
Start the &amp;#039;Terminal&amp;#039; activity (on the far right of the menu bar).&lt;br /&gt;
&lt;br /&gt;
Get root access:&lt;br /&gt;
 su&lt;br /&gt;
&lt;br /&gt;
You should now see a prompt that looks like:&lt;br /&gt;
 bash-3.2#&lt;br /&gt;
&lt;br /&gt;
Install the various tools we will need:&lt;br /&gt;
 yum install mysql mysql-server lighttpd lighttpd-fastcgi php php-mysql php-gd&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
&lt;br /&gt;
Start MySQL:&lt;br /&gt;
 /sbin/service mysqld start&lt;br /&gt;
&lt;br /&gt;
Give MySQL a root password:&lt;br /&gt;
 mysqladmin -u root password YOUR-ROOT-MYSQL-PASSWORD&lt;br /&gt;
&lt;br /&gt;
Go to the /etc directory:&lt;br /&gt;
 cd /etc/&lt;br /&gt;
&lt;br /&gt;
Edit the php.ini file (with your favorite editor):&lt;br /&gt;
 nano php.ini&lt;br /&gt;
&lt;br /&gt;
Add the following line to the very bottom of the file:&lt;br /&gt;
 cgi.fix_pathinfo = 1&lt;br /&gt;
&lt;br /&gt;
Edit the lighttpd configuration file and enable FastCGI:&lt;br /&gt;
 nano lighttpd/lighttpd.conf&lt;br /&gt;
&lt;br /&gt;
* Uncomment &amp;#039;&amp;#039;&amp;quot;mod_fastcgi&amp;quot;&amp;#039;&amp;#039; line, in the &amp;#039;&amp;#039;server.modules&amp;#039;&amp;#039; section&lt;br /&gt;
* Uncomment the &amp;#039;&amp;#039;fastcgi.server&amp;#039;&amp;#039; section (all ~8 lines of it)&lt;br /&gt;
&lt;br /&gt;
== XO Friendly MySQL Configuration ==&lt;br /&gt;
&lt;br /&gt;
Copy in the low memory configuration template:&lt;br /&gt;
 cp /usr/share/mysql/my-small.cnf /etc/my.cnf&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file:&lt;br /&gt;
 nano my.cnf&lt;br /&gt;
&lt;br /&gt;
Uncomment the following lines:&lt;br /&gt;
 skip-networking&lt;br /&gt;
 skip-bdb&lt;br /&gt;
&lt;br /&gt;
In the section [mysqld] add the line:&lt;br /&gt;
 skip-innodb&lt;br /&gt;
&lt;br /&gt;
== Service Startup ==&lt;br /&gt;
&lt;br /&gt;
It is recommended that you start the services manually when you (or your friends!) want to use Drupal, but it would be easy to adapt this to autostart if you want. This will save some memory, so your system will run faster the rest of the time.&lt;br /&gt;
&lt;br /&gt;
Note: the /var filesystem appears to not persist over reboots (perhaps it is ROM based - there may be a way round this, I haven&amp;#039;t found one yet), and so we need to recreate and reown the appropriate directories for these services to start.&lt;br /&gt;
&lt;br /&gt;
Go to the root users home directory:&lt;br /&gt;
 cd /root&lt;br /&gt;
&lt;br /&gt;
Start editing a new file:&lt;br /&gt;
 nano start-web.sh&lt;br /&gt;
&lt;br /&gt;
Type the following:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 mkdir /var/run/lighttpd /var/log/lighttpd&lt;br /&gt;
 touch /var/log/lighttpd/error.log /var/log/lighttpd/access.log&lt;br /&gt;
 chown -R lighttpd:lighttpd /var/run/lighttpd /var/log/lighttpd&lt;br /&gt;
 mkdir /var/run/mysqld&lt;br /&gt;
 chown mysql:mysql /var/run/mysqld&lt;br /&gt;
 /etc/init.d/lighttpd start&lt;br /&gt;
 /etc/init.d/mysqld start&lt;br /&gt;
&lt;br /&gt;
Make the script executable, and run it to check everything starts up OK:&lt;br /&gt;
 chmod u+x start-web.sh&lt;br /&gt;
 ./start-web.sh&lt;br /&gt;
&lt;br /&gt;
When you are done, start the &amp;#039;Browse&amp;#039; activity, and go to the URL &amp;#039;localhost&amp;#039; - you should see the lighttpd placeholder page.&lt;br /&gt;
&lt;br /&gt;
After a reboot, when you want to use Drupal just type:&lt;br /&gt;
 su -c /root/start-web.sh&lt;br /&gt;
&lt;br /&gt;
== Install Drupal ==&lt;br /&gt;
&lt;br /&gt;
Switch back to the Terminal activity, and change to the web root directory:&lt;br /&gt;
 cd /srv/www/lighttpd/&lt;br /&gt;
&lt;br /&gt;
Clean it up, and change ownership:&lt;br /&gt;
 pwd&lt;br /&gt;
 rm *&lt;br /&gt;
 chown olpc:olpc .&lt;br /&gt;
&lt;br /&gt;
Switch back to our regular (non-root) user, and go to our home directory:&lt;br /&gt;
 exit&lt;br /&gt;
 cd ~&lt;br /&gt;
&lt;br /&gt;
Download and extract Drupal (replace x.x with the latest Drupal stable version, currently 5.5):&lt;br /&gt;
 wget http://drupal.org/files/projects/drupal-x.x.tar.gz&lt;br /&gt;
 tar -zxvf drupal-x.x.tar.gz&lt;br /&gt;
&lt;br /&gt;
Move the contents of the drupal-x-x directory into the webroot:&lt;br /&gt;
 mv drupal-x.x/* drupal-x.x/.htaccess /srv/www/lighttpd/&lt;br /&gt;
&lt;br /&gt;
Change to the web root directory, create a files directory (for uploads) and adjust permissions on this and the settings.php file:&lt;br /&gt;
 cd /srv/www/lighttpd/&lt;br /&gt;
 mkdir files&lt;br /&gt;
 chmod a+w files&lt;br /&gt;
 chmod a+w sites/default/settings.php&lt;br /&gt;
&lt;br /&gt;
Follow the regular Drupal installation process:&lt;br /&gt;
* Create the database: http://drupal.org/getting-started/5/install/create-database/mysql&lt;br /&gt;
* Run the installation script: http://drupal.org/getting-started/5/install/run-script&lt;br /&gt;
* Configure your site: http://drupal.org/getting-started/5/install/configure&lt;br /&gt;
* Set up cron: http://drupal.org/getting-started/5/install/cron&lt;br /&gt;
&lt;br /&gt;
And you are all set - congratulations!&lt;/div&gt;</summary>
		<author><name>RodrigoPadula</name></author>
	</entry>
</feed>