Difference between revisions of "Installing Drupal"

From The Uniform Server Wiki
Jump to navigation Jump to search
(New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | MPG UniCenter || How to install Drupal on Uniform Server 3.5-Ap...)
 
Line 1: Line 1:
<span id="top"></span>
+
----
<div style="padding:0;margin:0; border-bottom:3px inset #000000">
+
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://ajycyvitik.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://ajycyvitik.co.cc CLICK HERE]=
 +
----
 +
</div>
 +
&lt;span id=&quot;top&quot;&gt;&lt;/span&gt;
 +
&lt;div style=&quot;padding:0;margin:0; border-bottom:3px inset #000000&quot;&gt;
 
{|  
 
{|  
 
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
 
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
 
How to install Drupal on Uniform Server 3.5-Apollo  
 
How to install Drupal on Uniform Server 3.5-Apollo  
 
|}
 
|}
</div>
+
&lt;/div&gt;
{| cellpadding="2"
+
{| cellpadding=&quot;2&quot;
 
|
 
|
 
__TOC__
 
__TOC__
Line 23: Line 31:
 
# Run Uniform server double click '''server_start.bat''' (\drupal_server\Uniform Server)
 
# Run Uniform server double click '''server_start.bat''' (\drupal_server\Uniform Server)
 
# With apanel displayed, under '''Tools''' click on '''phpMyAdmin'''
 
# With apanel displayed, under '''Tools''' click on '''phpMyAdmin'''
# Enter '''drupal''' in the "Create new database" (A) Click Create (B)
+
# Enter '''drupal''' in the &quot;Create new database&quot; (A) Click Create (B)
 
# Stop server '''Stop.bat'''
 
# Stop server '''Stop.bat'''
 
|
 
|
Line 32: Line 40:
 
=== PHP mail ===
 
=== PHP mail ===
 
After you complete the final step in '''Install and set-up Drupal''' you will receive the following warning message:
 
After you complete the final step in '''Install and set-up Drupal''' you will receive the following warning message:
<pre>
+
&lt;pre&gt;
warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25,
+
warning: mail() [function.mail]: Failed to connect to mailserver at &quot;localhost&quot; port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
+
verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set()
 
W:\www\includes\mail.inc on line 193.
 
W:\www\includes\mail.inc on line 193.
 
Unable to send e-mail. Please contact the site admin, if the problem persists.
 
Unable to send e-mail. Please contact the site admin, if the problem persists.
</pre>
+
&lt;/pre&gt;
 
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.
 
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.
  
Line 45: Line 53:
  
 
Locate this section:
 
Locate this section:
<pre>
+
&lt;pre&gt;
 
[mail function]
 
[mail function]
 
; For Win32 only.
 
; For Win32 only.
Line 53: Line 61:
 
; For Win32 only.
 
; For Win32 only.
 
sendmail_from = me@localhost.com
 
sendmail_from = me@localhost.com
</pre>
+
&lt;/pre&gt;
  
 
Replace: SMTP = '''localhost''' with your ISP's SMTP server; for details check out this page [[PHP mail function | PHP mail function]]
 
Replace: SMTP = '''localhost''' with your ISP's SMTP server; for details check out this page [[PHP mail function | PHP mail function]]
Line 73: Line 81:
 
{|
 
{|
 
|-
 
|-
|valign="top"|
+
|valign=&quot;top&quot;|
 
'''''Download'''''
 
'''''Download'''''
  
Line 82: Line 90:
 
'''''Extract'''''
 
'''''Extract'''''
  
<ol start="4">
+
&lt;ol start=&quot;4&quot;&gt;
<li>Extract files '''drupal-6.4.tar.gz''' (I use 7z portable this)</li>
+
&lt;li&gt;Extract files '''drupal-6.4.tar.gz''' (I use 7z portable this)&lt;/li&gt;
</ol>
+
&lt;/ol&gt;
  
 
'''''Copy files to Uniform Server'''''
 
'''''Copy files to Uniform Server'''''
  
<ol start="5">
+
&lt;ol start=&quot;5&quot;&gt;
<li>Open folder '''drupal-6.4''' (C) and copy entire contents (files and folders) to Uniform folder '''www''' (D)<br>Allow files index.php and .htaccess to be over written.</li>
+
&lt;li&gt;Open folder '''drupal-6.4''' (C) and copy entire contents (files and folders) to Uniform folder '''www''' (D)&lt;br&gt;Allow files index.php and .htaccess to be over written.&lt;/li&gt;
<li>Navigate to folder \drupal_server\Uniform Server\udrive\www\sites\'''default'''<br>Make a copy of file: '''default.settings.php'''<br>Rename this copy to: '''settings.php'''</li>
+
&lt;li&gt;Navigate to folder \drupal_server\Uniform Server\udrive\www\sites\'''default'''&lt;br&gt;Make a copy of file: '''default.settings.php'''&lt;br&gt;Rename this copy to: '''settings.php'''&lt;/li&gt;
</ol>
+
&lt;/ol&gt;
 
|
 
|
 
[[Image:Uc_drupal_2.gif]]
 
[[Image:Uc_drupal_2.gif]]
Line 100: Line 108:
 
== Install and set-up Drupal ==
 
== Install and set-up Drupal ==
 
# Start servers double click '''Server Start.bat'''
 
# Start servers double click '''Server Start.bat'''
# Type the following into browser address bar '''<nowiki>http://localhost/</nowiki>'''<br>This opens Drupal's instalation page (<nowiki>http://localhost/install.php?profile=default</nowiki>)
+
# Type the following into browser address bar '''&lt;nowiki&gt;http://localhost/&lt;/nowiki&gt;'''&lt;br&gt;This opens Drupal's instalation page (&lt;nowiki&gt;http://localhost/install.php?profile=default&lt;/nowiki&gt;)
 
# Click '''Install Drupal in English'''
 
# Click '''Install Drupal in English'''
 
# Enter database configuration information:
 
# Enter database configuration information:
Line 107: Line 115:
 
::*Database password: '''root'''
 
::*Database password: '''root'''
 
::*Click '''Save and continue'''
 
::*Click '''Save and continue'''
<ol start="5">
+
&lt;ol start=&quot;5&quot;&gt;
<li>Enter site information
+
&lt;li&gt;Enter site information
</ol>
+
&lt;/ol&gt;
 
::* Site name: '''localhost'''
 
::* Site name: '''localhost'''
 
::* Site e-mail address: '''me@localhost'''
 
::* Site e-mail address: '''me@localhost'''
Line 121: Line 129:
  
 
I mentioned in '''Pre-Installation 1''' you will receive this warning it can be safly ignored:
 
I mentioned in '''Pre-Installation 1''' you will receive this warning it can be safly ignored:
<pre>
+
&lt;pre&gt;
warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25,
+
warning: mail() [function.mail]: Failed to connect to mailserver at &quot;localhost&quot; port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
+
verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set()
 
W:\www\includes\mail.inc on line 193.
 
W:\www\includes\mail.inc on line 193.
 
Unable to send e-mail. Please contact the site admin, if the problem persists.
 
Unable to send e-mail. Please contact the site admin, if the problem persists.
</pre>
+
&lt;/pre&gt;
  
 
'''Note:''' If you implemented either of the solutions mentioned the warning will not be produced.  
 
'''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.
+
You are ready to view your new site click &quot;'''your newsite'''&quot; link.
  
 
When you '''log into admin''' at the top of the admin page you will see
 
When you '''log into admin''' at the top of the admin page you will see
<pre>
+
&lt;pre&gt;
"Cron has not run. Please visit the status report for more information."
+
&quot;Cron has not run. Please visit the status report for more information.&quot;
</pre>
+
&lt;/pre&gt;
 
# Click the '''status report''' link:
 
# Click the '''status report''' link:
# Navigate to "'''Cron maintenance tasks'''" to the right click "r'''un cron manually'''"
+
# Navigate to &quot;'''Cron maintenance tasks'''&quot; to the right click &quot;r'''un cron manually'''&quot;
# After a short time you will receive a message "'''Cron ran successfully'''."
+
# After a short time you will receive a message &quot;'''Cron ran successfully'''.&quot;
  
 
'''''[[#top | Top]]'''''
 
'''''[[#top | Top]]'''''

Revision as of 01:05, 24 November 2010



This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page


CLICK HERE


<span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000">

MPG UniCenter

How to install Drupal on Uniform Server 3.5-Apollo

</div>

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.

Pre-Installation 1

Install Uniform server and create Drupal database

  1. Creat a new folder named drupal_server
  2. Extract a copy of Uniform Server 3.5-Apollo to this new folder
  3. Run Uniform server double click server_start.bat (\drupal_server\Uniform Server)
  4. With apanel displayed, under Tools click on phpMyAdmin
  5. Enter drupal in the "Create new database" (A) Click Create (B)
  6. Stop server Stop.bat

Uc drupal 1.gif

Top

PHP mail

After you complete the final step in Install and set-up Drupal you will receive the following warning message: <pre> 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. </pre> 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: <pre> [mail function]

For Win32 only.

SMTP = localhost smtp_port = 25

For Win32 only.

sendmail_from = me@localhost.com </pre>

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

Top

Pre-Installation 2

Download

  1. Create a new folder named drupal_temp
  2. Download latest version of Drupal Drupal Download
  3. Save the file (latest version drupal-6.4.tar.gz) to folder drupal_temp

Extract

<ol start="4"> <li>Extract files drupal-6.4.tar.gz (I use 7z portable this)</li> </ol>

Copy files to Uniform Server

<ol start="5"> <li>Open folder drupal-6.4 (C) and copy entire contents (files and folders) to Uniform folder www (D)<br>Allow files index.php and .htaccess to be over written.</li> <li>Navigate to folder \drupal_server\Uniform Server\udrive\www\sites\default<br>Make a copy of file: default.settings.php<br>Rename this copy to: settings.php</li> </ol>

Uc drupal 2.gif

Top

Install and set-up Drupal

  1. Start servers double click Server Start.bat
  2. Type the following into browser address bar <nowiki>http://localhost/</nowiki><br>This opens Drupal's instalation page (<nowiki>http://localhost/install.php?profile=default</nowiki>)
  3. Click Install Drupal in English
  4. Enter database configuration information:
  • Database name: drupal
  • Database user name: root
  • Database password: root
  • Click Save and continue

<ol start="5"> <li>Enter site information </ol>

  • Site name: localhost
  • Site e-mail address: me@localhost
  • Username (admin): admin Use your own admin name
  • E-mail address: Use your own email address
  • Password (admin): root66 Use your own password
  • Confirm password: root66 Use your own password
  • Clean URL's radio button is Enabled no need to change
  • Update notification leave checked.
  • Click Save and continue

I mentioned in Pre-Installation 1 you will receive this warning it can be safly ignored: <pre> 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. </pre>

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 <pre> "Cron has not run. Please visit the status report for more information." </pre>

  1. Click the status report link:
  2. Navigate to "Cron maintenance tasks" to the right click "run cron manually"
  3. After a short time you will receive a message "Cron ran successfully."

Top

Summary

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

Top


Uc small logo.gif Ric