Installation on Windows

From openmichigan

Revision as of 15:18, 22 July 2015 by Bdr (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Install WampServer 2.1. This will provide Apache, mySql and php and a tray icon giving access to common admin tools.

Need to stop the Windows World Wide Web Publishing Server service as it is probably already listening on port 80 and conflicts with Apache.

Got a local clone of the git repository with msysgit 1.7.4. 

Had to manually create a database and user and used phpMyAdmin to import the database schema.
Used mysql console from the WampServer tray icon.
Create database oerpublish
Create user oerpublisher
Grant user access to the database.
Had login issues. Used mysql from command line to test login:
mysql –u oerpublisher –p oerpublish
Could not logon. Logged on as root and granted all permissions to the database to the user.
Imported database from /sites/all/modules/openmichigan/scripts/oerbit_seed_db.sql

Used WampServer tray icon to create a new alias in apache to serve the oerbit php pages.

Copied 2 config files in the source repo: /.htaccess-template > .htaccess (had to use command line as explorer wouldn’t allow a rename to a file beginning with “.”)
Other file: \sites\default\default-settings.php > settings.php

Problem: default pages (index.php) not being served when browsing to folder.

Problem: other pages (http://localhost/oerbit/users/ for example) redirecting to some kind of php info page.

Problem: links are relative to the root, not the alias. The Find link on the front page is attempting to go to http://localhost/education, but am expecting http://localhost/oerbit/education. Workaround: Define a virtual host name, such as www.myoerbit.com, so the paths resolve correctly:

   NameVirtualHost *:80 
  
  <VirtualHost *:80> 
  
      ServerName localhost
      DocumentRoot /wamp/www
  
  </VirtualHost> 
  
  <VirtualHost *:80> 
  
      ServerName www.myoerbit.com
      DocumentRoot /dev/oerbit
  
  </VirtualHost> 

Use the RewriteBase directive in .htaccess to enable mod rewrites for the web site.

TL;DR: Got the home page to load, but nothing else working yet.

Personal tools