Search DrupalHybrid.com

Step by Step installation Guide RUNNING DRUPAL WITH WAMP

1.      INSTALL WAMP to your C Drive
b.      Go through the steps normally. Keep SMTP localhost and change the e-mail to your email address

2.      INSTALL DRUPAL by going to http://drupal.org/project/drupal
 
a.      Scroll down to Recommended Releases and right click the latest release
b.      Save  Link As…
c.      C:\wamp\www\
d.      Save
e.      After the file downloads, unzip the .tar.gz file
                                            i.      To unzip, if you don’t have a program, download http://www.7-zip.org/
                                            ii.     Once installed, Go to Start>Programs>7 zip
                                            iii.    Go to Tools>Options>System>Select All>OK
                                            iv.    Go back to C/wamp/www and right click the drupal file
                                            v.     7 Zip>Extract Here
                                            vi.    Rename the newest extracted folder to drupal (Now it  should
                                                                      be C:\wamp\www\drupal\.....) 
                                            ix.    Delete the other two folders (there should be only drupal and index in
                                                                      www folder)
                                             x.    Make sure you leave the index.php where it is

3.     Ensure WAMP has started. (Go to Start>Programs>WampServer>Start WampServer

4.     In your browser, go to http://localhost/drupal 

5.     Go to wamp/www/drupal/sites/default/, copy the default.settings.php file, paste it in the
        same folder and rename (Copy of default.settings.php) to settings.php

 6.    Left click on your wamp icon in the tray; go to apache>apache modules. Scroll down and
         select “rewrite_module”  (all prog start)

        DATABASE


  7.       Left click on your wamp icon in the tray and select phpMyAdmin
7.1       Go  to localhost --> privileges --> check root (localhost) -->Action --> Change Password
                  ----> change password what you want for database (and remember it
                           for further use)    -->   GO


7.2       Go to wamp\apps\php myAdmin\Config.inc.php 
            and locate and set

                ['user'] = 'root';
                $cfg['Servers'][$i]['password'] = 'yourpassword';   //change only yourpassword
                ['AllowNoPassword'] = false;                                                            
                
7.3     Go back to PhpMyAdmin Page and refresh or open it from WAMP tray.
7.4     Go  to localhost --> privileges --> check root (127.0.0.1) -->Action --> Change Password
                  ----> change password what you want for database (same as above)

(if an error occurred on PhpMyAdmin Page change ['AllowNoPassword'] = true;    save file, repeat steps 7.3 ,7.4 and then change  
 wamp\apps\php myAdmin\Config.inc.php change  ['AllowNoPassword'] = false; save file )

8.      Type drupal in “Create New Database” under “My SQL localhost”

9.       Select Create

10.    Go to the Privileges tab and ensure all permissions are granted
11.    To grant privileges for any user --> Go to "Edit Privileges" in Action tab >   Check All > GO
12.    Go to the SQL tab and fill in the open box with query:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX,   ALTER,  CREATE TEMPORARY TABLES, LOCK TABLES ON yourdatabasename.* TO    'admin'@'localhost' IDENTIFIED BY 'your password'; 

14.   Go to the SQL tab and fill in the open box with query : FLUSH PRIVILEGES;

DRUPAL

15.  Go to drupal page http://localhost/drupal, Scroll to bottom and select “Install Drupal
       in  English
16.  Back in your browser, refresh the page
17.  Change databasename to drupal , database username to root      and      database password to your selected earlier password.
18.  (Make sure to restart all services from wampserver) and Select Save 
19.  Go back to your localhost/drupal webpage to continue drupal installation
20.  Site name = whatever you choose
21.  username = admin
22.  password = previously selected password (to be on safe side) or (you can use new pw)
23   Select your time zone
24.  Enable Clean URLS
25   Enable check for updates
26.  Save and Continue
27.  If you get error page Scroll to bottom, ignore error message, click on “your new site”
28.  Now you logedin as username admin password your..

To increase the execution time of of Drupal page
Go to WampServer  > PHP > php.ini > search for max_execution_time and change it to 90 (max_execution_time = 90)


CREATING ADDITIONAL SITES
1.      Go to phpMyAdmin
2.      Select drupal(##) from the left hand column
3.      Go to Operations tab
4.      Type in the name of your new database name in the “Copy Database to:” section
5.      Ensure the following areas are selected:
a.       Structure and Data
b.      Create Database before copying
c.       Add Auto_Increment Value
d.      Switch to copied database
6.      Select “Go”
7.      Repeat steps 13 - 15 (except rename databasename to the name of your new database)
8.      Go to wamp/www/drupal/sites/, create a new folder, and rename it to the name of your new database
9.      Within that new folder, create three folders named files, modules, and themes
10.  Copy the settings file from /drupal/sites/default/ and paste it in the new folder you just created
11.  Using WordPad, Open drupal/sites/your database folder/settings (Ensure settings.php isn’t read-only)
12.  Find the following line:
$db_url = 'mysqli://admin:(yourpassword)@localhost/drupal';
$db_prefix = '';
a.       Change drupal to your new database name
13.  Find the following line:
# $base_url = 'http://www.example.com';  // NO trailing slash!
a.       Uncomment the line and change to:
   $base_url = 'http://your database name'; (i.e. http://drupal)
14.  Save and Close
15.  Click on the wamp icon in the tray
16.  Select Apache>httpd.conf
17.  Uncomment the following line:
# Include conf/extra/httpd-vhosts.conf
18.  Save and close
19.  Go to C:\wamp\bin\apache\Apache2.2.11\conf\extra and open the httpd-vhosts.conf file using WordPad
20.  Scroll to the bottom and comment out the following 18 lines:
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.localhost
#    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.localhost"
#    ServerName dummy-host.localhost
#    ServerAlias www.dummy-host.localhost
#    ErrorLog "logs/dummy-host.localhost-error.log"
#    CustomLog "logs/dummy-host.localhost-access.log" common
#</VirtualHost>

#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host2.localhost
#    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.localhost"
#    ServerName dummy-host2.localhost
#    ErrorLog "logs/dummy-host2.localhost-error.log"
#    CustomLog "logs/dummy-host2.localhost-access.log" common
#</VirtualHost>

21.  Add the following beneath that:
<VirtualHost *:80>
      DocumentRoot c:/wamp/www/drupal/
      ServerName your database name
</VirtualHost>
  1. Save and Close
23.  Go to Start>Programs>Accessories> and Right Click on Notepad and open as Administrator
24.  Open the hosts file from C:\Windows\System32\drivers\etc\ (You may need to change from txt documents to all files)
25.  Add the following line to the bottom of the document then save:
127.0.0.1       your database name
       58. Save and Close
       59. Left Click on your wamp icon in the tray and select “Restart All Services”
       60. Once your server restarts, go back to your browser and type in http://your database name
       61. Use Admin and your password to login

Congratulations You have done it...

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.