stumbleupon toolbar
Make payments with PayPal - it's fast, free and secure!
This site is up for
Count
Get Firefox!
Last Shout - Posted by: acelere - Sunday, 10 June 2018 21:59
Just passed by to say hello!

  Reply to this topicStart new topicStart Poll

> Apache 1.3.27 + PHP 4.3.1 + mod_perl, mod_ssl, etc, for 03x
dingetje
  Posted: Apr 21 2003, 09:56 PM
Quote Post


Administrator
*****

Group: Admin
Posts: 713
Member No.: 1
Joined: 24-August 02



This is the BETA release of Apache 1.3.27 for freesco 03x.

user posted image + user posted image

Requirements
  • OpenSSL 0.9.6g package by nadegda. It can be installed with:
CODE
pkg -i http://freesco.no-ip.org/openssl/openssl-0.9.6g_user_nadegda
I'm not sure if the package is on the FREESCOSoft mirrors yet.
Without the openssl libraries the package will install, but PHP will not start!
  • perl 5.6.1 package, Apache can be installed without it, but then mod_perl will be disabled.
  • aprox. 40Mb free disk space (8Mb for the package + 32Mb after install)
  • a kernel with SYSV shared memory support built in. The installation script contains a check for this. If your kernel does not pass this test (the stock freesco kernel will fail), read the notes below.
  • <h3>What do I get?</h3>
    • Apache 1.3.27 with complete online manual.
    • PHP 4.3.1 with a sh*tload of built-in goodies. See here
    • mod_ssl for Secure Socket Layer based on the OpenSSL toolkit. Manual is inside the package.
    • mod_perl, but this time as a loadable module, so if you don't need it/want it, you can remove it from your Apache config. In fact if perl 5.6.1 is missing on the target system, the installation script will automatically disable mod_perl.
    • mod_mp3 turns Apache into an MP3 or Ogg streaming server. FAQ is inside the package. A single sample mp3 is inside the package too.
    • mod_dosevasive (short for DoS evasive maneuvers) protects Apache against DoS attacks or very pushy clients.
    • stuff I forget...
    Installation
    CODE
    pkg -i http://dingetje.homeip.net/beta/0.3.x/apache_1.3.27_dingetje

    Post Install / Notes
    • if your box fails the kernel check, you'll need to install a suitable kernel from Lightning's kernel package.
      Use the search form on FREESCOSoft, select the mirror closest to you, and search for 'kernels'. The NL link is f.i. http://freescosoft.freebse.nl/FREESCO/pack...-_lightning.htm
    • Check the test links on the http://your.freesco.ip/apache.html test page
    • Read the SSL manual and follow the procedure there to create a certificate for your server.
    • As a minimum go through the provided /usr/local/apache/conf/httpd.conf file and change/add the ServerName setting for both the normal and the SSL web server.
    • default the mod_ssl and mod_mp3 servers are blocked from the internet (ports 443 and 8000 resp.). If you want to open these worldwide you'll have to comment out the firewall rules in /pkg/rc/rc_apache script.
    • I've notice the mod_mp3 module sometimes refuses to restart with apache restart but restarts OK when rc_httpd restart is used.
    • This PHP version comes with a commandline version (/usr/local/bin/php) that is great for debugging and the occasional PHP script you want to execute via cron.
    • The PHP library can be kept up to data with the pear command. Use /usr/local/bin/pear help for a list of commands.
    • The package no longer contains a replacement kernel (like my 1.3.26 package did). Instead you'll have to install the kernels-x.xx-lightning package.
    • If you have Apache already installed, then a backup of your current httpd.conf is made. Because of the added SSL server, the new version looks a bit different. But you can use copy/paste to x-fer settings from your current web server to the new.
    • I'd appreciate some feedback. But in case of problems, please start a new thread in "3rd party support" because sometimes these threads tend to get rather long and will cloud this announcement.
    • You can tell Apache is started with SSL enabled in the startup message. When it reads:
    QUOTE
    Starting Apache HTTP(S) server...      Done

    Note the extra (S)? If that is missing then Apache is running without SSL and also without PHP!


  • It's possible the dependency checks for openssl and/or perl 5.6.1 fail by the pkg command. It depends what 03x version you're using. The installation script will repeat the checks and print out a message if all is OK:
  • QUOTE
    OpenSSL libraries found, good
    /lib/libssl.so
    /lib/libssl.so.0
    /lib/libssl.so.0.9.6
    mod_perl module found, good


    --------------------
    PMEmail PosterUsers WebsiteICQ
    Top
    dingetje
      Posted: Jun 18 2003, 02:56 PM
    Quote Post


    Administrator
    *****

    Group: Admin
    Posts: 713
    Member No.: 1
    Joined: 24-August 02



    I recommend to install Apache only on freesco boxes with at least 32Mb memory or more. I have 96Mb in my box and the httpd Apache processes have the most memory allocated (tip: use top and sort on memory usage (key M)), usually around 30-40%.

    When you are planning on using PHP a lot, then at least a P100-150 is required for a reasonable respons time.



    --------------------
    PMEmail PosterUsers WebsiteICQ
    Top
    dingetje
      Posted: Aug 18 2003, 06:14 PM
    Quote Post


    Administrator
    *****

    Group: Admin
    Posts: 713
    Member No.: 1
    Joined: 24-August 02



    To reduce the memory footprint of Apache consider to remove the loading of the mod_mp3 and mod_perl modules. This can be quite easy be accomplished by commenting out a few lines from your httpd.conf file:

    CODE
    #LoadModule mp3_module libexec/mod_mp3.so


    CODE
    #LoadModule perl_module        libexec/libperl.so


    CODE
    #AddModule mod_mp3.c


    CODE
    #AddModule mod_perl.c


    save changes and restart Apache with rc_httpd restart.

    On a 0.2.7 test machine this dropped the memory footprint with 1 to 2 Mb per started httpd process.


    --------------------
    PMEmail PosterUsers WebsiteICQ
    Top
    dingetje
      Posted: Sep 30 2003, 07:27 PM
    Quote Post


    Administrator
    *****

    Group: Admin
    Posts: 713
    Member No.: 1
    Joined: 24-August 02



    If you do *NOT* need the HTTPS server (secure HTTP requests via port 443), then you can disable this Virtual Server as follows:

    1. edit your httpd.conf and disable loading of the mod_ssl module:

    CODE
    <IfDefine SSL>
    #LoadModule ssl_module         libexec/libssl.so
    LoadModule php4_module        libexec/libphp4.so


    and a bit further down:

    CODE
    <IfDefine SSL>
    #AddModule mod_ssl.c
    AddModule mod_php4.c


    2. Then locate the lines where the Virtual Host for HTTPS is defined and change that from:

    CODE
    <IfDefine SSL>

    ##
    ## SSL Virtual Host Context
    ##
    <VirtualHost _default_:443>


    into:
    CODE
    <IfDefine SSL_BLAH>

    ##
    ## SSL Virtual Host Context
    ##
    <VirtualHost _default_:443>


    3. safe changes and restart Apache with:

    CODE
    rc_httpd restart


    Test if the changes were succesfull with your /apache.html test page (standard in the package). The PHP scripts should still work, but HTTPS access should be disabled (you should get a 'Connection refused' error).


    --------------------
    PMEmail PosterUsers WebsiteICQ
    Top
    dingetje
      Posted: Apr 6 2005, 02:08 AM
    Quote Post


    Administrator
    *****

    Group: Admin
    Posts: 713
    Member No.: 1
    Joined: 24-August 02



    Due to an error in the php.ini in the package, the default cookie domain is set to "dingetje.homeip.net"

    This will cause a lot of PHP script *NOT* to work properly!!

    See this FAQ howto fix this.

    Sorry for the inconvience!
    doh.gif w00t.gif


    --------------------
    PMEmail PosterUsers WebsiteICQ
    Top
    0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
    0 Members:

    Topic Options Reply to this topicStart new topicStart Poll

     



    [ Script Execution time: 0.5250 ]   [ 11 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.32 ]


    FREESCO WebRing
    The FREESCO Router WebRing
    [ Join Now | Ring Hub | Random | << Prev | Next >> ]

    Nedstat Basic - Gratis web site statistieken
Eigen homepage website teller


    MKPortal ©2003-2006 mkportal.it
    Page generated in 0.3446 seconds with 13 queries