Custom Apache Build System

the script should download .default or .dist files not overwrite current ones and perhaps echo to terminal to check them for changes.
My recollection is that it did overwrite. You're welcome to check :) .

Jeff
 
it does overwrite and I am saying I think its a bad idea to do that. Hmm looks like I posted that comment on the wrong thread was more of a response for the new beta script.
 
This thread is getting very confusing. Cant determine what works and what doesnt work from peoples installation experience. Maybe it should be closed and restarted
Perhaps you're right.

I don't have time right now to pull the good stuff and create a How-To.

Do you :) ?

Jeff
 
It's installed by default on DirectAdmin server in /usr/local/directadmin/customapache.
 
sry i got the whrong post.
i whas talking about the new custom beta install. but i found that i just need to add .custombuild before launching ./setup.sh
 
the installation script using defaults doesn't create dovecot, how do i fix this? it gives a lot of errors while da is running.
 
how do i just disable the check for this service? so i don't recieve messages that it's not running?
 
Apache Failed

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

I just built but I got apache failed after I restarted :(
Please help.....

[root@xxxxxx customapache]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 149 of /etc/httpd/conf/httpd.conf:
Can't locate API module structure `auth_anon_module' in file /etc/httpd/modules/mod_auth_anon.so: /etc/httpd/modules/mod_auth_anon.so: undefined symbol: auth_anon_module
[FAILED]
 
libphp5.so: Text file busy ?

Hi all. Try to run ./build an a new server...
To fix the problem, I need to manually remove file /usr/lib/apache/libphp5.so,
then run the update again.
I have try that several times, but always the same failure.

Here are the log:


Make Complete
Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Increasing memory limit to 20M...
Installing php...
Installing PHP SAPI module: apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp5.la /usr/lib/apache
/var/www/build/libtool --mode=install cp libphp5.la /usr/lib/apache/
cp .libs/libphp5.so /usr/lib/apache/libphp5.so
cp: cannot create regular file `/usr/lib/apache/libphp5.so': Text file busy
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
-bash-3.00#
 
Hi all. Try to run ./build an a new server...
To fix the problem, I need to manually remove file /usr/lib/apache/libphp5.so,
then run the update again.
I have try that several times, but always the same failure.
Try shutting Apache down before the build.
 
FYI- There seems to be a bug in the mod_deflate conf file for apache 2.2 in the custombuild. Zip files are corrupted when being served.

Here is some info:
http://www.buberel.org/serendipity/...tly-serve-Zip-files-to-Internet-Explorer.html

Basically apache is compressing a compressed file for IE and it becomes corrupt.

Please fix asap. For now I have commented out the deflate-conf file in httpd.conf and that seems to have corrected the problem but not sure if other side effects will occur or if I am even using mod_deflate at all now. I would like a more permanent solution.
 
I seen the corrupt zip issue on a server hosting vBB but the opposite to what that article says, IE7 could successfully open the zip files not corrupted but any other browser like firefox and opera couldnt.
 
It's actually Mybb software that I run. Obviously there are some issues though with the mod_deflate and different browsers.
 
Hi all,

I am sure this question has been asked various times, but I haven't quite figured out how to solve one problem.

I am on FreeBSD 7-STABLE, trying to build customapache in DA.
After performing
./build all

I get the following error:

Code:
zziptest.c: In function 'main':
zziptest.c:76: error: lvalue required as left operand of assignment
*** Error code 1

Stop in /usr/local/directadmin/customapache/zziplib-0.10.82/bins.
*** Error code 1

Stop in /usr/local/directadmin/customapache/zziplib-0.10.82.
*** Error code 1

Stop in /usr/local/directadmin/customapache/zziplib-0.10.82.

*** The make has failed, do you want to try to make again? (y,n):

The reason I tried to rebuild apache, because for some reason, after installing DA, I cannot start apache, it gives me the following error:

Code:
# /usr/sbin/apachectl start
Syntax error on line 31 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_env.so into server: /etc/httpd/modules/mod_env.so: Undefined symbol "ap_palloc"
/usr/sbin/apachectl start: httpd could not be started

I have not experienced such issues when installed DA on CentOS.

Suggestions and help would be much appreciated.
Thank you in advance
 
The reason I tried to rebuild apache, because for some reason, after installing DA, I cannot start apache, it gives me the following error:

Code:
# /usr/sbin/apachectl start
Syntax error on line 31 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_env.so into server: /etc/httpd/modules/mod_env.so: Undefined symbol "ap_palloc"
/usr/sbin/apachectl start: httpd could not be started

I have not experienced such issues when installed DA on CentOS.

Suggestions and help would be much appreciated.
Thank you in advance
Well, I can't help you much with the rebuild, but if you comment out line 31 in your /etc/httpd/conf/httpd.conf file, you should be able to start Apache.
In order to comment out that line add # at the beginning:
#LoadModule env_module /etc/httpd/modules/mod_env.so
 
the zziptest.c error lines are missing only some there.

Which license type have you got installed on that server?
 
Back
Top