This is an old revision of the document!
Overview
Setting up LAMP (Linux, Apache, MySQL & PHP)
If you have Debian
OS installed in your system, add the following line to /etc/apt/sources.list and put
# before all existing lines in the file
deb http://ftp.us.debian.org/debian testing main contrib non-free
apt-get update
(This is safer than apt-get upgrade or apt-get dist-upgrade, because it safely upgrades your server and resolves dependencies)
apt-get install apache2 php5 libapache2-mod-php5 php5-gd
chmod -R 777 /var/www
Check if apache is working
/etc/init.d/apache2 restart
nano /var/www/info.php
Copy & paste the folowing php code in the nano editor
<?php
phpinfo();
?>
Go and check http://localhost/info.php in your browser to see configuration of installed php version.
apt-get install mysql-server mysql-client php5-mysql
apt-get install phpmyadmin
When prompted for a password enter hello.
mysqladmin -u root -p create d7
Enter hello when you are prompted for password. If you get a “Database exists” error, please issue “mysqladmin -u root -p drop d7” to delete the existing database and then issue the create command.
a2enmod rewrite
/etc/init.d/apache2 restart
chmod -R 777 /var/www
Install Drupal
Bluemasters theme
Downloading Bluemasters theme
Installing Bluemasters theme
Adding content
Click on add content in top black menu
Then click on Basic page
Give Title as Workshop
Write a summary about workshop in the body
Check the box Provide a menu link under Menu Settings below Text format group
Give Workshop in Menu link title
Ensure <Main menu> under Parent item
Choose 1 as Weight and click save
Similarly create pages about Prepare your computer, Software carpentry & CMS but ensure Workshop under Parent item for the new pages
Click on Structure in the top black menu and then click menus
Then click list links near Main menu
Then click edit near Workshop
Check the box Show as expanded and then save
Slideshow
Prepare Images & Content
Edit page--front.tpl.php
<div id="banner">
<?php print render($page['banner']); ?>
<div class="main_view">
<div class="window">
<div class="image_reel">
...
ADD IMAGES HERE
...
</div>
<div class="descriptions">
...
ADD IMAGE DESCRIPTIONS HERE
...
</div>
</div>
<div class="paging">
...
ADD IMAGE NUMBERS HERE
...
</div>
</div>
</div><!--EOF:banner-->
<a href="<?php print url('node/1'); ?>"><img src="<?php print base_path() . 'sites/default/files/slide-image-1.jpg'; ?>"></a>
node/1 is the url of the page which will be linked to the image
sites/default/files/slide-image-1.jpg is the path to the image
<div class="desc" style="display: none;">About Bluemasters</div>
About Bluemasters is the image description which will appear on the image in the slideshow
<a rel="1" href="#">1</a>
Based on the number of images, change value of rel attribute appropriately to maintain a numeric sequence
Blocks
Creating blocks
Normal blocks
Blocks with Images
Follow the previous mentioned steps to create a block except Block body
Download a image, rename it to block.jpg and copy it to d7/sites/default/files
Put the following content in Block body to put image
<img src='/d7/sites/default/files/block.jpg' height=86 width=249>
Select
Full HTML under
Text format
Then Save block
Home page
Click on Structure in the top black menu & then click Blocks
Search for About Workshop Block and change the Region to Home area 1
Then Save blocks
Similarly create two more blocks and place it under Home area 2 && Home area 3
Other pages
Goto Modules in top black menu and search for contact
Check the box in the Enabled column near contact
Scroll down & Save configuration
Goto Structure > Menus in top black menu
Click List links near Main menu
Click Add link
Configure the menu item
Search
Goto Configuration in top black menu
Click Search settings under Search & Metadata
If Indexing status is 0% click on cron maintenance task link at the top
Then click on Run cron link appearing in the middle of the page
Then goback to Indexing status and ensure 100%