Tag: drupal

Drupal 7 dev environment install

Instructions for dev environment setup and Drupal 7 install on Windows 10

Dev Environment

Get and install EasyPHP DevServer

  • EasyPHP download
  • Click to download DevServer 17
  • After a few seconds, the download will automatically begin
  • Run the installer: select language, install directory (default is fine), create desktop icon
  • Click Install
  • Select to launch, click Finish
  • An icon will appear in the notification tray, click on it, select ‘open dashboard’
  • It should open a window to 127.0.0.1:1111 (localhost, port 1111).
  • If you get an error: “This site can’t be reached”, then try to ‘start servers’ from the information tray menu. If the dashboard still won’t come up, then reboot your computer
  • When your computer comes back up, double click on the DevServer 17 icon on your desktop
  • An icon will appear in the notification tray, click on it, select ‘open dashboard’
  • It should open a window to 127.0.0.1:1111 (localhost, port 1111).
  • Click to start the HTTP server and the Database server

Install Additional Tools

Set Up Your Project

  • If you don’t have one, create a GitHub repository at github.com. Click the checkbox to create a README file, so you can clone the repo right away.
  • Click into the repository, click Clone or Download > Open in Desktop
  • Copy the local path from the dialog and click Clone
  • Go to the EasyPHP Devserver dashboard
  • Click Add Directory
  • Add a working directory name… it will be used as the pseudo document root for this project. It will be prefixed with “edsa-“, do not include spaces
  • Under Path to the working directory, paste the path that the repository was cloned into, click ‘Save’
  • In your IDE (Eclipse, Zend Studio, PHPStorm, etc.) add the project, sourced from the local GitHub repo location

Prepare Drupal 7 files

  • Drupal 7 install guide (for reference if needed)
  • Go to the Drupal Project Page
  • Click on the Drupal core 7.x version button (7.59 at time of writing) to download Drupal 7
  • On the project page that comes up, click ‘Download Zip’
  • Unzip the downloaded file then move the contents of the “drupal-7.59” directory to the project’s GitHub repo directory

Create the Project Database

  • Go to the EasyPHP DevServer dashboard
  • Click “Open” next to the MySQL Administration header
  • Click “User Accounts”
  • Click “Add User Account”
  • Enter a user name, select “Local” under Hostname, select “No Password” under Password
  • Under “Database for user account”, check the box next to “Create database with same name and grant all privileges.” Click “Go” at the bottom of the page.

Install Drupal 7

  • Go to the EasyPHP DevServer dashboard, and click to visit your project site in browser
  • You should see “select an installation profile”. Select ‘standard’ and click “Save and Continue”
  • Select your language and click “Save and continue”
  • If you see the “Verify Requirements” page, use the install guide to resolve any problems.
  • Make sure MySQL is selected, and enter the database credentials: enter your database name, the user name, leave password blank. Under ‘Advanced options’ make sure the host is localhost. Click “Save and continue”.
  • It will run for a minute with a progress bar. When it is done, configure the application: Site name can be changed now or later (to something human readable), follow instructions to fill out the rest of the settings. Site Maintenance Username, etc. is the Username you will use to log in with. Click “Save and continue”.
  • Click to view your site.
  • In a production environment, you would need to secure your site: change permissions on the sites/default/settings.php file to make it essentially 644… readable by all, writable by the owner

Next Steps

It looks like the Drupal 7 User Guide is designed to be a walk-through. There is also this page that has lots and lots of good info about the different components of drupal and their relationships, in addition to links to lots of other informative articles.

Please comment below or contact me if you have questions, or if you find problems with these instructions!