Apache/FTP services don't start after installation (FreeBSD 4.9)

Webcart

Verified User
Joined
Jan 14, 2004
Messages
398
Hello,

I just installed DA on FreeBSD 4.9 and sucessfully logged into Admin panel.

2 services were not running:

1. Apache

I fixed that as follows:
bash-2.05b# cd /var/log/httpd/
bash-2.05b# tail error_log
[Thu Jan 29 07:23:01 2004] [notice] Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7c PHP/4.3.4 mod_perl/1.27 FrontPage/5.0.2.2510 configured -- resuming normal operations
[Thu Jan 29 07:23:01 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 29 07:23:01 2004] [notice] Accept mutex: flock (Default: flock)
[Thu Jan 29 07:32:00 2004] [notice] SIGHUP received. Attempting to restart
httpd: bad group name admin
bash-2.05b#
I realized that the script probably failed to create admin group and that was causing the problem.
Adding admin to /etc/group solved that porblem.

2. FTP

/usr/local/etc/rc.d/proftpd status

I got "proftpd dead but subsys locked".
I removed /var/spool/lock/proftpd file and tried to restart the service manually. It didn't get up.

After experimenting with it for a while it occured to me that for some reason proftpd *wants* to have 'hostname' set.
Since it's a fresh new box, no domains were associated with it and I left hostname unset for now.

Please mention it as requirement for DA install ;)

This is my experience so far.
 
Last edited:
3. E-mail bounces

I noticed that e-mails with .EXE attachment and e-mail sent to non-existent e-mail addresses do not bounce, but rather silently "disappear".

It turned out to be connected to SERVER NAME setting:
I initially set it up as domain name and after learning that it was incorrect, changed it few times.

DA deletes records of deleted domains from /etc/virtual, but changing server name didn't automatically removed anything from /etc/virtual, which somehow confused mailserver. After deleting records of an old hostnames from /etc/virtual/domains and rebooting, the problem disappeared.
 
4. Adding ssl:// support to php

Default set up for FreeBSD apparently doesn't include https and ftps streams. Here is what phpinfo() returns:
Registered PHP Streams php, http, ftp, compress.zlib
My guess it's because after adding
--enable-posix \
--with-bz2 \
--with-openssl-dir=/usr --with-openssl \
it didn't compile, asking for ltdl library. Here is what fixed that:
cd /usr/ports/devel/libltdl
make
make install

cd /usr/local/directadmin/customapache
./build clean
rm -rf configure.*
./build update
# ------- adding 3 lines from the above to configure.php
./build all
Now, the following PHP streams are available:
php, http, ftp, https, ftps, compress.bzip2, compress.zlib

It was a big surpise for me that I actually had to recompile Apache to get it working. Initially I just modified configure.php and did
./build update
./build php
The new options showed up in phpinfo(), but https/ftps were not available.

Hope it will help someone :)
 
Last edited:
Back
Top