Nowe posty

Autor Wątek: problem z httpd.conf ;/  (Przeczytany 1965 razy)

axlinux

  • Gość
problem z httpd.conf ;/
« dnia: 2007-03-12, 20:21:58 »
Witam jestem userem Debiana.
Zainstalowałem sobie Apache i mam problem z jego uruchomieniem.

mój plik httpd.conf:

ServerType standalone
Port 80
User tomek
ServerName linuxpl
DocumentRoot "/home/tomek/www"
UserDir public_html
DirectoryIndex index.html


wydaje polecenie:

tomek@ubuntu:/etc/init.d$ sudo ./apache start
 * Configuration syntax error detected, not starting/reloading...
Syntax error on line 6 of /etc/apache/httpd.conf:
Invalid command 'UserDir', perhaps mis-spelled or defined by a module not included in the server configuration

Starałem się na wiele razy i nic...

Dzięki za pomoc

PS.  przy DirectoryIndex index.html też wywala ten sam błąd

adrian

  • Gość
problem z httpd.conf ;/
« Odpowiedź #1 dnia: 2007-03-25, 14:25:47 »
2007-03-12 20:21:58 axlinux napisał:

> Witam jestem userem Debiana.
 > Zainstalowałem sobie Apache i mam problem z jego uruchomieniem.
 >
 > mój plik httpd.conf:
 >
 > ServerType standalone
 > Port 80
 > User tomek
 > ServerName linuxpl #to raczej jest nie potrzebne
 > DocumentRoot "/home/tomek/www" zmien na: DocumentRoot "/home/tomek/www/public_html/"
 > #UserDir public_html <= co to wogóle jest?
 > DirectoryIndex index.html

i powinno śmigać (w firefox'ie wpisz http://127.0.0.1)

xavery

  • Gość
problem z httpd.conf ;/
« Odpowiedź #2 dnia: 2007-03-26, 15:30:04 »
>  > DocumentRoot "/home/tomek/www" zmien na: DocumentRoot
 > "/home/tomek/www/public_html/"

DocumentRoot może wskazywać na dowolny katalog.

 >  > #UserDir public_html <= co to wogóle jest?

Co to jest? Ano:

Description:   Location of the user-specific directories
Syntax:   UserDir directory-filename
Default:   UserDir public_html

To z dokumentacji Apacza.

Ja stawiam na jakieś ukryte białe znaki (np. plik edytowany w notepadzie).

HelDoRe

  • Gość
problem z httpd.conf ;/
« Odpowiedź #3 dnia: 2007-03-27, 11:02:09 »
ServerType standalone
Port 80
User tomek
ServerName linuxpl
DocumentRoot "/home/tomek/www"


    UserDir public_html



    DirectoryIndex index.html index.htm index.php




Nie masz prawdopodobnie modulow mod_userdir i mod_dir



2007-03-12 20:21:58 axlinux napisał:

> Witam jestem userem Debiana.
 > Zainstalowałem sobie Apache i mam problem z jego uruchomieniem.
 >
 > mój plik httpd.conf:
 >
 > ServerType standalone
 > Port 80
 > User tomek
 > ServerName linuxpl
 > DocumentRoot "/home/tomek/www"
 > UserDir public_html
 > DirectoryIndex index.html
 >
 >
 > wydaje polecenie:
 >
 > tomek@ubuntu:/etc/init.d$ sudo ./apache start
 >  * Configuration syntax error detected, not starting/reloading...
 > Syntax error on line 6 of /etc/apache/httpd.conf:
 > Invalid command 'UserDir', perhaps mis-spelled or defined by a module not included in the
 > server configuration
 >
 > Starałem się na wiele razy i nic...
 >
 > Dzięki za pomoc
 >
 > PS.  przy DirectoryIndex index.html też wywala ten sam błąd