Apache 2.2 on QNX Neutrino 6.4.x OS Step-by-step installation manual



Similar documents
APACHE HTTP SERVER 2.2.8

Host your websites. The process to host a single website is different from having multiple sites.

Dynamic DNS How-To Guide

NETWORK SETUP INSTRUCTIONS

How to Configure edgebox as a Web Server

Moxa Device Manager 2.3 User s Manual

Device Log Export ENGLISH

Expresso Quick Install

Immotec Systems, Inc. SQL Server 2005 Installation Document

NETWORK SETUP GLOSSARY

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Network Setup Guide. 1 Glossary. 2 Operation. 1.1 Static IP. 1.2 Point-to-Point Protocol over Ethernet (PPPoE)

AXIGEN Mail Server. Quick Installation and Configuration Guide. Product version: 6.1 Document version: 1.0

Reference and Troubleshooting: FTP, IIS, and Firewall Information


Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

Dragonframe License Manager User Guide Version 1.2.2

CO Web Server Administration and Security. By: Szymon Machajewski

Reason 8 Multi Licenses

REMOTE ACCESS DDNS CONFIGURATION MANUAL

WEB CONFIGURATION. Configuring and monitoring your VIP-101T from web browser. PLANET VIP-101T Web Configuration Guide

Bitrix Site Manager ASP.NET. Installation Guide

Moxa Device Manager 2.0 User s Guide

How To Use 1Bay 1Bay From Awn.Net On A Pc Or Mac Or Ipad (For Pc Or Ipa) With A Network Box (For Mac) With An Ipad Or Ipod (For Ipad) With The

This document details the following four steps in setting up a Web Server (aka Internet Information Services -IIS) on Windows XP:

Setting Up Your FTP Server

IBM WebSphere Application Server Communications Enabled Applications Setup guide

Semantic based Web Application Firewall (SWAF - V 1.6)

NETWORK SET UP GUIDE FOR

Download/Install IDENTD

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Connecting the DG-102S VoIP Gateway to your network

Volume SYSLOG JUNCTION. User s Guide. User s Guide

NSi Mobile Installation Guide. Version 6.2

Linux Server (Web, FTP, File) on Vmware

CYAN SECURE WEB HOWTO. NTLM Authentication

Virtual Appliance for VMware Server. Getting Started Guide. Revision Warning and Disclaimer

I N S T A L L A T I O N M A N U A L

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

BioWin Network Installation

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

CONTENTS. 1. Outline of how to use.1 2. How to setup each step...1

How To Set Up A Backupassist For An Raspberry Netbook With A Data Host On A Nsync Server On A Usb 2 (Qnap) On A Netbook (Qnet) On An Usb 2 On A Cdnap (

5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

Introduction. Before you begin. Installing efax from our CD-ROM. Installing efax after downloading from the internet

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

CommandCenter Secure Gateway

Install FileZilla Client. Connecting to an FTP server

PaperCut Payment Gateway Module CyberSource Quick Start Guide

Installation and Deployment

Using Internet or Windows Explorer to Upload Your Site

Kaseya 2. Installation guide. Version 7.0. English

Avira Update Manager User Manual

escan SBS 2008 Installation Guide

Firewall VPN Router. Quick Installation Guide M73-APO09-380

FTP, IIS, and Firewall Reference and Troubleshooting

Appendix B Lab Setup Guide

Configuring the WT-4 for ftp (Ad-hoc Mode)

Multi-Homing Dual WAN Firewall Router

CitectSCADA V7.20 WebClient Quick Start Guide

Penetration Testing LAB Setup Guide

Quick Installation Guide

MGC WebCommander Web Server Manager

FlexSim LAN License Server

Kaseya Server Instal ation User Guide June 6, 2008

This document explains how to configure and use the IOPRINT+ Print Server in the Unix TCP/IP environment.

Software installation and configuration IEC-line series

Prestige 314 Read Me First

Quick Installation Guide

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

OneLogin Integration User Guide

Steltronic Focus. Main Desk Internet connection

Elluminate Live! Access Guide. Page 1 of 7

Site Monitor. Version 5.3

CycleServer Grid Engine Support Install Guide. version 1.25

Ethernet Interface Manual Thermal / Label Printer. Rev Metapace T-1. Metapace T-2 Metapace L-1 Metapace L-2

FI8910W Quick Installation Guide. Indoor MJPEG Pan/Tilt Wireless IP Camera

System Area Manager. Remote Management

Chapter 2 Preparing Your Network

Access the GV-IP Camera through a broadband modem

Linux Networking Basics

How To Remotely View Your Security Cameras Through An Ezwatch Pro Dvr/Camera Server On A Pc Or Ipod (For A Small Charge) On A Network (For An Extra $20) On Your Computer Or Ipo (For Free

Easy Setup Guide for the Sony Network Camera

Web+Center Version 7.x Windows Quick Install Guide 2 Tech Free Version Rev March 7, 2012

Getting started. Creating a Web Server support application

MassTransit 6.0 Enterprise Web Configuration for Macintosh OS 10.5 Server

1. Configuring Apache2 Load Balancer with failover mechanism

EZblue BusinessServer The All - In - One Server For Your Home And Business

RBackup Server Installation and Setup Instructions and Worksheet. Read and comply with Installation Prerequisites (In this document)

EyeSoft Quick Setup Guide For latest software update / manual, please see Please see Manual for detailed instructions.

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide


Setting Up SSL on IIS6 for MEGA Advisor

DDNS Management System User Manual V1.0

Local Caching Servers (LCS): User Manual

SuperLumin Nemesis. Administration Guide. February 2011

1.6 HOW-TO GUIDELINES

Transcription:

Apache 22 on QNX Neutrino 64x OS Step-by-step installation manual 1 User and Group settings for Apache 22 First of all, we have to create a new GROUP in Photon On the right side menu (Shelf) select the "Users" icon push "Advanced" button Select "Groups" tab push "New Group" button write into "Group Name" field: www Apply/Done Create a new USER www Select "Users" tab push "New User" button write into "Full Name" field: www write into "Login ID" field: www write into "Home Directory" field: www select from "Group" list: www select the checkbox "Prevent this user from logging in" Apply/Done Done Done 2 Setting of TCP/IP network for use Apache22 web server QNX: Settings has to be Manual mode, do not select the automatic settings "DHCP"!!!!! These are below our settings: IP: 1921681121 Netmask: 2552552550 Host Name: host121 (or any proper IP address) (or any proper name but not localhost ) Name Servers (it was our settings, but of course can be different): 1951841814 1951841804 19216811 Default Gateway: 19216811 Edit the /etc/host file, the Apache needs to know about the hostname and address signature: 19211121 host121 3 Setup environment Setup PATH, environment variables: /etc/profile : PATH= /:/usr/pkg/bin:/usr/pkg/sbin

/etc/rcd/rclocal : setconf CS_LIBPATH $(getconf CS_LIBPATH):/usr/pkg/lib Now restart with QNX machine and boot into Photon graphical environment again Open a terminal window and type: # cd / Check the current directory name: # pwd You have to see it: # / (if not the root - then enter this command: cd / ) 4 Download PKGSRC project a Download pkgsrc project: http://communityqnxcom/sf/wiki/do/viewpage/projectspkgsrc/wiki/bootstrap To get pkgsrc, write this line into a single line: svn checkout --username <username> http://communityqnxcom/svn/repos/pkgsrc/head_640 (username is your registrated email address) (or ftp://ftpnetbsdorg/pub/pkgsrc/current/pkgsrctarbz2 and unpack it: bzcat pkgsrctarbz2 tar xfv ) More info: Pkgsrc documentation: file://head_640/pkgsrc/doc/pkgsrchtml file://head_640/pkgsrc/doc/pkgsrchtml#developers-guide Alternatively, you can also import new packages into pkgsrc-wip (pkgsrc work-in-progress); see the homepage at http://pkgsrc-wipsourceforgenet/ Fault report to pkgsrc developers: Next, generate an uuencoded gzipped archive that contains all files that make up the package Finally, send this package to the pkgsrc bug tracking system: http://wwwnetbsdorg/support/send-prhtml In the form of the problem report, the category should be pkg, the synopsis should include the package name and version number, and the description field should contain a short description of your package (contents of the COMMENT variable or DESCR file are OK) The uuencoded package data should go into the â śfixâ ť field Porting pkgsrc into a new OS: file://head_640/pkgsrc/doc/pkgsrchtml#developers-guide b Bootstraping pkgsrc project: bootstrap the pkgsrc source (as root user) with /bootstrap/bootstrap : # cd /HEAD_640/pkgsrc/bootstrap # /bootstrap (it takes to finish around 35mins) 5 Prepare Apache 22 package for compilation QNX related patch for Apache:

It's an unfortunate coincidence that both QNX header and in the BSD source code "mod_mime_magicc" module also contains as definition a function called "mcheck()" Other operating systems don't do that, it's a coincidence To solve this conflict, copy a patch file "patch-aw" to HEAD_640/pkgsrc/www/apache22/patches directory, and then type these commands : # cd /HEAD_640/pkgsrc/www/apache22 # bmake distinfo # bmake clean The content of patch-aw file: $NetBSD$--- modules/metadata/mod_mime_magiccorig2006-10-03 14:47:35000000000 +0200+++ modules/metadata/mod_mime_magicc2009-02-14 09:23:40000000000 +0100@@ - 106,6 +106,10 @@ #include <utimeh> #endif +#ifdef QNX /* naming conflict with <malloch> */+#define mcheck mod_mime_magic_mcheck+#endif+ /* * data structures and related constants */ 6 Compile & Link and Install Apache22 # cd /HEAD_640/pkgsrc # (cd www/apache22 && /usr/pkg/bin/bmake install) (it is a quite long process) 7 Configure to use dinamic so modules in Apache22 Configure for use dynamic *so modules> # cd /HEAD_640/pkgsrc/www/apache22/work/httpd-2211 # /configure --enable-so # cd /HEAD_640/pkgsrc # (cd www/apache22 && /usr/pkg/bin/bmake install) 8 Config file of Apache 22 Edit this config file according to the Apache22 help descriptions: /usr/pkg/etc/httpd/httpdconf (Sample available at: /usr/pkg/share/examples/httpd ) Important contents of Apache22 config file: /usr/pkg/etc/httpd/httpdconf: ServerRoot "/usr/pkg" Listen 1921681121:80 User www Group www ServerAdmin you@examplecom (your email address here) ServerName 1921681121:121 (use your localhost IP address!) DocumentRoot "/usr/pkg/share/httpd/htdocs" <Directory "/usr/pkg/share/httpd/htdocs" ErrorLog "/var/log/httpd/error_log"

LogLevel warn ErrorDocument 500 "The server made a boo boo" 9 Default HTML page which will be shered by Apache server Copy or edit the existing indexhtml in directory /usr/pkg/share/httpd/htdocs 10 Test and check for errors You can try to start Apache by hand: # cd /usr/pkg/share/examples/rcd # apache start In case of any fault, see the error log file: "/var/log/httpd/error_log" 11 Understanding the calling sequence accross start scripts ======================================================== The following file should be created automatically by apache installer: /usr/pkg/share/examples/rcd/apache ======================================================== Start: /usr/pkg/share/examples/rcd/apache start -> /usr/pkg/sbin/apachectl start -> ( /usr/pkg/sbin/httpd -k start ) Stop: /usr/pkg/share/examples/rcd/apache stop -> /usr/pkg/sbin/apachectl stop -> ( /usr/pkg/sbin/httpd -k stop ) 12 Creating of starter scripts with insertion of Apache start's at Neutrino OS boot Now we creating the starter scripts into folder: -etc-rcd Copy "apache" and any other daemon's starter scripts like "mysqld" From: /usr/pkg/share/examples/rcd To: /etc/rcd Include this line(s) into /etc/rcd/rclocal file: /etc/rcd/apache start /etc/rcd/mysqld Optionally: #inetd: inetd -d /etc/inetdconf & NOTE: the "rclocal" file should NOT contains any of CR/LF pairs at line ends!!! Only LF permitted Otherwise "apachectl" srcipt able to do a very strange behaviour and malfunctions when we call "apache start" Now try to stop/start the Apache server: # cd /etc/rcd # apache stop Stopping apache # apache start (you have to see this message from Apache)

Starting apache # (you have to see this message from Apache) 13 Restart with QNX640 OS Now we will have to see the "Starting apache" message during boot-up On intranet LAN we would have to check the correct operation of Apache server From a Windows Internet Exporer or with any other browser we can check Apache server's operation: http://1921681121:80 or http://1921681121/indexhtml You have to see this result in your browser: It works! It is the default HTML page which is located in directory /usr/pkg/share/httpd/htdocs after Apache installation We have modified the text in the indexhtml file a litle bit: 14 DynDNS You can register a free Dinamic IP address at wwwdyndnsorg with something username "yourselectedname" You will have this domain name like: "yourselectednamedyndnsorg" Setup your internet router equiment for use DynDNS - properly for your router settings/menu This simple service can forward any TCP port request from internet side (WAN side) to your Apache server machine IP address on local network (LAN) eg TCP internal IP address 80 1921681121 (HTTP service) 23 1921681121 (TELNET service) 21 same or other machine's IP address (FTP service) from outside you can test the Apache server and TCP redirection service's operation: http://yourselectednamedyndnsorg http://yourselectednamedyndnsorg/indexhtml Your webserver is ready to use now In any case of problem you can send email to us

Jozsef Kovacs Robert Kovacs info[at]realtimecontrol[dot]hu coldwave[at]freemail[dot]hu RTC Automation Ltd Authorised QNX Reseller Budapest, HUNGARY wwwrealtimecontrolhu 20090419