• No results found

Bring your intranet to the IBM i With Drupal and Zend Server

N/A
N/A
Protected

Academic year: 2021

Share "Bring your intranet to the IBM i With Drupal and Zend Server"

Copied!
44
0
0

Loading.... (view fulltext now)

Full text

(1)

Bring your intranet to the IBM i

With Drupal and Zend Server

© All rights reserved. Zend Technologies, Inc.

p

Mike Pavlak

Solution Consultant

mike.p@zend.com

1

Insert->Header & Footer

Jeff Olen

Solution Consultant

(2)

PHP Sessions

• PHP101

Session 1:30

• Lab

Lab 3:00

• Zend Framework

Session 3:00

• Lab Repeated

Lab 4:45

• Function Junction

Session 4:45

• Dinner Break

(3)

Audience

Manager looking for Intranet/place to put stuff

Developers looking to leverage PHP

Excess CPW

Avoid buying more Intel servers

© All rights reserved. Zend Technologies, Inc.

Avoid buying more Intel servers

Executive looking for new home base for apps

(4)

Agenda

Zend Server

MySQL on IBM i

Review of Drupal

Drupal Installation

Drupal Installation

Drupal in action

Implement cron (batch) scripts with Zend

Server Job Queue

(5)

Resources

Recorded Webinars

!http://www.zend.com/en/resources/webinars/i5-os

Zend Server for IBM i main page, link to downloads

htt // d / / d t / / d ib i

© All rights reserved. Zend Technologies, Inc.

!http://www.zend.com/en/products/server/zend-server-ibm-i

Zend Server manual:

!PDF: http://www.zend.com/topics/Zend-Server-5-for-IBMi-Reference-Manual.pdf

!Online: http://files.zend.com/help/Zend-Server-5/zend-server.htm#installation_guide.htm

(6)

Drupal, Zend Server and IBM i

www.zend.com

(7)

Why run MySQL when I have DB2?

Access to thousands of Open Source Apps

Easy to use Database

Open the door to new report options

!Zend Server simultaneous connections to:

• DB2

© All rights reserved. Zend Technologies, Inc.

• MySQL

• Microsoft SQL Server

• PHP Toolkit (RPG & COBOL programs & more)

DB2 Storage Engine

!Application thinks it’s writing to MySQL !Data store resides in DB2

!RPG applications can now access data!

(8)

Where do I get it?

Bundled in Zend Server for IBM i

!Convenient installation !Use QSECOFR!

(9)

Drupal, Zend Server and IBM i

www.zend.com

© All rights reserved. Zend Technologies, Inc.

(10)
(11)

Statistics

Nearly 1/3rd of the Internet is running PHP

About 1% of all internet websites are running Drupal

Drupal is second only to WordPress as a content management site (backendbattles.com)

© All rights reserved. Zend Technologies, Inc.

(12)

History of Drupal (Dutch for water droplet)

Dries Buytaert PHD dissertation starts Drupal by accident

1999: Developed a message board while studying LAN tech

2000: Received a lot of interest from folks

2001: Turned it loose as open source Drupal: p p

2007: Forms Acquia

2008: Dries defends his dissertaion

2009: Acquia helps launch Whitehouse.gov

(13)

Drupal itself

Current version “Core” 6.20

!Available at drupal.org

!Loads of features like: blogs,

forums, RSS, Generic content, etc.

!Key enhancements: Simplified installer,

© All rights reserved. Zend Technologies, Inc.

!Key enhancements: Simplified installer, Language support, Update status and more •Next version 7.0 (Just released!!!)

!Heavy focus on usability

!Improving platform for developers

(14)

DrupalGardens

Runs on Drupal 7

Hosted solution with three pricing tiers starting at free!

No need to buy/run server

Drupal in the cloud!

C l i b

Currently in beta

(15)

Drupal, Zend Server and IBM i

www.zend.com

© All rights reserved. Zend Technologies, Inc.

(16)

Drupal Installation Steps

Download drupal & unzip

Move to the IFS

Untar

Create databaseC

Settings.php

Run install script

(17)

Download Drupal

© All rights reserved. Zend Technologies, Inc.

(18)
(19)

Unpack the file

Unzip the file locally

FTP file to the IFS of the IBM i

Start QP2TERM to get PASE command shell

Issue the standard TAR (Tape Archive) command

© All rights reserved. Zend Technologies, Inc.

( p )

!tar -xvf drupal-6.14.tar •Command details: -xvf means…

!x = Extract, v = verbose, f = Include file name in command •Files are unpacked to a directory called drupal-6.14

(20)
(21)

Copy the settings file and change security

cp default.settings.php settings.php

This makes a backup so you can restart if necessary

Navigate to the default directory and change the security

© All rights reserved. Zend Technologies, Inc.

g y g y

chmod a+w settings.php

Remember where this file is as you will go back & reset

(22)

Create database in MySQL

Navigate to the MySQL binaries directory

!cd /usr/local/mysql/bin

Issue command to start MySQL command line

!mysql –u root

Create profile information for drupal (i.e. drupalcon)Create profile information for drupal (i.e. drupalcon)

Create the database

!create database drupalbase1;

Give drupalcon authority to the database

(23)

Install Drupal

http://myssystemname:10088/drupal-6.14

© All rights reserved. Zend Technologies, Inc.

(24)

Attempt to write to document root

CHGAUT OBJ('/www/zendsvr/htdocs/drupal-6.14')

(25)

Setup database

© All rights reserved. Zend Technologies, Inc.

25 Insert->Header & Footer

(26)
(27)

Setup the admin account

© All rights reserved. Zend Technologies, Inc.

(28)
(29)

Once completed, see summary screen…

© All rights reserved. Zend Technologies, Inc.

(30)

Drupal, Zend Server and IBM i

www.zend.com

(31)

Tour key features of Drupal

Module selection

Theme selection

Create page of content

© All rights reserved. Zend Technologies, Inc.

(32)

Drupal, Zend Server and IBM i

www.zend.com

(33)

Drupal updates via Cron job

What is cron

!Unix term for scheduled job (sound familiar?) •Why periodically run the cron

!Search module updates the index

© All rights reserved. Zend Technologies, Inc.

!Aggregator module retrieval of feeds !Ping module notification of other sites

!System module’s routine maintenance like pruning of logs •Check Drupal documentation for all updates in cron

(34)

Drupal updates via Cron job

How often do you run?

!It depends

(35)

Why would I schedule a job?

Many Open Source applications have updates

Updates are smartly distributed via a PHP script call

Let’s look at Drupal

Cron job – batch based update, needs no interactive

© All rights reserved. Zend Technologies, Inc.

C j p ,

Check Drupal documentation for all updates

(36)
(37)

Zend Server Job Scheduler

Can take a URL

Also application and description

Set a particular date/time

!For a single event

© All rights reserved. Zend Technologies, Inc.

g

!For a recurring event

Very powerful schedule process.

(38)

Zend Server Job Scheduler

To see job scheduler

!Navigate to Zend Server admin interface !Rule Management ! Recurring jobs

(39)

Job Details

© All rights reserved. Zend Technologies, Inc.

(40)

How did the job do?

Monitoring system will track batch jobs

Can review output

(41)

But wait, there’s more!

Page caching

!Not too exciting to most IBM i shops, unless…

!Very exciting when working with content management !Built in to Zend Server

© All rights reserved. Zend Technologies, Inc.

!Works a lot like caching on disk controllers.

!Save round trip to disk for static content and pages

!The less your content changes and the more your users access pages, the more you NEED page caching

!Cache one page or all

(42)

Resources

Drupal

!http://drupal.org/

• Documentation, code, downloads, modules, etc…

Zend Server for IBM i main page, link to downloads

!http://www zend com/en/products/server/zend server ibm i !http://www.zend.com/en/products/server/zend-server-ibm-i

My blog: Article on Samples in Zend Server!

(43)

PHP Sessions

• PHP101

Session 1:30

• Lab

Lab 3:00

• Zend Framework

Session 3:00

© All rights reserved. Zend Technologies, Inc.

|

43 Copyright © 2009 Zend Technologies, Inc, All rights reserved

• Lab Repeated

Lab 4:45

• Function Junction

Session 4:45

• Dinner Break

Dinner 6:15

• Build your Intranet on IBM i for Free

(44)

Q&A

www.zend.com

References

Related documents

The terminal phase of the Tertiary magmatism in the Vardar zone (including the Kozuf volcanic activity) during the Late Pliocene displays typical sub- duction-related

In addition, we can look to the storage market (i.e., the behavior of inventories and convenience yield ) to determine whether changes in the spot price are attributable

It then analyses the impact of regional integration on member countries based on traditional and new trade theories (Section IV), and reviews empirical findings (Section V)..

8141 or 8142 Install the fresh air ventilator to the return side of the HVAC system and wire the control to turn on the system’s fan with ventilation to ensure good air mixing in

Remove the gauge port cap and at- tach the hose connected to the high side of the manifold to the gauge access port on the discharge service valve.. The gauge manifolds and

document describes a vision of a Mexico that by 2025 “will be a fully democratic nation with a high quality of life that will have reduced its extreme social imbalances and will

To gain a deeper understanding of the evolution of income within the United States, we extend our analysis to the distribution dynamics across metropolitan (metro) and

Positioning of the controller plays an important part in controlling the air-conditioning efficiently by reducing operation times.. Many controllers are equipped with return