Apache & PHP
  • ASiegel
    Posts: 1376 from 2003/2/15
    From: Central Europe
    Hi,

    I am curious whether anybody recently successfully set up Apache+PHP on MorphOS 2.x. Thanks :)
  • »12.12.09 - 16:48
    Profile
  • Butterfly
    Butterfly
    SixK
    Posts: 72 from 2004/11/16
    My last apache+php port is from 2004...
    I ported php 5.2.6 last year and added SDL support ;)

    have a look here :
    http://dasixk.free.fr

    You may also find some more recent lighthttpd+php for Morphos on the net.

    SixK

    [ Edited by SixK on 2009/12/12 19:24 ]
  • »12.12.09 - 18:08
    Profile Visit Website
  • ASiegel
    Posts: 1376 from 2003/2/15
    From: Central Europe
    Yes, I tried the old port but it would not work for me :) Lighthttpd would be fine too I guess but I could not find anything right away. If you happen to have a link, I would appreciate it.
  • »12.12.09 - 18:28
    Profile
  • Butterfly
    Butterfly
    SixK
    Posts: 72 from 2004/11/16
    I may have confused lightpd with thttpd.
    http://aminet.net/comm/www/thttpd_2.21b_php_mos.lha

    But it's linked with php 4.4 :(

    Did you tried this version ?
    http://dasixk.free.fr/apache_1.3.31_php5.0Rc3_mos.lha

    Seem's there is a recent port here, but with PHP 4.4 version :
    http://www.amigaworld.de/software/morphos-portierungen/

    SixK

    [ Edited by SixK on 2009/12/12 21:29 ]

    [ Edited by SixK on 2009/12/12 21:45 ]
  • »12.12.09 - 20:23
    Profile Visit Website
  • ASiegel
    Posts: 1376 from 2003/2/15
    From: Central Europe
    @ SixK

    With your port, it tells me "fopen: no such file or directory" and "http: could not open error log".

    With DjBase's port, there is no error message, it just does not work :-)

    The thttpd port was a good suggestion in the sense that "localhost" actually works for me after I adapted the configuration to use the "www" user I set up for Apache. However, PHP does not work :) I just get HTML files displayed, unfortunately.

    (PHP4 would be good enough for my current needs.)
  • »12.12.09 - 21:05
    Profile
  • Butterfly
    Butterfly
    SixK
    Posts: 72 from 2004/11/16
    OK I see the problem with my port, It seem's I only put the binary...
    You may find a complete archive for another target and use my binary.
    Maybe you can mix DjBase archive with my binary.
    For thttpd, there is 2 archives, 1 without php and 1 with php support.
    If you took the good one and php don't work, maybe php support have not been activated in config file. You will have to read the (fucking) Manual ;)
    In apache, you have to say which file extensions will be interpreted as php file if someone did not done it for you ;) .

    Note that normaly, you can also use the php binary with an apache with no php support, but you have to find how to do it in apache configuration file...

    SixK

    [ Edited by SixK on 2009/12/13 11:25 ]
  • »13.12.09 - 10:18
    Profile Visit Website
  • ASiegel
    Posts: 1376 from 2003/2/15
    From: Central Europe
    @ SixK

    Quote:

    OK I see the problem with my port, It seem's I only put the binary... You may find a complete archive for another target and use my binary.


    Well, I obviously noticed that it was just a binary. I copied it into an older port of yours (1.31 or so). But no change.


    Quote:

    If you took the good one and php don't work, maybe php support have not been activated in config file. You will have to read the (fucking) Manual ;)


    If you check the archive on AmiNet, you will notice that, while multiple text files are included, there is literally no useful documentation included. Just some to-do list and basic information about how wonderful thttpd is. I read it all yesterday (not much there to begin with) but did not find any clues whatsoever.

    (In php.ini, the PHP engine is switched on at least.)

    Edit: Hmmm. thttpd actually works now. Loading pages from disk is a tad slower than I maybe expected though :) Anyway, thanks again for the hint regarding thttpd.
  • »13.12.09 - 11:06
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    DiskDoctor
    Posts: 306 from 2009/4/17
    From: Rzeszow, place...
    There's a bounty for AMP for AmigaOS4 already:

    http://www.amiga.org/forums/showthread.php?t=49604&highlight=apache+mysql+php
    Was: Mac Mini PPC running MorphOS 2.4
    Now: Amiga Forever 2010 with AmiKit and AmigaSYS
    Not used: Icaros Desktop 1.2 (reason: no wifi)
    Planned soon: an OS4 system
    Shortly then: a MOS notebook (wifi is a must-have)
  • »13.12.09 - 13:07
    Profile