Strona 1 z 1

potrzebny config /etc/apache/*

: 12 lutego 2007, 21:57
autor: malinkalive
WITAM

Przez przypadek usunalem katalog konfiguracyjny apacha, tworzenie nowego jest troche pracochlonne bylbym wdzieczny za dzialajacy (najlepiej w wersji standardowej) /etc/apache/* do Server version: Apache/1.3.33 (Debian GNU/Linux)

POZDRAWIAM

: 12 lutego 2007, 22:47
autor: velmafia
nie szybciej przeinstalować Debiana?
albo usunąć i zainstalować jeszcze raz?
lub ściągnąć źródła i stamtąd skopiować domyślne ustawienia.

nie jestem pewien, ale chyba gdy nie ma tego pliku to uruchomienie apacha powinno stworzyć defaultowy ten plik


aloha

: 12 lutego 2007, 22:52
autor: darkwater
a nie wystarczy

Kod: Zaznacz cały

# dpkg-reconfigure apache
??

: 13 lutego 2007, 00:06
autor: dodi
sprawdź w jakim pakiecie znajduje się config

Kod: Zaznacz cały

:~$dpkg -l apache2\*
na przyszłość, możesz sobie go skopiować po "wejściu" do paczki np. za pomocą mc albo przekonfigurować od podstaw apache2-common i apache2

Kod: Zaznacz cały

:~$dpkg-reconfigure -plow apache2
:~$dpkg-reconfigure -plow apache2-common
pzd

: 13 lutego 2007, 08:33
autor: malinkalive
darkwater pisze:a nie wystarczy

Kod: Zaznacz cały

# dpkg-reconfigure apache
??

Kod: Zaznacz cały

dpkg-reconfigure apache
/usr/sbin/dpkg-reconfigure: apache is broken or not fully installed

taki sam rezultat wywala po wydaniu:

Kod: Zaznacz cały

dpkg-reconfigure -plow apache
dpkg-reconfigure -plow apache-common
apt-get remove apache i apt-get install apache nie rozwiazuje problemu
dpkg -l apache\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
iF apache 1.3.33-6sarge3 versatile, high-performance HTTP server
ii apache-common 1.3.33-6sarge3 support files for all Apache webservers
un apache-doc <none> (no description available)
un apache-modules <none> (no description available)
un apache-perl <none> (no description available)
un apache-ssl <none> (no description available)
un apache-utils <none> (no description available)
ii apache2 2.0.54-5sarge1 next generation, scalable, extendable web se
ii apache2-common 2.0.54-5sarge1 next generation, scalable, extendable web se
un apache2-doc <none> (no description available)
un apache2-module <none> (no description available)
un apache2-mpm-pe <none> (no description available)
un apache2-mpm-pr <none> (no description available)
un apache2-mpm-th <none> (no description available)
ii apache2-mpm-wo 2.0.54-5sarge1 high speed threaded model for Apache2
ii apache2-utils 2.0.54-5sarge1 utility programs for webservers
chyba faktycznie bedzie szybciej zrobic reinstalke calego systemu :(

: 13 lutego 2007, 14:31
autor: atomekd
Spróbuj najpierw:

Kod: Zaznacz cały

apt-get remove apache --purge
potem install.

EDIT:
Sorry, ale reinstall systemu, to już raczej ostateczność, coś jak Koniec ¦wiata! Tak mi się wydaje.

: 13 lutego 2007, 14:35
autor: velmafia
malinkalive pisze:apt-get remove apache i apt-get install apache nie rozwiazuje problemu
daj:

Kod: Zaznacz cały

apt-get remove --purge apache
apt-get install apache
parametr purge usuwa wszystko co jest związane z usuwanym programem, więc jak potem będziesz instalował to to system nawet nie będzie wiedział ze kiedyś apache był zainstalowany w systemie.

malinkalive pisze:chyba faktycznie bedzie szybciej zrobic reinstalke calego systemu :(
to nie winda, tu sie tak nie robi :P

: 13 lutego 2007, 20:16
autor: malinkalive

Kod: Zaznacz cały

apt-get remove apache --purge


poszlo ladnie a potem :
apt-get install apache

Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
apache-doc
The following NEW packages will be installed:
apache
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/387kB of archives.
After unpacking 831kB of additional disk space will be used.
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
Preconfiguring packages ...
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
Selecting previously deselected package apache.
(Reading database ... 17722 files and directories currently installed.)
Unpacking apache (from .../apache_1.3.33-6sarge3_i386.deb) ...
Setting up apache (1.3.33-6sarge3) ...
/var/lib/dpkg/info/apache.postinst: line 12: /usr/share/apache/postinst.common: No such file or directory
dpkg: error processing apache (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
apache
E: Sub-process /usr/bin/dpkg returned an error code (1)
/etc/init.d/apache start
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
grep: /etc/apache/httpd.conf: No such file or directory
Configuration syntax error detected. Not reloading.

shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
fopen: No such file or directory
apache: could not open document config file /etc/apache/httpd.conf
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory

====================
Używaj tagów
[/i] i

Kod: Zaznacz cały

[/i].
Kaka'
====================[/color]

: 14 lutego 2007, 14:43
autor: ilr
Masz jakiś szczególny powód ku temu, że zainstalowałeś dwie różne wersje apacha (apache i apache2)?
Jeżeli nie, to myślę, że apache2 działa całkiem miło :-)
A co do Twojego przykładu: pakiet apache jest nierozłączny z pakietem apache-common. Co prawda masz go niby zainstalowanego, ale coś jest z nim nie tak. Ta oto linia właśnie o tym mówi:
/var/lib/dpkg/info/apache.postinst: line 12: /usr/share/apache/postinst.common: No such file or directory
To co wytłuszczone jest częścią składową właśnie apache-common.