Free Ebooks Resources

Enabling clean url in windows xp with xampp

mod_rewrite module is not enabled by default in xampp. To enable clean urls in drupal site with local environment (xampp) in windows XP follow these steps.

To enable mod_rewrite in xampp

1. You have to go to the directory of installation that is

<xampp-directory>\apache\conf

Look for the #LoadModule rewrite_module modules/mod_rewrite.so line in httpd.conf. file

and uncomment this line by removing “#” sign from the beginning of it. So it will become

LoadModule rewrite_module modules/mod_rewrite.so

2. Also look for AllowOverride None

and change “None” to “All” like this:

AllowOverride All

This line appears 2 or 3 times in the configuration file.

This post is based on “enabling mod rewrite in xampp

The original article is found here.

These are other links that you might find useful.

http://drupal.org/node/43545

http://www.seoecom.com/cms-clean-url

Installing Multiple Drupal Sites

Continued from the previous post “Installing Drupal on Windows XP using Xampp” which can be found here.

This post will show you that how you can install multiple drupal sites with just one installaion of drupal on your system. You can have as many sites as you like that will stand apart from other sites. The admin name and password will remain same for all sites.

1. Zip the drupal folder u wish to clone (in this case drupa5)

2. create a new database but with same privileges.
Databasename: drupalc
Username: drupalc
password: abc

3.go to http://localhost/phpmyadmin/

4. click previleges

5.click on add new user

6. enter user name “drupalc”, select “local” from host and give password “abc”

7. choose option “Create database with same name and grant all privileges”

8. check all these options
SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
TEMPORARY TABLES, LOCK TABLES

9. click go

u must see the following command

CREATE USER ‘drupalc’@'localhost’ IDENTIFIED BY ‘***’;

GRANT SELECT ,
INSERT ,

UPDATE ,
DELETE ,
CREATE ,
DROP ,
INDEX ,
ALTER ,
CREATE TEMPORARY TABLES ,
LOCK TABLES ON * . * TO ‘drupalc’@'localhost’ IDENTIFIED BY ‘***’ WITH

MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0

MAX_USER_CONNECTIONS 0 ;

CREATE DATABASE IF NOT EXISTS `drupalc` ;

GRANT ALL PRIVILEGES ON `drupalc` . * TO ‘drupalc’@'localhost’;

10. to flush privileges click go

12. select the db to be cloned in this case “drupal”

13. click export.

14. keep default options but check “Add DROP TABLE / DROP VIEW” and “save as file” options

and click go

15. save dialog box will appear. choose save

16. open new db that is drupalc

17. click import and browse the text file that u have exported “drupal.txt” and click go

u will now see that it is filled with table.

18. now go make a new folder “drupalc” in htdocs folder and extracts the contents of the

zipped folder “drupal5″ into it.

19. go to htdocs/drupalc/sites/default/settings.php

20. right click it and from properties uncheck read only option apply and click ok

21. open settings.php with wordpad and go to
“$db_url = ‘mysql://user:password@localhost/database’;”

22. change the above line to
“$db_url = ‘mysql://drupalc:abc@localhost/drupalc’; and save the file.”

23. chnage the file attributes to again “read only”

24. go to http://localhost/drupalc/ to see if your site is up and working.

in this example user name and db names are same

InstallingDRUPAL 5.x On WindowsXP Using XAMPP

DRUPAL INSTALLATION WITH XAMPP

This tutorial will show you how to install DRUPAL 5 on windows with xampp.

1. Installing XAMPP

Step 1.

Obtain xampp for your operating system from here.

http://www.apachefriends.org/en/xampp.html

Step 2.

  1. Run the setup and you will see the following window. Choose your desired language. We chose the default english.

The setup wizard will appear. Click next to continue. It is recommended to close all other application while installation.

iii. Choose the destination folder for your installation. We use the default c:\xampp in this case. You can change it to your desired path by selecting browse button. After selecting the destination folder click on the next button. Now xampp will start installation.

vi. Check mark all options from the service section to install apache and mysql and filezilla as service. It is helpful so that you will not need to confiqure them by yourself.

v. A window will appear after it.

vi. If everything is ok then final window will appear . Click finish to continue.

vii. A messege will appear asking about launching the xampp control panel. Click Yes.

viii. Xampp control panel window will appear. If installation was successful then you will see the following screen with Apache, Mysql and FileZilla running as services. You can access xampp control from start->programs->Apachefriends->Xampp->Xampp Control Panel or by clicking on xampp icon on the system tray of your task bar.

ix. To make sure your apache and mysql services are running type http://localhost/xampp/splash.php in your browser window. The following screen will appear.

x. Select English and following screen will appear.

xi. Under the tools option in the left column select phpmyadmin. The following scree will appear.

2. Installing Drupal

After xampp installation the next step is to install Drupal.

Step 1.

Obtain Drupal 5.x from http://drupal.org/download.

Step 2.

The next step is to create database and user for drupal.

i. Extract the drupal folder using 7 zip.

ii. Make a directory named as drupal5 in the xampp/htdocs folder

iii. Place all contents of the drupal into drupal5 directory.

iv. Now create a database for the drupal installation as drupal needs a database in order to be installed. This database will have only one user and this will not be used for any other purposes. You can create database from command prompt and from phpmyadmin. We will show you to create database using command prompt.

v. Go to start->programs->accessories->command prompt.

vi. Type

>>cd xampp/mysql/bin

vii. Log in as root user by using this command

>>mysql –u root

viii. Now first we will create a database for the drupal installation say “drupal5” is the name of that database.

ix. Type

>>create database drupal5;

x. Create user “drupal5user” and grant previleges “SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES” to it.

>> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES

ON drupal5.*

TO ‘drupal5user’@'localhost’ IDENTIFIED BY ‘test’;

xi. To Activate previleges type.s

>>FLUSH PRIVILEGES;

xii. You will see the screen like this.

Step 3.

After the creation of database we need to install drupal by running script.

i. Type http://localhost/drupal5/install.php in your browser.You will see the following screen.

ii. Now provide the database name, username and password you used in the above step while creating database for drupal. The install script will use this information to install drupal in the database that you will provide it. Like we have used the following information. Click on the save configuration and you will see the following screen.

Database name: drupal5

Username: drupal5user

Password: test

i. Click on your new site. You will see the following screen.

ii. Now click the create first account that will act as the administrator account.

iii. Provide the user name and email and you will see the following screen.

iv. Provide password and click submit. You will see the following screen. Now you can login to your account using your id and password.