apache problems with virtual hosts

apache problems with virtual hosts

Post by Thomas Zenke » Wed, 11 Aug 1999 04:00:00



Hi all,

I'm running SuSE Linux 6.1.
I installed apache-1.3.4-21 out of the (suse)box. Afterwards I installed
mysql (still from the suse distribution).
Now the problem:
If I run it with the default httpd.conf file, ist works ok but if I
start apache with a virtual host section (name based) I get the message:
sqlinit: dbroot must be set !!

I start (or better SuSE does) apache with:
/usr/sbin/httpd -f /etc/httpd/httpd.conf -D SSL

I checked the apache docs and the mysql docs, but I couldn't find
anything.

Can someone point me to the right direction?
Thanks for any help
Have a nice day
thom

 
 
 

apache problems with virtual hosts

Post by Gero H. Marte » Thu, 12 Aug 1999 04:00:00


Thomas,

a known issue, explained in the SDB:

At the end of /etc/rc.config you need..

# DBROOT: The top directory of the Adabas D installation.
#
  DBROOT=/tmp
#

--
Gero H. Marten
<http://www.provi.de/gmarten/index.html>
--

 
 
 

apache problems with virtual hosts

Post by Thomas Zenke » Fri, 13 Aug 1999 04:00:00


Gero,

thanks for the tip, first of all!

Quote:> a known issue, explained in the SDB:

I checked that...

Quote:> At the end of /etc/rc.config you need..

> # DBROOT: The top directory of the Adabas D installation.
> #
>   DBROOT=/tmp
> #

That's what I did. After I executed SuSEconfig and I tried with a
restart, too.
I start to export it directly (export DBROOT=/tmp) and I tried to
install and uninstall ADABAS (as stated in the SDB).
It's not working. Apache just dies after a few seconds with the same
errormessage (DBROOT must be set).
In the /sbin/init.d/apache script DBROOT is set to /dev/null, but even
modifying that doesn't help.

Is there a solution? Am I missing something (I bet I am).

Thanks again for help
thom

 
 
 

1. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

Hello.

Have been running 1.2b8 for a intranet and decided to move upto 1.3b2. I
have several name based virtual hosts that have been working under
1.2b8. After compiling and installing 1.3b2 my virtual hosts do not
work. In fact what happens is that even though DocumentRoot and default
server name is different, eg: www.serverA.net pointing to /www/default,
Apache 1.3b2 will always take me to the first defined virtual host as if
it's locked to it no matter what virtual host I try to browse. What
gives? Please post and E-Mail.

In /etc/hosts for my machines IP address I have

A.B.C.D         www.default.net www.virtA.net www.virtB.net

In ../conf/httpd.conf I have;

<VirtualHost www.virtA.net>

DocumentRoot /usr/local/www/virtA
ServerName www.virtA.net
ErrorLog logs/virtA.error.log
TransferLog logs/virtA.access.log
</VirtualHost>

<VirtualHost www.virtB.net>

DocumentRoot /usr/local/www/virtB
ServerName www.virtB.net
ErrorLog logs/virtB.error.log
TransferLog logs/virtB.access.log
</VirtualHost>

--

2. sendmail From: header

3. Mixing Apache Name Based Virtual Hosts and SSL Virtual Host

4. New to linux

5. Apache - Virtual Host or /etc/hosts

6. HELP!!! Metaconfig expert needed!

7. Apache 2.0.x virtual host ALWAYS beings up the FIRST host in the list..

8. Apache 2.0a9 compilation

9. FrontPage virtual hosting, removal or reset of virtual host

10. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

11. For Discussion: web virtual hosting vs mail virtual hosting

12. apache 1.3.2 virtual host problem

13. Apache Virtual host problem