Time

Detikbola

Powered by Blogger.
Thursday, September 16, 2010


I tested two versions of Drupal, one is version 7 and the other is version 6.19. Technically Drupal version 7 will install on our server but it is not fully compatible. The reason being is that Drupal uses the mail() function just like WordPress to send out email. The mail() funciton is set to look for the web servers local smtp service to relay out email. This will fail because the web servers smtp service has been disabled. A web application will have to specify the same SMTP server your email client will use (i.e mail.mydomain.com) and also past the SMTP authentication. To get Drupal to use SMTP authentication you will need to download the addon module from its site and install it with your Drupal application. Currently at this time, the SMTP module is not compatible with Drupal version 7 and it is only compatible with Drupal version 6. Therefore, the only version that is truly compatible with our system is Drupal version 6.

Navigate to the Drupal website and download the Drupal application to your personal computer.

http://drupal.org/project/drupal

At this time it is also recommended that you setup the MySQL database in your WinHost control panel. You will need to know MySQL server name, database name, MySQL DB login, and the MySQL DB password.

Installation Instructions

1. Download and uncompress Drupal on your local machine.

2. Navigate to the folder Sites/Default. Inside that folder you will see default.settings.php. Copy that file and save it on the same folder with the name settings.php. Although the contents inside it are the same, Drupal will need both of these files when it runs its installation procedure.

3. Navigate to the folder Sites/All. Create a folder named Modules. This will hold the SMTP module that will help Drupal use SMTP authentication.

4. Create a web.config file within root level of the Drupal application. I have attached to this thread the elements that will have to be in this web.config file. If you already have a web.config file setup, you will need to make sure you create and integrate the elements into existing web.config file. This can prove to be tricky; hence I suggest you upload Drupal as its own application. If you do not want to load Drupal on the root, you can upload it to a subfolder. Bear in mind that the web.config file still have to exist in the Drupal application. To get the latest copy of the web.config file for Drupal refer to this link.

http://drupal.org/node/557898

5. Once the file is uploaded call on your Drupal application from the browser. As an example and assuming you uploaded Drupal on your root you will use http://myAccountsDomainName.com

6. Follow the instructions to install Drupal.

7. The Database Configuration screen will prompt you to input your database information. Input your Database Name, the db login and password. Click on the Advanced Options link and type the MySQL server name. The Database port number can be left blank. It will default to the MySQL port of 3306. I suggest you define the table prefix. This will help avoid any future conflicts.

8. On the Configure Site you will input all the necessary fields. This is not server specific you can define input the fields' base on your own requirements.

9. On the last page when you have completed the installation, you will get an error that states that the mail() function does not work. You can ignore this for now and you will need to install the SMTP module so that your Drupal application can send out email.

From here you can log into your site and configure some settings. Once you are ready, log out and close your browser and we can go on ahead installing the SMTP module for Drupal.

Installing SMTP Module for Drupal.

1. Download the SMTP module using this link to your local computer. I downloaded the Developement Release version 6.x-1.x
http://drupal.org/project/smtp

2. Next you will need to download the PHPMailer form this link. There are two versions you can download. The newest version is version 5.1, however according to Drupal's documentation the SMTP module only supports version 2.2.1. I tested both and both worked and I ended up using PHPMailer version 5.1.
http://sourceforge.net/projects/phpm...0for%20php5_6/

3. Uncompress the SMTP module on your local computer. Once it is uncompressed navigate to the SMTP folder. Inside create the folder PHPMailer. You will upload the PHPMailer component in this folder.

4. Connect to the web server using FTP. In your Drupal appplication navigate to Sites/All and create the folder Modules. Within the Modules folder create the folder SMTP.

5. Upload all the SMTP module files and folders into the folder Sites/All/Modules/SMTP.

6. Once you uploaded the SMTP module navigate back to the SMTP folder and go into the PHPmailer folder. Upload the PHPMailer components into the folder.

7. Pull up your Drupal applicaton on the browser and log in as the administrator.

8. Go to Administer/Modules. Scroll down to the bottom of the page an you will see the module for SMTP Authentication Support. Check the box to enable it and save the configuration.

9. Go back to the Administer page and scroll down the bottom of the page. You should now see SMTP Authentication Support. When you go into this page, you will see an option to turn On or Off the module. Make sure you set it to 'On' and input all the SMTP server setting. Leave the SMTP backup server blank. Input the full email address for the SMTP authentication and the password to that POP account. Make sure you keep encrypted protocol to 'No'. The SMTP server does not support encrypted connection. If you are using Google's email server then you will set this to 'Yes' since Goolge requires encrypted connection.

10. Save the configuration and you are now done with the Drupal installation.

Drupal has many other features and modules which I have not tested. However, the guidelines provided is the base guidelines to get Drupal installed and sending out email through our SMTP server. The rest of the configuration will be base on your own business needs and requirements.

1 comments:

Macrosoft said...

Thanks for sharing drupal installation in winhost servers.

Drupal Development Company