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

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

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 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

How do you write a good introduction?

Creativity, good understanding of the topic and the ability to influence are the three main characteristics of a good introductory paragraph. Apart from the title, this section highlights what to expect in the subsequent paragraphs.
Make the primary sentence interesting to read:
The primary sentence must get the consideration of the reader. Make a point to give a fascinating fact relating to the topic or a favorable quote. It is possible to add humor, particularly when utilizing a casual tone. Check the sample introduction provided by custom essay writing service, you can get better idea.

Make supporting sentences:
Supporting sentences will be sentences that legitimize the claims made in the past sentences. They demonstrate that the writer knows about the point and is willing to give extra data. For instance, if the writer says George Washington was the first president of the United States, the supporting sentence gives extra subtle elements, for example, the date, month and year of his election into office.

Do not explain everything in your introductory paragraph:
Whether you are composing a essay paper or article, don't utilize the introduction to disclose all that you need to examine. This section is meant to entice people and make them want to read the rest of the article or essay to learn more about the topic. If you are not good at writing then seek help from the custom essay writing service, you can make your paper the one of the best.

http://american-writers.org/

Add new comment | arxic Drupal

Thank you a bunch for sharing this with all of us you
actually recognise what you are speaking about! Bookmarked.
Please additionally discuss with my web site =). We will have a hyperlink alternate contract among
us

Add new comment | arxic Drupal

Hi there, just became alert to your blog through Google, and found
that it's truly informative. I'm gonna watch out for brussels.

I'll be grateful if you continue this in future. A lot of people will be benefited from your writing.
Cheers!

How do you write a good introduction?

Creativity, good understanding of the topic and the ability to influence are the three main characteristics of a good introductory paragraph. Apart from the title, this section highlights what to expect in the subsequent paragraphs.
Make the primary sentence interesting to read:
The primary sentence must get the consideration of the reader. Make a point to give a fascinating fact relating to the topic or a favorable quote. It is possible to add humor, particularly when utilizing a casual tone. Check the sample introduction provided by custom essay writing service, you can get better idea.

Make supporting sentences:
Supporting sentences will be sentences that legitimize the claims made in the past sentences. They demonstrate that the writer knows about the point and is willing to give extra data. For instance, if the writer says George Washington was the first president of the United States, the supporting sentence gives extra subtle elements, for example, the date, month and year of his election into office.

Do not explain everything in your introductory paragraph:
Whether you are composing a essay paper or article, don't utilize the introduction to disclose all that you need to examine. This section is meant to entice people and make them want to read the rest of the article or essay to learn more about the topic. If you are not good at writing then seek help from the custom essay writing service, you can make your paper the one of the best.

http://american-writers.org/

Add new comment | arxic Drupal

You actually make it seem so easy with your presentation but I find this
topic to be actually something which I think I would never understand.
It seems too complicated and very broad for me.
I'm looking forward for your next post, I will try to get the hang of it!

Add new comment | arxic Drupal

Hello there I am so glad I found your weblog, I really found you by mistake,
while I was researching on Google for something else, Nonetheless I am here now and would just like to say many thanks for a fantastic post
and a all round thrilling blog (I also love the theme/design), I
don't have time to browse it all at the minute but I have bookmarked it and
also included your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep
up the great job.

Add new comment | arxic Drupal

Today, I went to the beachfront with my kids. I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell to her ear and screamed.
There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is completely
off topic but I had to tell someone!

Add new comment | arxic Drupal

When I originally commented I clicked the "Notify me when new comments are added" checkbox and
now each time a comment is added I get three e-mails with the same comment.

Is there any way you can remove people from
that service? Thanks!

Add new comment | arxic Drupal

excellent points altogether, you just won a logo new reader.
What would you suggest in regards to your post that you made a
few days in the past? Any certain?

Add new comment | arxic Drupal

What's Happening i'm new to this, I stumbled upon this I have found It absolutely useful and it
has aided me out loads. I am hoping to contribute & assist different customers like its helped me.
Great job.

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. Thus that's
why this piece of writing is amazing. Thanks!

Add new comment | arxic Drupal

It's the best time to make some plans for the future and it is time to be happy.
I've read this post and if I could I want to suggest you few interesting things or advice.

Maybe you can write next articles referring to this article.
I desire to read more things about it!

Pages

Add new comment