Notices

Applications and Utilities Talk about apps and utilities for Windows Mobile and PPC

Reply
 
LinkBack Thread Tools
Old 06-20-06, 10:57 AM   #1 (permalink)
Aximsite Veteran
 
DaLabrador's Avatar
 
Join Date: Jun 2006
Posts: 1,173
Device: Nokia 5310
Thanked 5 Times in 5 Posts
Aximsitemobileicon Howto - Apache web server on Axim X51V

How to get Rainer Keuchels' Apache port working on an Axim X51V:

---Prerequisites:
* Download:
apache-arm-ppc-wce300-2002-10-18.tar.gz
celib-3.13-dll-bin-all-platforms.tar.gz
and unpack
apache-arm-ppc-wce300 and
wince-arm-pocket-wce300-release
somewhere.
Copy the folders to your pda.


* Get a registry editor and a good file explorer. I use:
PHM registry editor
and
Total Commander


---On your device:
* Copy celib.dll to \Windows


* Create a new root folder:
I chose to create it in the BIS.
\unix


* Create a logfile folder inside the root folder.
\unix\logs


* Copy the "apache" folder to the root folder.
The root folder now looks like this:
\unix (root)
\unix\logs (logfile folder)
\unix\apache (apache folder. Contains apache.exe and subfolders)


* Edit \unix\apache\conf\httpd.conf (this is probably easier to do on a pc)
The line:
ServerRoot "/speicherkarte/apache"
should be:
ServerRoot "/unix/apache"

The line:
ServerName jornada....
Should be:
ServerName 127.0.0.1

The line:
DocumentRoot "/speicherkarte/apache/htdocs"
Can be anything. It's the folder that contains the web page that you want to serve.
I chose (the test page):
DocumentRoot "/unix/apache/htdocs"

The line:
<Directory "/speicherkarte/apache/htdocs">
Should be the same as DocumentRoot:
<Directory "/unix/apache/htdocs">

The line:
ServerSignature On
can be left unchanged. I however changed it to Off:
ServerSignature Off


* Create a new registry key called Environment in HKEY_LOCAL_MACHINE
\\HKEY_LOCAL_MACHINE\Environment


* Create string values APACHEDIR, CELIBSTDLOGDIR inside the Environment key:
APACHEDIR = \unix\apache
CELIBSTDLOGDIR = \unix\logs


* Fire up apache.exe and look at your working web server.
With some more tweaks you can get cgi/perl working.

I've attached my httpd.conf. Unzip it to your \unix\apache\conf
Attached Files:
File Type: zip httpd.zip (12.3 KB, 9 views)

Last edited by DaLabrador; 06-20-06 at 11:29 AM.
DaLabrador is offline   Reply With Quote
Sponsor Ads
Old 06-27-06, 03:55 PM   #2 (permalink)
Blogger
 
Join Date: Jul 2005
Location: USA
Posts: 2,411
Device: Apple iPhone 8GB
Carrier: T-Mobile - Unlocked
Thanked 2 Times in 2 Posts

Awards Showcase
Moderator Medal News Editor Medal Aximsite Active Bronze Member Aximsite Contest Winner 
Total Awards: 4

Pretty sweet. One question, however. Why do you not simply use Mobile Apache?
__________________
Kevin Song
Aximsite News Editor
Aximsite Moderator


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ksong12 is offline   Reply With Quote
Old 06-27-06, 03:57 PM   #3 (permalink)
Blogger
 
Join Date: Jul 2005
Location: USA
Posts: 2,411
Device: Apple iPhone 8GB
Carrier: T-Mobile - Unlocked
Thanked 2 Times in 2 Posts

Awards Showcase
Moderator Medal News Editor Medal Aximsite Active Bronze Member Aximsite Contest Winner 
Total Awards: 4

Sorry, forgot links:

http://www.rainer-keuchel.de/software.html

See this thread also:

http://www.aximsite.com/boards/showt...eap+web+server
__________________
Kevin Song
Aximsite News Editor
Aximsite Moderator


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ksong12 is offline   Reply With Quote
Old 06-28-06, 10:05 AM   #4 (permalink)
Aximsite Veteran
 
DaLabrador's Avatar
 
Join Date: Jun 2006
Posts: 1,173
Device: Nokia 5310
Thanked 5 Times in 5 Posts
Originally Posted by ksong12
Sorry, forgot links:

http://www.rainer-keuchel.de/software.html

See this thread also:

http://www.aximsite.com/boards/showt...eap+web+server
The first url points to the apache web server that this mini howto is made for.
The only other web server in the second url (that is free and not the above apache port) is picowebserver, and according to someone here that one can only serve static pages.
I'm working on a mini howto for getting cgi(perl) working with above apache port.
DaLabrador is offline   Reply With Quote
Old 06-29-06, 08:27 AM   #5 (permalink)
Aximsite Veteran
 
DaLabrador's Avatar
 
Join Date: Jun 2006
Posts: 1,173
Device: Nokia 5310
Thanked 5 Times in 5 Posts
I got cgi/perl working, so now I've got an apache web server with cgi on my x51v (besides being able to write and run perl scripts on it).
If anyone is interested in a mini howto just holler at me.
DaLabrador is offline   Reply With Quote
Old 06-29-06, 10:35 AM   #6 (permalink)
Aximsite Major League
 
c00lk1d's Avatar
 
Join Date: Aug 2005
Location: Belgium
Posts: 383
Thanked 0 Times in 0 Posts
*strats pocking DaLabrador with a sharp stick*

Hey its outdated by a few years... I'm using 2.2 x86 and x64 for work...
But still its a nice toy... so put forth your perl experience
c00lk1d is offline   Reply With Quote
Old 08-01-06, 08:09 PM   #7 (permalink)
stevodude
Guest
 
Posts: n/a
AHhahahah thats freaking awsome!!!... :approve: :approve: :approve:

OK gimme some CGI/Perl setup please :approve: :love:

Once installed I can browse to main index.html

If i try to go to test.htm that is in htdocs, the image doesn't show, and I get an error "URL /cgi-bin/printenv.pl was not found " like the root is not set... or is wrong.

I changed the httpd.conf ServerRoot to "/unix/apache" - apache & perl installed in root folder of pda in /unix/apache/ etc...

any ideas?, is there another location in httpd.conf I have to change?

ah found speicherkarte left in 'icon' directory in httpd.conf.

still have an error the the test & test2 html files.

Last edited by stevodude; 08-01-06 at 10:15 PM.
  Reply With Quote
Old 11-06-06, 06:44 PM   #8 (permalink)
Aximsite Veteran
 
DaLabrador's Avatar
 
Join Date: Jun 2006
Posts: 1,173
Device: Nokia 5310
Thanked 5 Times in 5 Posts
I'm terribly sorry I haven't seen your posts. The perlce version I installed is at http://perlce.sourceforge.net/
@steveodude: I hope this will fix your problem. I installed everything at once; Apache, console, perl, ssh and so on, but this is at least some of what you'll have to do:
Perl needs the actual OS to execute the scripts, so you have to add the attached registry files (change the path to your perl executable with a text editor first) to your registry. This will have the effect that you'll be able to click perl scripts with a file explorer to execute them (Though you might need a console for that).

The registry value "PERL5LIB" = "\SD Card\unix\usr\perl5\lib" have to be created in the "Environment" key and the path points to the "lib" folder inside your perl folder.

Some snippets from my httpd.conf:
Code:
ServerRoot "/SD Card/UNIX/usr/apache"   #<---- apache.exe lives here
DocumentRoot "/SD Card/UNIX/public_html" #<----my html pages live here
You'll also have to change your "Directory" line if you change the folder where your webpages reside:
Code:
<Directory "/SD Card/UNIX/public_html">
The "ScriptAlias /cgi-bin/" needs to be changed as well. This is a part of my httpd.conf:
Code:
##------------------DaLabradors' httpd.conf-------------------------
<IfModule mod_alias.c>
    Alias /icons/ "/SD Card/UNIX/usr/apache/icons/"
    <Directory "/SD Card/UNIX/usr/apache/icons">
	Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ "/SD Card/UNIX/public_html/cgi-bin/"
    <Directory "/SD Card/UNIX/public_html/cgi-bin">
	ScriptInterpreterSource registry
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
##------------------DaLabradors' httpd.conf-------------------------
Attached Files:
File Type: zip perl_fileassociation.zip (433 Bytes, 2 views)
__________________
  1. Be Kind.
  2. Have fun.

Last edited by DaLabrador; 11-06-06 at 07:33 PM.
DaLabrador is offline   Reply With Quote
Reply

Tags
apache, axim, howto, server, web, x51v

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
X51V and A06. HowTo SadiaV Windows Mobile 5 8 03-10-06 04:16 PM
Axim x51v and MS Exchange Server 2K3 dmytro_s Windows Mobile 5 3 12-22-05 08:41 AM
Expea2 VGA on WM5 / X51v HOWTO anonOmus Themes and Skins 6 12-20-05 06:40 AM
AMP (apache mysql php) on x51v Majdaa PDA/AXIM Newbies 13 10-03-05 06:29 AM
HowTo: Wirelessly Sync w/ an Axim X5 Psychor PDA/AXIM Newbies 0 01-24-03 10:59 AM


All times are GMT -5. The time now is 03:01 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-10 LeckMedia, LLC