Custom Apache Build System

anima, check your phpinfo. There's a section related to Apache settings where you should see all apache "Loaded Modules".

You could also check your /etc/httpd/conf/httpd.conf file. You should see the following lines:

Code:
LoadModule rewrite_module     modules/mod_rewrite.so

AddModule mod_rewrite.c

AFAIK, mod_rewrite does NOT come with default apache installation. Check your configure.apache_ssl (under directadmin/customapache). You should have enabled mod_rewrite. You can do so by using the --enable-module=rewrite --enable-shared=rewrite options. Alternatively, you can enable all stable modules (look at the apache-version/INSTALL file, section LIST OF AVAILABLE MODULES) by using the --enable-module=all --enable-shared=max options.

Here's my configure.apache_ssl:

Code:
#!/bin/sh
./configure \
        --with-apache=../apache_1.3.33 \
        --with-ssl=/usr \
        --prefix=/etc/httpd \
        --exec-prefix=/etc/httpd \
        --bindir=/usr/bin \
        --sbindir=/usr/sbin \
        --sysconfdir=/etc/httpd/conf \
        --enable-module=all \
        --enable-module=ssl \
        --enable-shared=max \
        --enable-suexec \
        --suexec-docroot=/ \
        --suexec-caller=apache \
        --suexec-userdir=public_html \
        --includedir=/usr/include/apache \
        --libexecdir=/usr/lib/apache \
        --datadir=/var/www \
        --iconsdir=/var/www/icons \
        --htdocsdir=/var/www/html \
        --manualdir=/var/www/html/manual \
        --cgidir=/var/www/cgi-bin \
        --localstatedir=/var \
        --runtimedir=/var/run \
        --logfiledir=/var/log/httpd \
        --proxycachedir=/var/cache/httpd \
        --with-perl=/usr/bin/perl \
        --add-module=mod_frontpage.c \
        --enable-module=auth_digest \
        --disable-module=auth_db \
        --disable-module=auth_dbm

Then, if you need to rebuild apache do:

cd /usr/local/directadmin/customapache
./build apache_mod_ssl
service httpd restart


Hope that helps
 
markus said:
AFAIK, mod_rewrite does NOT come with default apache installation. [/B]

We have a number of servers with DA installed.
They all had mod_rewrite available by default.
 
Yes, the file configure.apache_ssl comes with the --enable-module=all --enable-shared=max options already in place by default.

Howwver, that's a DA feature, not an Apache default.

anima's problem with mod_rewrite is really strange, so it's just something else to look at... :rolleyes:
 
mod_perl

To my knowledge mod_perl had not worked at all when I did the initial install on my FreeBSD 4.10-stable box and well I did a manual build of it and got it working once since then did not work at all. Following directions on this thread now hopefully it works to enable mod_perl properly now ran the ./build update etc once i wgetted the newest one. I will post again once it completes the update.

-Justin
 
rebuilt using the build script yet mod_perl still doesn't seem to be working properly, I am getting 500 Internal Server Errors with any perl script I attempt to run even the most basic ones. Anyone have any ideas where I can start looking at?

-Justin
 
Are all of your files and directories set properly? (username:username not username:apache)
 
yup as usual wrong chown of the files. I chmod'd the scripts earlier but my absent mind forgot to friggin chown them as well. as we all do on IRC *SMACK* anyways thanks for the reminder.
 
Ok here is some fun, ran the update and all went through without a single error but now neither the webmail nor the squirrelmail is working. Anyone able to fill me in on what to do to get them to load up properly?

it is giving the following errors:
Warning: fsockopen(): unable to connect to localhost:110 in /var/www/html/webmail/inc/class.uebimiau_mail.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/webmail/inc/class.uebimiau_mail.php:66) in /var/www/html/webmail/msglist.php on line 21

and squirrelmail:
Warning: fsockopen(): unable to connect to localhost:143 in /var/www/html/squirrelmail-1.4.2/functions/imap_general.php on line 454

the pop3/smtp though is working properly. It is as if when i did all the updating the php4 imap support got erased. Anyone able to assist?

-Justin
 
Just noticed one of the previous thread posters had a problem with imap as well on their freebsd server. My server is running 4.10-stable I will also note and after this update if done as the admin instructed on this thread imap does not work anymore. Would someone with DA please update us on how to fix this?

-Justin
 
SSH into your server and type:
telnet localhost 110
You should see something similar to
[root@~ webcart]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 Welcome to vm-pop3d 1.1.6 <[email protected]>

This is to make sure your POP3 service is actually running.

Next thing, check how your PHP is compiled. From your SSH session, type:
cd public_html
cat > i.php
<?phpinfo();?>
^D
^D means Ctrl-D.
Then send us a link to see how your PHP is compiled and configured.
 
figured out where one problem lies with this. the ipv6 localhost in /etc/hosts was before ipv4 switched it around so it goes to the loopback address properly now. Not getting a response though now at all on localhost (127.0.0.1). www.comcrapst.net/phpinfo.php is how the php is presently compiled. I even restarted vm-pop3d still no go had to manually killall vm-pop3d it though as DirectAdmin did not want to stop it when i clicked the 'stop' link for it.

/edit getting a timeout on telnetting to localhost
telnet localhost
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Operation timed out
Trying ::1...

although my pop3/smtp is working using a pop3 email client it seems to just not be listening on the localhost for connections also.
 
Yet another problem solved by going in and killing the portsentry daemon I run to assit in port scan blocking. Aparently it yet again got in the way with a port conflict of 110 I see. I apologize for wasting posts here when I could of simply double checked for a port issue.

-Justin
 
yeah check portsentry config, because by default on the middle settings it blocks imap port which of course you dont want, I havent known it to block port 110 tho.
 
Sorry for the lamme question but is there a "How to" to update manually PHP?

I only found how to update to PHP5 and I think its different.

Thanks
 
Hi,

Could someone enlighten me how to add Dom XSLT?

Thanks in advance!!

Best Regards,

:)
 
Back
Top