WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: apache2.tce  (Read 9088 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
apache2.tce
« on: December 22, 2008, 04:02:40 PM »
Thanks to softwaregurl we now have apache-2.2.8.tcel

Code: [Select]
Title:          apache-2.2.8.tcel
Description:    Apache HTTP server
Version:        2.2.8
Author:         Apache Software Foundation
Original-site:  http://archive.apache.org/dist/httpd/httpd-2.2.8.tar.bz2
Copying-policy: Apache License, Version 2.0
-----------------------------------------------------
Extension by:   softwaregurl
Comments:       Configured with --enable-mods-shared=all --prefix=/usr/local
                Ownership changed (mostly) according to BLFS Version 6.3
                moved /usr/local/htdocs to /home/tc/htdocs and sym-linked
                changed to run as tc:staff in /usr/local/conf/httpd.conf
                removed /usr/local/man and /usr/local/manual (apache-2.2.8-docs.tce)
                put License files in /usr/local/share/doc/License/apache/
Change-log:     2008/12/21 Original
Current:        2008/12/21 Original

« Last Edit: January 01, 2009, 06:25:42 PM by Jason W »

Offline c-coder

  • Newbie
  • *
  • Posts: 16
Re: apache-2.2.8.tcel
« Reply #1 on: December 22, 2008, 06:23:59 PM »
Really Great Job.
Well Done.
If i am not wrong apache will run now with this extension full in ram ?
How big is the size of the extension.
How much ram would it used.

What i miss now is PHP with the PHP Ming (Flash) Lib support and tiny core linux is my future Web Server platform.
http://www.php.net/ming
http://www.gazbming.com/
http://www.opaque.net/ming/examples/index.html
http://www.libming.org/FrontPage
« Last Edit: December 22, 2008, 06:39:53 PM by c-coder »

Offline c-coder

  • Newbie
  • *
  • Posts: 16
Re: apache-2.2.8.tcel
« Reply #2 on: December 22, 2008, 06:29:55 PM »
Thanks to softwaregurl we now have apache-2.2.8.tcel

One question.
Why not the actual released version apache-2.2.11.

http://www.apache.org/dist/httpd/Announcement2.2.html

Quote
2008-12-14
Apache HTTP Server 2.2.11 Released

The Apache Software Foundation and the Apache HTTP Server Project are pleased to announce the release of version 2.2.11 of the Apache HTTP Server ("Apache").

This version of Apache is principally a bug fix release.

We consider this release to be the best version of Apache available, and encourage users of all prior versions to upgrade.

Apache HTTP Server 2.2.11 is available for download from:

    http://httpd.apache.org/download.cgi

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: apache-2.2.8.tcel
« Reply #3 on: December 28, 2008, 01:16:07 PM »
Quote
One question.
Why not the actual released version apache-2.2.11.
2.2.8 is the version supported on BLFS (I was wondering why the tarball was in the apache archive).  good catch.  I will upgrade soon.
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: apache-2.2.8.tcel
« Reply #4 on: December 28, 2008, 07:46:59 PM »
I tested with tinycore 1.0rc6 and apache started with nothing other then the warning about not being able to determine the servers fully qualified domain name (or such).  It worked for me on 2 computers booting with base norestore.   ????

Jason W: If you could go ahead and rename what you have to apache2.tcel.  I think changing the name now instead of when the update is ready will save confusion.
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: apache-2.2.8.tcel
« Reply #5 on: December 28, 2008, 09:09:45 PM »
I started apache as a .tce and here is what I saw: hence the adding of the .tcel:

httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

No big deal.

I will rename the extension to apache2.tcel.

EDIT: started with httpd instead of apachectl which was the problem, I am not much of an apache person.

Thanks,
JW
« Last Edit: January 01, 2009, 06:23:13 PM by Jason W »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: apache2.tce
« Reply #6 on: January 01, 2009, 06:25:21 PM »
Thanks to softwaregurl for an update to apache2.tce:

Code: [Select]
Title:          apache2.tce
Description:    Apache HTTP server
Version:        2.2.11
Author:         Apache Software Foundation
Original-site:  http://www.urlstructure.com/apache/httpd/httpd-2.2.11.tar.bz2
Copying-policy: Apache License, Version 2.0
size:           3.1M
Extension_by:   softwaregurl
Comments:       start with "sudo apachectl -k start" help? apachectl -h
                put site in /home/tc/htdocs/
                test with http://127.0.0.1/
                Documentation in apache2-docs.tce
                put License files in /usr/local/share/doc/apache2/
                build script is apache-build.sh
Change-log:     2008/12/21 Original 2.2.8 http://archive.apache.org/dist/httpd/httpd-2.2.8.tar.bz2
                2008/12/30 updated to version 2.2.11
                           wrote build script
                           updated this file (do instructions help?)
                           renamed to apache2.tce (was apache-2.2.8.tcel)
Current:        2008/12/30


Code: [Select]
Title:          apache2-docs.tce
Description:    Apache HTTP server local documentation
Version:        2.2.11
Author:         Apache Software Foundation
Original-site:  http://www.urlstructure.com/apache/httpd/httpd-2.2.11.tar.bz2
Copying-policy: Apache License, Version 2.0
Size:           2.1M
Extension_by:   softwaregurl
Comments:       search for this line in /usr/local/conf/httpd.conf and uncomment it.
                #Include conf/extra/httpd-manual.conf (remove #)
                ADD TO BACKUP if desired.
                start or restart server (sudo apachectl -k restart)
                http://127.0.0.1/manual
Change-log:     2008/12/21 Original (not released) 2.2.8 http://archive.apache.org/dist/httpd/httpd-2.2.8.tar.bz2
                2008/12/30 updated to version 2.2.11
Current:        2008/12/30

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: apache2.tce
« Reply #7 on: February 21, 2009, 07:46:07 PM »
I was wondering if apache2 is PPI compatible.  Everything is in /usr/local/... except the web site which is in /home/tc/htdocs/ and should be in persistent home or backup.  apache2-docs should be as I remember.

Mostly just wondering how compatible is defined for the info file.
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: apache2.tce
« Reply #8 on: February 21, 2009, 08:08:40 PM »
I assume that if the application itself is contained within /usr/local it should be pure for PPI.  I don't know about its possible dependencies (sorry i'm a lighttpd guy, so I haven't looked at it =0)).  Also assuming that the web site is configurable, so the user could put that wherever is desired.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: apache2.tce
« Reply #9 on: February 21, 2009, 08:31:12 PM »


This is a good question as to what is PPI compatible since some some extensions contain files that may be above /usr/local yet they are not essential to the extension's operation or they could be listed in the info file as needing to be backed up.  Pppsetup is one example as it's config files are in /etc though the rest of the extension is in /usr/local.  It was going to be a long battle recreating the script to use /usr/local/etc as the config directory so I sort of gave up and stuck with /etc as the config dir and listed in the info file what to back up.  So it is sort of PPI compatible.  To me it is still kind of a grey area, but I guess for now we should go by the simple and hard rule that nothing is to be above /usr/local/ in the extension itself.

When files just have to be in the base system, like /bin/bash, putting a test in the install script to create a symlink will often work.  Bash is PPI compatible as a result of the startup script symlinking /usr/local/bin/bash to /bin/bash.  I personally avoid putting anything in the home directory as it will overwrite stuff there when someone is using persistent home.  Especially now that we have the USER boot option and there are other users than tc.  I see /home/tc is where the htdocs are and that would not benefit someone who is booting as a different user.  Being multiuser makes it not optimal to place extension files in /home/tc.  If I was using the home directory as the web server directory, in the config I would set the server root to "/home/$USER/htdocs" or "~/htdocs".  Also, I would store the index.html say in /usr/local/example.  Then in the install script put:

[ -e /home/$USER/htdocs ] || mkdir /home/$USER/htdocs && cp /usr/local/example/index.html /home/$USER/htdocs/

That way the extension is PPI compatible and will not overwrite an existing index.html that is in persistent home.

I hope I don't appear critical but rather just trying to help.

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: apache2.tce
« Reply #10 on: February 21, 2009, 10:10:18 PM »
Quote
I hope I don't appear critical but rather just trying to help.
What could be critical about explaining how to make it compatible in detail.  That was the point of asking.  I will have a go at it. I needed to add menu entries anyway.  I also need to look further into configuring apache for multiple users.

I was going with the idea of sites being in /home/sites/$USER/... in Redhat and home/tc being in the backup.  This was before bind was changed for persistent /home instead of /home/tc or USER boot option.

I never thought of the index.html being overwritten with /home persistent but not /usr/local.
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline mfrna

  • Newbie
  • *
  • Posts: 18
Re: apache-2.2.8.tcel
« Reply #11 on: April 08, 2009, 10:00:47 AM »
I started apache as a .tce and here is what I saw: hence the adding of the .tcel:

httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

No big deal.

I will rename the extension to apache2.tcel.

EDIT: started with httpd instead of apachectl which was the problem, I am not much of an apache person.

Thanks,
JW

ok ,where can I get libaprutil-1.so.0

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: apache2.tce
« Reply #12 on: April 08, 2009, 01:08:57 PM »
apachectl is the way to start apache if I recall.  It will use the proper libraries when called that way.  httpd will not, and that is how I saw the "error".  That library exists in the apache extension.

Offline mfrna

  • Newbie
  • *
  • Posts: 18
Re: apache2.tce
« Reply #13 on: April 08, 2009, 08:25:01 PM »
thanks jason

I was just being stupid  ;D