potrzebny config /etc/apache/*
-
- Beginner
- Posty: 100
- Rejestracja: 12 lutego 2007, 14:35
potrzebny config /etc/apache/*
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
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
a nie wystarczy
??
Kod: Zaznacz cały
# dpkg-reconfigure apache
sprawdź w jakim pakiecie znajduje się config
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
pzd
Kod: Zaznacz cały
:~$dpkg -l apache2\*
Kod: Zaznacz cały
:~$dpkg-reconfigure -plow apache2
:~$dpkg-reconfigure -plow apache2-common
-
- Beginner
- Posty: 100
- Rejestracja: 12 lutego 2007, 14:35
darkwater pisze:a nie wystarczy??Kod: Zaznacz cały
# dpkg-reconfigure apache
Kod: Zaznacz cały
dpkg-reconfigure apache
taki sam rezultat wywala po wydaniu:
Kod: Zaznacz cały
dpkg-reconfigure -plow apache
dpkg-reconfigure -plow apache-common
chyba faktycznie bedzie szybciej zrobic reinstalke calego systemudpkg -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

Spróbuj najpierw:
potem install.
EDIT:
Sorry, ale reinstall systemu, to już raczej ostateczność, coś jak Koniec ¦wiata! Tak mi się wydaje.
Kod: Zaznacz cały
apt-get remove apache --purge
EDIT:
Sorry, ale reinstall systemu, to już raczej ostateczność, coś jak Koniec ¦wiata! Tak mi się wydaje.
daj:malinkalive pisze:apt-get remove apache i apt-get install apache nie rozwiazuje problemu
Kod: Zaznacz cały
apt-get remove --purge apache
apt-get install apache
to nie winda, tu sie tak nie robi :Pmalinkalive pisze:chyba faktycznie bedzie szybciej zrobic reinstalke calego systemu![]()
-
- Beginner
- Posty: 100
- Rejestracja: 12 lutego 2007, 14:35
Kod: Zaznacz cały
apt-get remove apache --purge
poszlo ladnie a potem :
/etc/init.d/apache startapt-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)
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] iKod: Zaznacz cały
[/i]. Kaka' ====================[/color]
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:
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:
To co wytłuszczone jest częścią składową właśnie apache-common./var/lib/dpkg/info/apache.postinst: line 12: /usr/share/apache/postinst.common: No such file or directory