DirectAdmin Forums

Go Back   DirectAdmin Forums > Technical Discussion > Installation / System Requirements

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2003, 07:50 PM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Custom Apache Build System

Hello all,

This thread holds information about our customapache build script. It allows everyone to rebuild apache easily and customize php more easily.

Comes with:
Apache 1.3.33
mod_ssl 2.8.22
mod_perl 1.29
php 4.3.11
zend 2.5.7
gd 2.0.33
libjpeg 6b
libpng 1.2.7
libmcrypt 2.5.7
zlib 1.2.1
curl 7.12.3
mod_frontpage 1.6.1
Frontpage 5.0.2.2510
mhash 0.9.1
zzip 0.10.82

As root, type:
Code:
cd /usr/local/directadmin
mkdir customapache
cd customapache
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build all


And if you want to have Zend, after the whole thing finishes, type:
./build zend

and answer all questions.
Zend install = /usr/local/Zend
php.ini = /usr/local/lib
Apache config dir = /etc/httpd/conf
php = 4.3.9
apache bin = /usr/sbin

it will try to restart the server, which might fail, so type
service httpd restart

I've tested it on my box at home, and our test box. Let me know how it goes for you guys. Takes about 15 minutes on a 750Mhz.

You can have a look at the <? phpinfo(); ?> that it will produce here:
http://files.directadmin.com/info.php

If you have any comments on the default ./configure for apache and php, I'd love to hear them.

Thanks,

John
Reply With Quote
  #2  
Old 06-19-2003, 07:59 PM
Two_A_T Two_A_T is offline
Verified User
 
Join Date: Jun 2003
Location: Wilmington, NC
Posts: 130
Nice!

Although I think I'll wait for a non-beta Guess I'm too cautious LOL

Great job again John!
Reply With Quote
  #3  
Old 06-20-2003, 12:26 AM
ProWebUK's Avatar
ProWebUK ProWebUK is offline
Administrator
 
Join Date: Jun 2003
Location: UK
Posts: 2,326
still no box to try it out on yet
__________________
OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
ProWebUK - Quality Web Services
DirectAdmin Server Checklist
Reply With Quote
  #4  
Old 06-20-2003, 12:28 AM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Its 1:30am local time here, I'm going to run it on this server.

(In case anyone wonders why apache is dead for 15 minutes or so)

John
Reply With Quote
  #5  
Old 06-20-2003, 12:45 AM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Success!

That was actually very painless.

DirectAdmin's Task Queue sent me an email telling me that httpd was down, right on queue.

Total httpd downtime: 9 minutes 20 seconds
Thats with running "./build zend" seperately. If you are reading this, you know it worked

I'll continue to monitor the server to see if anything is missing/broken, but everything seems to be perfect at the momment

John
Reply With Quote
  #6  
Old 06-20-2003, 12:56 AM
ProWebUK's Avatar
ProWebUK ProWebUK is offline
Administrator
 
Join Date: Jun 2003
Location: UK
Posts: 2,326
missed the note by a few minutes :P sounds ok though

Chris
__________________
OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
ProWebUK - Quality Web Services
DirectAdmin Server Checklist
Reply With Quote
  #7  
Old 06-20-2003, 10:46 AM
StingRay StingRay is offline
Verified User
 
Join Date: Jun 2003
Posts: 12
A few comments on the PHP info. (comparing it to one of mine)

- variables_order = GPCS (what about EGPCS?)
- Max Requests = Per Child: 1000 - Keep Alive: off - Max Per Connection: 100 (or Per Child: 0 - Keep Alive: on - Max Per Connection: 100 )

PHP config missing.
- bcmath
- calendar
- imap
- mcrypt (very important)
- pear
Reply With Quote
  #8  
Old 06-20-2003, 10:53 AM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Hello,

I'll look at the options you've included. Keep in mind that you can add any configure options you want with this script.

John
Reply With Quote
  #9  
Old 06-20-2003, 12:39 PM
jlasman's Avatar
jlasman jlasman is offline
NoBaloney
 
Join Date: Jun 2003
Location: Riverside, Calif., USA
Posts: 20,706
John,

Just my us$0.02 worth...

My suggestion is you should include all the php options people might possibly want in your base install, unless you see some kind of security issue...

the reason being that if everyone's base apache/php install is subtly different you may have problems with support later.

Just my us$0.02.

Jeff
__________________

Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345
Third-Party DirectAdmin administration and support
Dedicated Servers, Dedicated Reseller Accounts
NoBaloney Internet Services
P.O. Box 52200
Riverside, Calif. 92517
Reply With Quote
  #10  
Old 06-20-2003, 12:58 PM
The Prohacker The Prohacker is offline
Moderator
 
Join Date: May 2003
Posts: 142
Quote:
Originally posted by jlasman
My suggestion is you should include all the php options people might possibly want in your base install, unless you see some kind of security issue...
The only big problem with including everything is that the more options you compile into PHP the larger the binary will be and the more ram it will use..

Adding in 10-15 more options wouldn't really hurt it.. But you can't support everything...

On a dev box where speed doesn't really mater this is my configure line:
Quote:
'../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=php' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--disable-debug' '--enable-memory-limit' '--with-layout=GNU' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-exec-dir=/usr/lib/php4/libexec' '--disable-static' '--with-curl=shared,/usr' '--with-dom=shared,/usr' '--with-dom-xslt=shared,/usr' '--with-dom-exslt=shared,/usr' '--with-zlib-dir=/usr' '--with-gd=shared,/usr' '--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr' '--with-imap-ssl' '--with-ldap=shared,/usr' '--with-mcal=shared,/usr' '--with-mhash=shared,/usr' '--with-mm' '--with-mysql=shared,/usr' '--with-unixODBC=shared,/usr' '--with-recode=shared,/usr' '--enable-xslt' '--with-xslt-sablot=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr'
While on production servers its mainly:
Quote:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-kerberos' '--with-mcrypt' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-zlib'
Not all modules get along with each other that well..


Also DA doesn't directly use PHP so its compilation shouldn't add to much of a support differnce, and if there is a problem, the user can just be instructed to do a stock recompile and fix it all...

Last edited by The Prohacker; 06-20-2003 at 01:00 PM.
Reply With Quote
  #11  
Old 06-20-2003, 02:36 PM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Ok, I've added another pile of php configure options.

have a look:

http://files.directadmin.com/info.php

Also, we've tested the script on quite a few servers now... should be removing its beta status shortly.

John


[edit]The info.php above no longer shows *as* many things (gd etc) because I've recompiled it without. The customapache does include them, just make sure you have libjpeg and libpng[/edit]
Reply With Quote
  #12  
Old 06-30-2003, 02:47 PM
TAH-Max TAH-Max is offline
Verified User
 
Join Date: Jun 2003
Location: United Kingdom
Posts: 16
Wow.... DirectAdmin is like cPanel except without the bugs, flaws and security issues. I got DirectAdmin about an hour ago, and although it was a PAIN to install (kept having issues where it was downloading update.tar.gz but it was fake because it was about 59k ) I can see I'm going to love this thing. ... DirectAdmin Support I haven't seen an ad for DirectAdmin around. Contact me on max.tappenden@victa.freeserve.co.uk to arrange some free advertising...you deserve it my friend
Reply With Quote
  #13  
Old 06-30-2003, 02:56 PM
ProWebUK's Avatar
ProWebUK ProWebUK is offline
Administrator
 
Join Date: Jun 2003
Location: UK
Posts: 2,326
more than deserve it
__________________
OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
ProWebUK - Quality Web Services
DirectAdmin Server Checklist
Reply With Quote
  #14  
Old 06-30-2003, 03:52 PM
Two_A_T Two_A_T is offline
Verified User
 
Join Date: Jun 2003
Location: Wilmington, NC
Posts: 130
I gave them unlimited free banner rotations on my auction site but that doesn't do them justice since the site's new!

Glad to see others spreading the word too!
Reply With Quote
  #15  
Old 06-30-2003, 03:55 PM
TAH-Max TAH-Max is offline
Verified User
 
Join Date: Jun 2003
Location: United Kingdom
Posts: 16
My site is very new (27th June) but I have many things going on with it and within a month I'm expecting 150+ members It's a forum related to hosting/business/programming/design etc. I've basically offered them 1000 views / week in the rotation and will upgrade it quickly as the site grows
Reply With Quote
  #16  
Old 06-30-2003, 04:12 PM
ProWebUK's Avatar
ProWebUK ProWebUK is offline
Administrator
 
Join Date: Jun 2003
Location: UK
Posts: 2,326
none of my personal sites have got high traffic
__________________
OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
ProWebUK - Quality Web Services
DirectAdmin Server Checklist
Reply With Quote
  #17  
Old 07-03-2003, 08:30 AM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Hello,

I've updated custom apache to include libjpeg, libpng and zlib. Most servers already have them installed, but for the ones that don't, this will make your life much easier

For existing customapache users who don't currently have gd installed, from your customapache dir type,

rm configure.php
./build update
./build php

to get all of the new features. Everyone else just follow the steps in the first post as usual.

John
Reply With Quote
  #18  
Old 07-03-2003, 09:31 AM
jlasman's Avatar
jlasman jlasman is offline
NoBaloney
 
Join Date: Jun 2003
Location: Riverside, Calif., USA
Posts: 20,706
Ive just printed out this entire thread and I'm going to try it on the server this long holiday (here in the US) weekend. I've never did a custom php install before; we just pay Plesk to do it for us.

So I guess there's a time to try it out .

What's customapache? Have I missed something?

Jeff
__________________

Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345
Third-Party DirectAdmin administration and support
Dedicated Servers, Dedicated Reseller Accounts
NoBaloney Internet Services
P.O. Box 52200
Riverside, Calif. 92517
Reply With Quote
  #19  
Old 07-03-2003, 09:46 AM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Customapache is just what we're calling the whole jumble of software. It's custom becuase you can edit the configure.* files to set up the programs anyway you wish (experts only, you must ensure you have required libraries if you can the configure.* files).

Most people will just run ./build all, and not change anything.

John
Reply With Quote
  #20  
Old 07-04-2003, 07:09 AM
TAH-Max TAH-Max is offline
Verified User
 
Join Date: Jun 2003
Location: United Kingdom
Posts: 16
Yeah that's what I did, and then ./build zend

It's great

http://66.28.214.169/info.php -- default PHP config with ./build zend also
Reply With Quote
Reply

Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.2.3 Released vandal Required Software Version Updates 53 07-06-2008 06:11 AM
Apache/perl very huge loads decafranky General Technical Discussion & Troubleshooting 4 08-30-2007 07:04 PM
Apache being used as proxy ? gcypher Apache (WWW) 5 07-14-2006 01:57 AM
cgi script suddenly stopped working alexismya General Technical Discussion & Troubleshooting 10 09-27-2005 08:39 PM
server overloading and crashing often bensaait Admin-Level Difficulties 8 06-06-2005 04:28 PM


All times are GMT -7. The time now is 07:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
DirectAdmin © 2007 JBMC Software