|
Drupal is easy to install on Uniform Server 3.5-Apollo. |
This step-by-step guide shows how to install Drupal and resolve common issues such as PHP mail and cron.
Install Uniform server and create Drupal database
|
After you complete the final step in Install and set-up Drupal you will receive the following warning message:
warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() W:\www\includes\mail.inc on line 193. Unable to send e-mail. Please contact the site admin, if the problem persists.
If you are only exploring and testing Drupal's functionality you can safely ignore this (Its only a warning and not an error). However if you would like to send emails via your ISP you have two options.
1) Edit php.ini
Open php.ini located in folder \drupal_server\Uniform Server\udrive\usr\local\php
Locate this section:
[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = me@localhost.com
Replace: SMTP = localhost with your ISP's SMTP server; for details check out this page PHP mail function
Replace: sendmail_from = me@localhost.com with your real email address issued to you by your ISP.
2) Install Fake Sendmail for Windows
If your ISP requires authentication install Fake Sendmail for Windows
3) Install a mailserver
One final option if you want to run your own mail server and your ISP does not block the mail ports check out this page Installing hMailServer
|
Download
Extract
Copy files to Uniform Server
|
I mentioned in Pre-Installation 1 you will receive this warning it can be safly ignored:
warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() W:\www\includes\mail.inc on line 193. Unable to send e-mail. Please contact the site admin, if the problem persists.
Note: If you implemented either of the solutions mentioned the warning will not be produced.
You are ready to view your new site click "your newsite" link.
When you log into admin at the top of the admin page you will see
"Cron has not run. Please visit the status report for more information."
I have shown how easy it is to install Drupal on Uniform Server. In order to update Drupal cron must run. For a test server although inconvenient you can periodically manually run cron.
On the next page I look at a method to resolve this issue. Check out Portable Cron
| | Ric |
Categories: UniCenter | Setup | User Made | Self Install | How To | Installation