[+] pliki apache2.conf i http.conf
istrd - 01-05-2009 22:42
Witam. Mam problemy z apache, które wywołane są złymi plikami konfiguracyjnymi. Może ktoś podać mi te pliki?
/etc/apache2/httpd.conf /etc/apache2/apache2.conf Mam Debiana Squeeze, ale od innych wersji Debiana nie będzie problemu?
Przykro nam, strona o podanym adresie nie istnieje. Sprawdź, czy wpisałeś poprawny adres strony, lub skorzystaj z katalogu lub wyszukiwarki. |
| Copyright 1996 - 2006 Grupa Onet.pl SA - zobacz wszystkie serwisy » | |
ponton - 01-05-2009 22:51
A nie lepiej go wywalić i zainstalować na nowo?
istrd - 01-05-2009 23:01
A nie lepiej go wywalić i zainstalować na nowo? dałem apt-get remove apache2 i zainstlowałem ponownie ale konfigi zostały
AdeBe - 01-05-2009 23:03
apt-get remove --purge pakiet
Przykro nam, strona o podanym adresie nie istnieje. Sprawdź, czy wpisałeś poprawny adres strony, lub skorzystaj z katalogu lub wyszukiwarki. |
| Copyright 1996 - 2006 Grupa Onet.pl SA - zobacz wszystkie serwisy » | |
istrd - 01-05-2009 23:19
apt-get remove --purge pakiet Dalej to samo, stara zła konfiguracja jest. Proszę więc o pliki.
beel - 02-05-2009 00:27
A daj samo:
aptitude purge apache2 Miałem już tak, że przy złożeniu polecenia w ten sposób:
aptitude remove --purge apache2 pliki konfiguracyjne zostawały, a w/w metoda pomogła. Jeśli nie to usuń pakiet przez "aptitude remove", następnie pliki konfiguracyjne ręcznie i zainstaluj ponownie.
fnmirk - 02-05-2009 00:32
beel, w ten sposób mieszamy apt-get z aptitude.
Jeżeli już to wykonałbym to tak: apt-get install apache2 && apt-get remove --purge apache2 Restart systemu i dopiero: apt-get install apache2
beel - 02-05-2009 00:55
Odnośnie "aptitude" to napisałem z przyzwyczajenia, podmień (istrd) sobie na "apt-get". No i marne szanse abyś przewrócił cały system gdy zdarzy ci się raz zamieszać.
istrd - 02-05-2009 09:08
fnmirk i beel te wasze sposoby działają ale tylko do połowy plik httpd.conf się nie zmienił natomiast apache2.conf jest dobry. Spróbowałem usunąć ręcznie konfigi dopiero potem zainstalować apache. tak jak mówił fnmirk ale nowe pliki apache2.conf i httpd.conf się nie tworzą. Nie wiem już co robić, Więc proszę jeszcze raz o pliki.
chyl-o - 02-05-2009 09:53
apache2.conf:
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/ httpd.conf pusty. Ta konfiguracja jest domyślna.
istrd - 02-05-2009 10:17
apache2.conf:
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/ httpd.conf pusty. Ta konfiguracja jest domyślna. Dziękuję, już wszystko poprawnie działa.