Apache Server configuration support - Virtual Host by name : blups... on suse

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2005 > Virtual Host by name : blups... on suse





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Virtual Host by name : blups... on suse
serrand

2005-12-22, 6:06 pm

I'm using Suse 9.2 and Apache 2.0
When trying Virtual Host by Name, I can't run httpd nor apachectl


MY CONFIGURATION

I am logged as root, directories are

/home/myself_xy/www/monprem base dir
/home/myself_xy/www/monprem/conf config dir drwxr-xr-x
/home/myself_xy/www/monprem/logs journal dir drwxrwxrwx
/home/myself_xy/www/monprem/htdocs doc dir


$/home/myself_xy/www/monprem> /usr/sbin/httpd2 -d
/home/myself_xy/www/monprem -S
VirtualHost configuration:
Syntax OK


ERROR MESSAGE

/usr/sbin/httpd2 -d /home/myself_xy/www/monprem -f conf/httpd.conf -k start
no listening sockets available, shutting down
Unable to open logs
xav2:/home/myself_xy/www #


TEST WITHOUT httpd.conf

$/home/myself_xy/www> /usr/sbin/httpd2 -d /home/myself_xy/www/monprem -k
start

Ok all works fine ...

root 3416 7.6 2.0 28484 10756 ? Ss 00:25 0:00
/usr/sbin/httpd2 -d /home/myself_xy/www/monprem -k start
wwwrun 3417 0.0 2.1 28556 10816 ? S 00:25 0:00
/usr/sbin/httpd2 -d /home/myself_xy/www/monprem -k start
wwwrun 3418 0.0 2.1 28556 10816 ? S 00:25 0:00
/usr/sbin/httpd2 -d /home/myself_xy/www/monprem -k start
wwwrun 3419 0.0 2.1 28556 10816 ? S 00:25 0:00
/usr/sbin/httpd2 -d /home/myself_xy/www/monprem -k start
wwwrun 3420 0.0 2.1 28556 10816 ? S 00:25 0:00
/usr/sbin/httpd2 -d /home/myself_xy/www/monprem -k start
wwwrun 3421 0.0 2.1 28556 10816 ? S 00:25 0:00
/usr/sbin/httpd2 -d /home/myself_xy/www/monprem -k start
root 3427 0.0 0.1 1808 728 pts/10 S+ 00:26 0:00 grep -i httpd


TEST WITH httpd.conf

$/home/myself_xy/www> /usr/sbin/httpd2 -d /home/myself_xy/www/monprem
-f/home/myself_xy/www/monprem/conf/httpd.conf -k start

no listening sockets available, shutting down


here is my /home/myself_xy/www/monprem/conf/httpd.conf

#Fichier de configuration du site "monprem"

#DocumentRoot /home/myself_xy/www/monprem/htdocs

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.premier.xav2
ServerAlias premier.xav2 *.premier.xav2
DocumentRoot /home/myself_xy/www/monprem/htdocs
</VirtualHost>


Any ideas welcome ;-))

Xavier
Davide Bianchi

2005-12-23, 2:52 am

On 2005-12-22, serrand <xavier.serrand@free.fr> wrote:
> /usr/sbin/httpd2 -d /home/myself_xy/www/monprem -f conf/httpd.conf -k start
> no listening sockets available, shutting down


It seems that something is using port 80 already, so the server
can't bind with it.

> Unable to open logs


Permissions problems to write in the log directory maybe?

> Any ideas welcome ;-))


Check with wich user you want to run httpd (is in the config file) where
you want to write the log files and which permissions the directory has.
When you can write to the log files you can use those to check for other
errors.

Davide

--
She got her looks from her father. He's a plastic surgeon.
-- Julius Henry "Groucho" Marx (http://en.wikiquote.org/wiki/Groucho_Marx)
serrand

2005-12-23, 7:51 am

Davide Bianchi wrote:
> On 2005-12-22, serrand <xavier.serrand@free.fr> wrote:
>
>
>
> It seems that something is using port 80 already, so the server
> can't bind with it.
>
>
>
>
> Permissions problems to write in the log directory maybe?
>
>
>
>
> Check with wich user you want to run httpd (is in the config file) where
> you want to write the log files and which permissions the directory has.
> When you can write to the log files you can use those to check for other
> errors.
>
> Davide
>


I can launche httpd when not using -f blablabla ... but not when using
the -f argument on the command line... port 80 seems to be reachable...

the log directory is rwx for all as i said in my first post... which
directory is asked?

Xavier
ge0rge

2005-12-23, 5:59 pm

serrand wrote:
....
> I can launche httpd when not using -f blablabla ... but not when using
> the -f argument on the command line... port 80 seems to be reachable...


then the obvious place to look for the problem is your
/home/myself_xy/www/monprem/conf/httpd.conf

You have 2 httpd.conf files. The default one where apache is installed
is obviously OK. The one above is not configured correctly. Probably no
Listen directive or log directive configured... my guess.

--
You're definitely on their list. The question to ask next is what list
it is.
serrand

2005-12-23, 8:50 pm

ge0rge wrote:
> serrand wrote:
> ...
>
>
>
> then the obvious place to look for the problem is your
> /home/myself_xy/www/monprem/conf/httpd.conf
>
> You have 2 httpd.conf files. The default one where apache is installed
> is obviously OK. The one above is not configured correctly. Probably no
> Listen directive or log directive configured... my guess.
>

thanks too much ;-))
i didn't put the Listen directive ...
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com