Drupal server set-up for Ubuntu 10.04 (Lucid Lynx)

First, do a clean install of Ubuntu 10.04 Lucid Lynx.

Run updates out-of-the-box:

sudo apt-get update
sudo apt-get upgrade

Install build-essential and curl

sudo aptitude install build-essential
sudo apt-get install curl

Install LAMP server

sudo tasksel install lamp-server

Enable mod_rewrite in Apache2 to enable Clean URLs in Drupal

sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart

Disable unused Apache2 modules

sudo a2dismod cgi
sudo a2dismod autoindex

Increase PHP memory limit

sudo sed -i 's/memory_limit = .*/memory_limit = 128M/' /etc/php5/apache2/php.ini
sudo sed -i 's/upload_max_filesize = .*/upload_max_filesize = 128M/' /etc/php5/apache2/php.ini
sudo sed -i 's/post_max_size = .*/post_max_size = 128M/' /etc/php5/apache2/php.ini

Install required packages for PECL uploadprogress PHP module

sudo apt-get install php5-dev php-pear
sudo pecl install uploadprogress

Connect PECL uploadprogress and PHP

sudo sed -i '/; extension_dir directive above/ a\ extension=uploadprogress.so' /etc/php5/apache2/php.ini

or, the preferred method:

sudo nano /etc/php5/apache2/conf.d/uploadprogress.ini
extension=uploadprogress.so

Install the GMP Math library for PHP5 for optimal OpenID performance

sudo apt-get install php5-gmp
sudo service apache2 restart

Set the server timezone

sudo dpkg-reconfigure tzdata

Turn off Apache2 server signature [added security]

sudo sed -i 's/ServerSignature On/ServerSignature Off/' /etc/apache2/apache2.conf>

Tell Apache2 to allow Drupal .htaccess file [AllowOverride]

sudo sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/sites-available/default

Install APC opcode caching [performance]

sudo apt-get install php-apc

Enable Apache2 deflate and expires modules

Note: Apache2 conf file warns that CSS, and javascript may not work with IE6

sudo a2enmod expires
sudo a2enmod deflate
sudo sed -i 's/DEFLATE text\/html text\/plain text\/xml/DEFLATE text\/html text\/plain text\/xml test\/css text\/javascript application\/x-javascript/' /etc/apache2/mods-available/deflate.conf

Enable MySQL query caching

sudo sed -i 's/query_cache_limit       = 1M/query_cache_limit       = 1M\ query_cache_type       = 1/' /etc/mysql/my.cnf

Restart Apache2 and MySQL

sudo /etc/init.d/apache2 restart
sudo service mysql restart

Download and move Drupal to web root

wget http://ftp.drupal.org/files/projects/drupal-x.xx.tar.gz tar xvzf drupal-x.xx.tar.gz sudo mkdir /var/www/drupal sudo mv drupal-x.xx/* drupal-x.xx/.htaccess /var/www/drupal

Create ‘files’ folder for Drupal default site

sudo mkdir /var/www/drupal/sites/default/files
sudo chown www-data:www-data /var/www/drupal/sites/default/files

Copy Drupal settings.php file for default site

sudo cp /var/www/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php

Configure MySQL database for Drupal default site

mysqladmin -u root -p create drupal
mysql -u root -p
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO ‘drupaluser’@’localhost’ IDENTIFIED BY ‘drupalpass’;
mysql> FLUSH PRIVILEGES
mysql> \q

Install PHPMyAdmin

sudo apt-get install phpmyadmin

Follow the prompts to complete the installation of PHPMyAdmin:

  • Select apache2
  • Do not need the dbconfig-common, MySQL is already going
  • May need to:

Add to /etc/apache2/apache2.conf:

Include /etc/phpmyadmin/apache.conf

or:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin
sudo /etc/init.d/apache2 reload

Complete Drupal installation through a web browser:

Go to http://localhost.com/drupal/[/prettify]

You may have to enter database information in settings.php manually.

Set-up cron job

crontab -e 0,30 * * * * curl --silent --compressed http://site.com/cron.php[/prettify]

Set-up a FTP server: proftpd or vsftpd

Set-up firewall: ufw

Comments

At the moment it's PHP

At the moment it's PHP Version 5.3.6-13ubuntu3.3 - I've read that you need at least 5.3.7 to run phpsec. As far Symfony 2, it doesn't require newer php version, so it's enough for almost every Symfony developer.

Add new comment | arxic Drupal

Its such as you read my thoughts! You seem to understand so much
about this, like you wrote the e book in it or something. I
think that you can do with a few % to drive the message house a bit, however instead of
that, this is fantastic blog. An excellent read. I'll certainly be back.

Add new comment | arxic Drupal

Thank you for another informative blog. The place else could I get that type
of information written in such a perfect approach? I've a
mission that I'm just now running on, and I've been at the glance out for such info.

Add new comment | arxic Drupal

My brother suggested I would possibly like this website.
He was entirely right. This post truly made my day.
You cann't imagine just how much time I had spent for this
info! Thank you!

Add new comment | arxic Drupal

great publish, very informative. I ponder why the opposite specialists of this sector
do not notice this. You should proceed your writing.
I am confident, you have a huge readers' base already!

Add new comment | arxic Drupal

I love your blog.. very nice colors & theme. Did you create this website yourself
or did you hire someone to do it for you? Plz reply as I'm looking to create my own blog and would like to find out where u
got this from. cheers

Add new comment | arxic Drupal

Fantastic beat ! I wish to apprentice while you amend your site,
how could i subscribe for a blog site? The account aided me a acceptable
deal. I had been a little bit acquainted of this your broadcast offered bright
clear idea

Add new comment | arxic Drupal

I was excited to uncover this great site. I want to
to thank you for ones time for this fantastic
read!! I definitely appreciated every part of it and i
also have you book marked to see new things on your blog.

Add new comment | arxic Drupal

When someone writes an post he/she retains the idea of a user in his/her brain that how a user can be
aware of it. Therefore that's why this article is perfect.
Thanks!

Add new comment | arxic Drupal

Hey I know this is off topic but I was wondering if you knew of
any widgets I could add to my blog that automatically tweet my
newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy reading your
blog and I look forward to your new updates.

Add new comment | arxic Drupal

Hey There. I found your blog using msn. This is
a really well written article. I will make sure to bookmark it and return to read more of your useful info.
Thanks for the post. I will definitely return.

Add new comment | arxic Drupal

Its like you learn my thoughts! You appear to know
a lot about this, like you wrote the e book in it or something.
I feel that you simply can do with a few % to force the message
house a bit, however other than that, this is wonderful blog.
An excellent read. I'll definitely be back.

Add new comment | arxic Drupal

I'd like to thank you for the efforts you have put in penning this website.
I really hope to view the same high-grade content
by you later on as well. In fact, your creative writing abilities has motivated me to get
my very own blog now ;)

Add new comment | arxic Drupal

I know this if off topic but I'm looking into starting my own weblog and was wondering
what all is required to get setup? I'm assuming having a blog like yours
would cost a pretty penny? I'm not very web savvy so I'm not 100%
positive. Any suggestions or advice would be greatly appreciated.
Appreciate it

Add new comment | arxic Drupal

Howdy just wanted to give you a quick heads up and let you know a few
of the pictures aren't loading correctly. I'm not sure why but I think its a linking issue.
I've tried it in two different browsers and both show the same outcome.

Add new comment | arxic Drupal

My coder is trying to convince me to move to .net from PHP.
I have always disliked the idea because of the expenses.
But he's tryiong none the less. I've been using Movable-type on several websites for about
a year and am nervous about switching to another platform.
I have heard excellent things about blogengine.net.
Is there a way I can import all my wordpress posts into it?

Any help would be really appreciated!

Add new comment | arxic Drupal

Hi there would you mind stating which blog platform you're
using? I'm going to start my own blog soon but I'm having a difficult time choosing between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your layout seems different then most
blogs and I'm looking for something completely unique. P.S Sorry for being
off-topic but I had to ask!

Add new comment | arxic Drupal

Hi! I'm at work browsing your blog from my new iphone!
Just wanted to say I love reading your blog and look forward to all
your posts! Keep up the superb work!

Add new comment | arxic Drupal

I delight in, lead to I found just what I was taking a look for.
You've ended my four day lengthy hunt! God Bless you man.
Have a nice day. Bye

Add new comment | arxic Drupal

Asking questions are genuinely pleasant thing if you are not understanding anything totally, but this piece of
writing gives nice understanding yet.

Add new comment | arxic Drupal

Thank you a lot for sharing this with all people you really know what you're talking about!
Bookmarked. Kindly additionally consult with my website =).
We could have a hyperlink change contract among
us

Add new comment | arxic Drupal

Hi colleagues, how is the whole thing, and what you desire to say
on the topic of this paragraph, in my view its
genuinely amazing designed for me.

Add new comment | arxic Drupal

It's a shame you don't have a donate button! I'd definitely donate
to this brilliant blog! I suppose for now i'll settle for bookmarking and adding your RSS feed to my Google account.
I look forward to new updates and will share this site with my Facebook group.

Talk soon!

Add new comment | arxic Drupal

Excellent goods from you, man. I have understand your stuff previous to and you're
just too wonderful. I really like what you
have acquired here, certainly like what you are saying and the way in which you say
it. You make it entertaining and you still care for to keep
it wise. I cant wait to read much more from you.
This is really a tremendous web site.

Add new comment | arxic Drupal

Do you have a spam problem on this website; I also am a blogger, and I was wanting to know your situation;
we have developed some nice methods and we are looking to exchange
strategies with others, be sure to shoot me an e-mail if interested.

Add new comment | arxic Drupal

Hello, I think your blog might be having browser compatibility issues.
When I look at your blog in Safari, it looks fine but when opening in Internet
Explorer, it has some overlapping. I just wanted to give you a quick heads up!
Other then that, great blog!

Pages

Add new comment