https://wiki.uniformserver.com/index.php?title=Installing_Drupal&feed=atom&action=historyInstalling Drupal - Revision history2024-03-29T14:19:30ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=Installing_Drupal&diff=4818&oldid=prevOlajideolaolorun: Reverted edits by Upazixorys (Talk); changed back to last version by Ric2010-11-24T08:33:22Z<p>Reverted edits by <a href="/Special:Contributions/Upazixorys" title="Special:Contributions/Upazixorys">Upazixorys</a> (<a href="/index.php?title=User_talk:Upazixorys&action=edit&redlink=1" class="new" title="User talk:Upazixorys (page does not exist)">Talk</a>); changed back to last version by <a href="/User:Ric" title="User:Ric">Ric</a></p>
<a href="https://wiki.uniformserver.com/index.php?title=Installing_Drupal&diff=4818&oldid=4577">Show changes</a>Olajideolaolorunhttps://wiki.uniformserver.com/index.php?title=Installing_Drupal&diff=4577&oldid=prevUpazixorys at 01:05, 24 November 20102010-11-24T01:05:54Z<p></p>
<a href="https://wiki.uniformserver.com/index.php?title=Installing_Drupal&diff=4577&oldid=3493">Show changes</a>Upazixoryshttps://wiki.uniformserver.com/index.php?title=Installing_Drupal&diff=3493&oldid=prevRic: 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...2008-10-04T12:44:13Z<p>New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | <a href="/File:Uc_small_logo.gif" title="File:Uc small logo.gif"> MPG UniCenter</a> || How to install Drupal on Uniform Server 3.5-Ap...</p>
<p><b>New page</b></p><div><span id="top"></span><br />
<div style="padding:0;margin:0; border-bottom:3px inset #000000"><br />
{| <br />
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||<br />
How to install Drupal on Uniform Server 3.5-Apollo <br />
|}<br />
</div><br />
{| cellpadding="2"<br />
|<br />
__TOC__<br />
||<br />
Drupal is easy to install on Uniform Server 3.5-Apollo.<br />
|}<br />
This step-by-step guide shows how to install Drupal and resolve common issues such as PHP mail and cron.<br />
<br />
== Pre-Installation 1 ==<br />
Install Uniform server and create Drupal database<br />
{|<br />
|-<br />
|<br />
# Creat a new folder named '''drupal_server'''<br />
# Extract a copy of Uniform Server 3.5-Apollo to this new folder<br />
# Run Uniform server double click '''server_start.bat''' (\drupal_server\Uniform Server)<br />
# With apanel displayed, under '''Tools''' click on '''phpMyAdmin'''<br />
# Enter '''drupal''' in the "Create new database" (A) Click Create (B)<br />
# Stop server '''Stop.bat'''<br />
|<br />
[[Image:Uc_drupal_1.gif]]<br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
=== PHP mail ===<br />
After you complete the final step in '''Install and set-up Drupal''' you will receive the following warning message:<br />
<pre><br />
warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25,<br />
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()<br />
W:\www\includes\mail.inc on line 193.<br />
Unable to send e-mail. Please contact the site admin, if the problem persists.<br />
</pre><br />
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.<br />
<br />
'''''1) Edit php.ini'''''<br />
<br />
Open '''php.ini''' located in folder '''\drupal_server\Uniform Server\udrive\usr\local\php'''<br />
<br />
Locate this section:<br />
<pre><br />
[mail function]<br />
; For Win32 only.<br />
SMTP = localhost<br />
smtp_port = 25<br />
<br />
; For Win32 only.<br />
sendmail_from = me@localhost.com<br />
</pre><br />
<br />
Replace: SMTP = '''localhost''' with your ISP's SMTP server; for details check out this page [[PHP mail function | PHP mail function]]<br />
<br />
Replace: sendmail_from = '''me@localhost.com''' with your real email address issued to you by your ISP. <br />
<br />
'''''2) Install Fake Sendmail for Windows'''''<br />
<br />
If your ISP requires authentication install [[Installing Fake Sendmail for Windows |Fake Sendmail for Windows]]<br />
<br />
'''''3) Install a mailserver'''''<br />
<br />
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 [[SSL Part 2: Installing hMailServer | Installing hMailServer]]<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Pre-Installation 2 ==<br />
<br />
{|<br />
|-<br />
|valign="top"|<br />
'''''Download'''''<br />
<br />
# Create a new folder named '''drupal_temp'''<br />
# Download latest version of Drupal [http://drupal.org/ Drupal Download]<br />
# Save the file (latest version '''drupal-6.4.tar.gz''') to folder '''drupal_temp'''<br />
<br />
'''''Extract'''''<br />
<br />
<ol start="4"><br />
<li>Extract files '''drupal-6.4.tar.gz''' (I use 7z portable this)</li><br />
</ol><br />
<br />
'''''Copy files to Uniform Server'''''<br />
<br />
<ol start="5"><br />
<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><br />
<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><br />
</ol><br />
|<br />
[[Image:Uc_drupal_2.gif]]<br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Install and set-up Drupal ==<br />
# Start servers double click '''Server Start.bat'''<br />
# 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>)<br />
# Click '''Install Drupal in English'''<br />
# Enter database configuration information:<br />
::*Database name: '''drupal'''<br />
::*Database user name: '''root'''<br />
::*Database password: '''root'''<br />
::*Click '''Save and continue'''<br />
<ol start="5"><br />
<li>Enter site information<br />
</ol><br />
::* Site name: '''localhost'''<br />
::* Site e-mail address: '''me@localhost'''<br />
::* Username (admin): '''admin''' ''Use your own admin name''<br />
::* E-mail address: '''Use your own email address'''<br />
::* Password (admin): '''root66''' ''Use your own password''<br />
::* Confirm password: '''root66''' ''Use your own password''<br />
::* Clean URL's radio button is Enabled no need to change<br />
::* Update notification leave checked.<br />
::* Click '''Save and continue'''<br />
<br />
I mentioned in '''Pre-Installation 1''' you will receive this warning it can be safly ignored:<br />
<pre><br />
warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25,<br />
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()<br />
W:\www\includes\mail.inc on line 193.<br />
Unable to send e-mail. Please contact the site admin, if the problem persists.<br />
</pre><br />
<br />
'''Note:''' If you implemented either of the solutions mentioned the warning will not be produced. <br />
<br />
You are ready to view your new site click "'''your newsite'''" link.<br />
<br />
When you '''log into admin''' at the top of the admin page you will see<br />
<pre><br />
"Cron has not run. Please visit the status report for more information."<br />
</pre><br />
# Click the '''status report''' link:<br />
# Navigate to "'''Cron maintenance tasks'''" to the right click "r'''un cron manually'''"<br />
# After a short time you will receive a message "'''Cron ran successfully'''."<br />
<br />
'''''[[#top | Top]]'''''<br />
== Summary ==<br />
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.<br />
<br />
On the next page I look at a method to resolve this issue. Check out [[Portable Cron | Portable Cron]]<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
----<br />
<br />
{| <br />
| [[Image:uc_small_logo.gif]] || [[User:Ric|Ric]]<br />
|}<br />
<br />
[[Category: UniCenter]]<br />
[[Category: Setup]]<br />
[[Category: User Made|Tutorials]]<br />
[[Category: Self Install]]<br />
[[Category: How To]]<br />
[[Category: Installation]]</div>Ric