Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 82 guest(s) on-line.
 2 member(s) on-line.


 K-L,  yoodoo2

You are an anonymous user.
Register Now!
 yoodoo2:  57 secs ago
 K-L:  3 mins ago
 sananaman:  10 mins ago
 Karlos:  22 mins ago
 towo2099:  27 mins ago
 matthey:  27 mins ago
 Mobileconnect:  41 mins ago
 Joe_RSA:  56 mins ago
 zipper:  1 hr 5 mins ago
 vox:  1 hr 5 mins ago

Software News   Software News : Apache for OS4: new release with PHP5-support
   posted by CygnusEd on 8-Jul-2005 15:23:59 (26049 reads)
Now available for AmigaOS4: Apache with PHP5-support!

You can download it at OS4depot


New in this release:

* Support of PHP 5.0.4 including the new zend-engine 2 !!

* New extensions in the php-module:
- SQLite: The new simple SQL database engine. It's now possible to create web-pages with database-support under OS4 (V 2.8.14).
- dom: The extension allows you to operate on an XML document with the DOM API.
- libxml: support of 'The XML C parser and toolkit of Gnome' (libxml2 - V 2.6.19).
- SimpleXML: The SimpleXML extension provides a very simple and easily usable toolset to convert XML to an object that can be processed with normal property selectors and array iterators.
- soap: The SOAP extension can be used to write SOAP Servers and Clients. (V 1.139.2.4)
- SPL: SPL is a collection of interfaces and classes that are meant to solve standard problems.

* New examples in the example-directory.

* Fixed problem with global variables starting with '$_' like '$_SERVER'.
(in PHP4- and PHP5-version).
    

STORYID: 2413
Related Links
· More about Software News
· News by CygnusEd


Most read story about Software News
UBoot 2010.06.04 for Sam460ex available

Last news about Software News
Hollywood APK Compiler 4.0 released
Printer Friendly Page  Send this Story to a Friend

Goto page ( 1 | 2 )

PosterThread
MH2 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 15:16:05
#21 ]
Member
Joined: 14-Apr-2003
Posts: 63
From: Gällivare - Sweden

Then you have to read the readme file.

Quote:

-----------------------------------------

Installation:

a) with Installer:

Simply double-click the "Install_Apache"-icon.

b) by hand:

- Unpack the archive and copy the value to wherever you want.
(e.g.: "Work:Networking/").

- Add these lines to your user-startup:

;BEGIN Apache
Assign Apache:
Assign bin: Apache:bin ADD
Path Apache:bin ADD
;END Apache

- Copy the content of the ENVARC-drawer to ENVARC:


In both cases you have to add a group "www" and a user "www" to your network-
settings:

Open file "sys:Devs/Internet/groups" with a text-editor and add this
line:

NAME=www ID=45 USERS=www

Open file "sys:Devs/Internet/users" with a text-editor and add this
line:

NAME=www UID=1001 GID=45 DIR=sys: SHELL=noshell

-----------------------------------------

Configure:

- Open the configuration-file "Apache:conf/httpd.conf" with a text-editor
(e.g. Notepad).

- Search for the line starting with "ServerName". Replace "foo" with your
network-name or with your IP of your amiga (Look at your
internet-preferences).

You don't need to edit the other settings, but it would be wise to edit these
settings:

- "ServerAdmin": Replace "foo@mail.de" with your own email-address.

- "DocumentRoot": If you don't want to store your content into
"Apache:htdocs",
you can replace the path with your prefered one. If you do so, you must
change
the line starting with '' too.

IMPORTANT: => All paths in the config-file have to be spelled in
unix-style!!
You have to write "/Apache" instead of "Apache:".

=> If you choosed to install both versions of Apache (PHP4 +
PHP5),
you will find two different versions of the main config-file
in
'Apache:conf/': httpd.conf for PHP5 and httpd-php4.conf for
PHP4!

=> By default apache with PHP5 is set to port 80 and apache with
PHP4 to port 8080.

For further information please refer to the manuals or to
"http://httpd.apache.org/".

-----------------------------------------

Starting / stopping:

To launch the server, open the "Apache:"-drawer an double-click
"starthttpd.rexx".
To stop it double-click "stophttpd.rexx".

After starting, try to access the apache-start-page by typing
"http://localhost"
into
your web-browser. It should appear after a few seconds.

If you have installed the PHP4-version too, then you can start and stop this
server
with "starthttpd-php4.rexx" and "stophttpd-php4.rexx".


----------------------------------------


_________________

 Status: Offline
Profile     Report this post  
CygnusEd 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 15:37:44
#22 ]
Regular Member
Joined: 7-Feb-2004
Posts: 393
From: germany

@nbache

Did you add the user 'www' in group 'www' to you internet-settings?
After trying to load 'suexec', apache checks these settings.
It is described in the readme-file, how to do that. Be sure, that the user-id and the group-id is unique.
Even if you installed apache with the installer-script, you have to do it. Thanks to magham this will be fixed in the next release

BTW: suexec is and will not be required by apache/OS4. So don't worry about it.

cygnusEd


_________________
X-5000 PPC 5020/2 GHZ, Fractal Define XL R2-Tower, OS 4.1 final update 2, 4 GB, Radeon HD 7770, ESI Juli@ XTe
SAM 460ex/1,15 GHZ, OS 4.1 final, 2 GB, Radeon HD 6450
Amiga 4000D/040 25 Mhz, OS 3.9 BB2, 272 MB, X-Surf, 250 MB ZIP

 Status: Offline
Profile     Report this post  
CygnusEd 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 15:50:46
#23 ]
Regular Member
Joined: 7-Feb-2004
Posts: 393
From: germany

@all

Thanks for your posts Hope that there are not too much bugs in it


@opi @wegster @CodeSmith

I think I will publish my code in a diff-file. There are too much handmade things in it, which will not work together with 'configure'. I've configured all parts under Linux and adapted it to the needs of the SDK under OS4.
But first I have to cleanup my projects - don't like to see, that someone get's a heartattack after viewing it.

cygnusEd


_________________
X-5000 PPC 5020/2 GHZ, Fractal Define XL R2-Tower, OS 4.1 final update 2, 4 GB, Radeon HD 7770, ESI Juli@ XTe
SAM 460ex/1,15 GHZ, OS 4.1 final, 2 GB, Radeon HD 6450
Amiga 4000D/040 25 Mhz, OS 3.9 BB2, 272 MB, X-Surf, 250 MB ZIP

 Status: Offline
Profile     Report this post  
nbache 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 18:17:52
#24 ]
Super Member
Joined: 8-Apr-2003
Posts: 1034
From: Copenhagen, Denmark

@MH2:
Quote:

Then you have to read the readme file.

Well, of course

Now why didn't I ever get *that* obvious idea -- oh wait, I did

As I mentioned, I'm fairly familiar with Apache already, and with the excellent readme file (which already was praised by somebody earlier in this thread, and which I followed to the letter), I thought I couldn't have done anything wrong. And as I checked everything again, it turned out I hadn't ... except for this little beauty of a typing error in the groups file:

NAMEe=www ID=45 USERS=www

Doh ...

Thanks anyway. It works fine now.

One more question for CygnusEd, though: Is it Apache that outputs lots of lines containing "Function alarm() not implemented" on the serial output? If so, what does it imply (anything to be worried about?), and could that output be turned off?

Best regards,

Niels

 Status: Offline
Profile     Report this post  
ggw 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 20:08:39
#25 ]
Super Member
Joined: 24-May-2003
Posts: 1106
From: Austin, TX

@Niels

I am wondering of what value Apache is to me with my AmigaOne at home with no one but me accessing it. It is not a webserver.

Might I use it as a practice site for employment elsewhere?

Use it in place of ARexx or python (or AmigaDOS!) as a report tool? like "serving" me pages constructed from a database of items? I have pictures, programs, addresses and email that might benefit from my creating PHP of a selection scheme to collect a desireable subset of the entire database. Since SQLLite is a relational database, could intermingle those databases.

Is this the right line of thought about having Apache on my AmigaOne?

Curious,


_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
CygnusEd 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 20:14:12
#26 ]
Regular Member
Joined: 7-Feb-2004
Posts: 393
From: germany

@nbache

Oh - damn, I forgot to switch off this debugging message. But you don't have to be worried about this. The alarm-function is not implemented in this release and this message should show me, when this function is called.

I have an alarm-function for Apache, but it is not tested well.
The only problem is, that timeout for requests is not working. This is not a big problem, if you use Apache for developement.

If it is a problem for you, I can send you a recompiled binary.

cygnusEd


_________________
X-5000 PPC 5020/2 GHZ, Fractal Define XL R2-Tower, OS 4.1 final update 2, 4 GB, Radeon HD 7770, ESI Juli@ XTe
SAM 460ex/1,15 GHZ, OS 4.1 final, 2 GB, Radeon HD 6450
Amiga 4000D/040 25 Mhz, OS 3.9 BB2, 272 MB, X-Surf, 250 MB ZIP

 Status: Offline
Profile     Report this post  
nbache 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 20:28:24
#27 ]
Super Member
Joined: 8-Apr-2003
Posts: 1034
From: Copenhagen, Denmark

@CygnusEd:
Quote:

Oh - damn, I forgot to switch off this debugging message. But you don't have to be worried about this. The alarm-function is not implemented in this release and this message should show me, when this function is called.

Yes, I thought is had to be something like that. I was just wondering why something wanted to call something named alarm() so often, is that normal? (I don't know Apache *that* intimately )

Quote:
If it is a problem for you, I can send you a recompiled binary.

Well, it does tend to get in the way of the "normal" serial output, which I use regularly as an OS4 beta tester. But I guess if you are planning another release anyway in the not too distant future, I can live with it for a while.

Best regards,

Niels

 Status: Offline
Profile     Report this post  
CygnusEd 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 22:02:19
#28 ]
Regular Member
Joined: 7-Feb-2004
Posts: 393
From: germany

@nbache

I'm afraid, that the next version will need a while. You can send me your email-address (profile) if you like - then I can send you a fixed binary.

cygnusEd


_________________
X-5000 PPC 5020/2 GHZ, Fractal Define XL R2-Tower, OS 4.1 final update 2, 4 GB, Radeon HD 7770, ESI Juli@ XTe
SAM 460ex/1,15 GHZ, OS 4.1 final, 2 GB, Radeon HD 6450
Amiga 4000D/040 25 Mhz, OS 3.9 BB2, 272 MB, X-Surf, 250 MB ZIP

 Status: Offline
Profile     Report this post  
nbache 
Re: Apache for OS4: new release with PHP5-support
Posted on 9-Jul-2005 22:12:51
#29 ]
Super Member
Joined: 8-Apr-2003
Posts: 1034
From: Copenhagen, Denmark

@CygnusEd:
Quote:
[You can send me your email-address (profile) if you like - then I can send you a fixed binary.

Thanks -- you've got mail

Best regards,

Niels

 Status: Offline
Profile     Report this post  
SnowBord 
Re: Apache for OS4: new release with PHP5-support
Posted on 10-Jul-2005 1:48:45
#30 ]
Member
Joined: 2-Apr-2004
Posts: 31
From: Unknown

CygnusEd:

good stuff. keep it up!

 Status: Offline
Profile     Report this post  
mbilla 
Re: Apache for OS4: new release with PHP5-support
Posted on 10-Jul-2005 20:29:20
#31 ]
Super Member
Joined: 25-May-2003
Posts: 1369
From: EU

Great work! I have installed Apache and it seems to run. But what should I do with it?
My A1 runs 24/24h. Any ideas?

BTW where is a usefull site for Apache beginners? With ideas just to test this beast?

THX.

Last edited by mbilla on 11-Jul-2005 at 05:45 AM.


_________________
A computerworld without MS products and Windows!
Connect your Amigas ...
...The Red ONE-A1XE G4 - A3000T- A3000 - A4000 - A2500- A1000 - A600 - CDTV - CD32...
and your PDAs and laptops ...
Psion 5mx Pro - Psion NetBook - Apple iPhone - MacBook Pro

 Status: Offline
Profile     Report this post  
MH2 
Re: Apache for OS4: new release with PHP5-support
Posted on 11-Jul-2005 7:46:28
#32 ]
Member
Joined: 14-Apr-2003
Posts: 63
From: Gällivare - Sweden

There is an work on it. Just wait and see.


_________________

 Status: Offline
Profile     Report this post  
nbache 
Re: Apache for OS4: new release with PHP5-support
Posted on 12-Jul-2005 20:45:02
#33 ]
Super Member
Joined: 8-Apr-2003
Posts: 1034
From: Copenhagen, Denmark

@ggw:
Sorry, I missed your post at first and only saw it today when I revisited the thread. But I think your questions are good and deserve (an attempt at) answers.

Quote:

I am wondering of what value Apache is to me with my AmigaOne at home with no one but me accessing it. It is not a webserver.

Well, technically it is a webserver, as a webserver is simply a program that responds to TCP requests, usually on port 80, that follow the HTTP protocol. It might do more than that, but that's the base criterion.

Whether you can use it all by yourself depends on a few things. First of all, you should have your TCP/IP stack running, so a single machine dialing up via modem is probably not very practical (but possible). A good example is if you have several machines in a LAN, then one of them can serve pages or other objects (files, maybe pictures or MP3 files or whatever) to the others.

I also use it as a test-bed for e.g. the picture pages which I later publish on http://nbache.dk/ -- I can put the new files into the directory/ies defined as Apache's DocumentRoot (the place from where it serves its files), and then browse them with my web browser from the same machine or another one on the LAN, even let my wife have a look from her PC to make sure they also look acceptable under Windoze. The great thing about testing like this is that the conditions are very close to the live situation, as there is a webserver involved also in the test environment.

Finally I also sometimes open a port (not necessarily the standard port 80) through my router, so friends and family can fetch pictures from e.g. our last outing or party, without them getting too public.

Quote:

Might I use it as a practice site for employment elsewhere?

That's a very good idea, and definitely possible. Apache is configured the same way on all platforms (more or less, at least), and experience with running it at home can definitely be useful professionally.

Quote:

Use it in place of ARexx or python (or AmigaDOS!) as a report tool? like "serving" me pages constructed from a database of items? I have pictures, programs, addresses and email that might benefit from my creating PHP of a selection scheme to collect a desireable subset of the entire database. Since SQLLite is a relational database, could intermingle those databases.

This is where I start getting on thinner ice. I use web servers at home only to serve HTML (and files). I don't know any PHP, and in fact also no Python. And I also haven't yet had a look at SQLLite to see what it can (and can't!) do. But I don't see why not.

At work we use Apache (on AIX) for a variety of applications, usually involving some program being started as CGI, and ending up generating a HTML page on the fly. What lies in between can be anything from a simple shell script, through a Perl (yukk!) program, to a full-fledged C++ program. Often those programs access our Oracle database to retrieve parts of the information presented.

We have complete systems that run like this, where the users interact with "screens" made up of such dynamic HTML pages. Works quite nicely as a quick gapstop when we lack the resources for something more elaborate.

Quote:

Is this the right line of thought about having Apache on my AmigaOne?

Could well be. You can do almost anything with it. And as mentioned, you don't really need an actual network, although you do need the TCP/IP stack.

But of course, many of the really useful applications will probably have to wait until CygnusEd gets done with the CGI stuff.

Best regards,

Niels

 Status: Offline
Profile     Report this post  

Goto page ( 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle