ubuntuusers.de

kann Apache nicht starten!

Status: Ungelöst | Ubuntu-Version: Kein Ubuntu
Antworten |

prog266

Anmeldungsdatum:
26. März 2011

Beiträge: Zähle...

Nach dem ich Apache2 mit apt-get purge apache2 deinstalliert hab, und dann wieder installiert hab, kommt folgende Fehlermeldung:

/etc/init.d/apache2: line 49: /etc/apache2/envvars: No such file or directory

Auch der Ordner /etc/apache2 ist leer. Wie kann die die Config-Dateien bekommen?

Bearbeitet von xabbuh:

keine Ubuntu-Version

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Die Konfigurationsdateien befinden sich in dem Paket apache2.2-common. Wenn du das vollständig entfernst und neuinstallierst, bekommst du sie zurück.

prog266

(Themenstarter)

Anmeldungsdatum:
26. März 2011

Beiträge: 67

Habe apache2 und apache2.2-common mit purge deinstalliert, und dann wieder installiert, funktioniert aber trotzdem nicht, immernoch gleicher fehler

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Dann zeig bitte mal die Ausgabe von aptitude search apache, nachdem du die Pakete vollständig entfernt hast.

prog266

(Themenstarter)

Anmeldungsdatum:
26. März 2011

Beiträge: 67

Hier ist die Ausgabe:

p   apache2                         - Apache HTTP Server metapackage            
p   apache2-dbg                     - Apache debugging symbols                  
v   apache2-dev                     -                                           
i   apache2-doc                     - Apache HTTP Server documentation          
v   apache2-mpm                     -                                           
p   apache2-mpm-event               - Apache HTTP Server - event driven model   
i A apache2-mpm-itk                 - multiuser MPM for Apache 2.2              
p   apache2-mpm-prefork             - Apache HTTP Server - traditional non-threa
p   apache2-mpm-worker              - Apache HTTP Server - high speed threaded m
p   apache2-prefork-dev             - Apache development headers - non-threaded 
p   apache2-suexec                  - Standard suexec program for Apache 2 mod_s
p   apache2-suexec-custom           - Configurable suexec program for Apache 2 m
p   apache2-threaded-dev            - Apache development headers - threaded MPM 
i   apache2-utils                   - utility programs for webservers           
i   apache2.2-bin                   - Apache HTTP Server common binary files    
i   apache2.2-common                - Apache HTTP Server common files           
p   apachetop                       - Realtime Apache monitoring tool           
p   gforge-web-apache               - transition package to gforge-web-apache2  
p   gforge-web-apache2              - collaborative development tool - web part 
p   gforge-web-apache2-vhosts       - collaborative development tool - web vhost
p   libapache-admin-config-perl     - a Perl module to read/write Apache like co
p   libapache-asp-perl              - perl Apache::ASP - Active Server Pages for
p   libapache-authenhook-perl       - Perl API for Apache 2.1 authentication    
p   libapache-authznetldap-perl     - Apache-Perl module that enables to authori
p   libapache-configfile-perl       - Parse an Apache style httpd.conf configura
p   libapache-db-perl               - Run the interactive Perl debugger under mo
p   libapache-dbi-perl              - Connect apache server to database via perl
p   libapache-dbilogger-perl        - Tracks what's being transferred in a DBI d
p   libapache-gallery-perl          - Apache module to create galleries on-the-f
p   libapache-htpasswd-perl         - Manage Unix crypt-style password file     
p   libapache-mime4j-java           - MIME and RFC822 parser for Java           
p   libapache-mime4j-java-doc       - MIME and RFC822 parser for Java - document
p   libapache-mod-auth-kerb         - apache module for Kerberos authentication 
p   libapache-mod-jk-doc            - Documentation of libapache2-mod-jk package
p   libapache-mod-security          - Tighten web applications security for Apac
p   libapache-ruby1.8               - Ruby libraries for mod_ruby               
p   libapache-session-perl          - Perl modules for keeping persistent user d
p   libapache-session-wrapper-perl  - simple wrapper around Apache::Session     
p   libapache-sessionx-perl         - extended persistence framework for session
p   libapache-singleton-perl        - Singleton class for mod_perl              
p   libapache2-authcassimple-perl   - Apache2 module to authentificate trough a 
p   libapache2-authenntlm-perl      - Perform Microsoft NTLM and Basic User Auth
p   libapache2-mod-apreq2           - generic Apache request library - Apache mo
p   libapache2-mod-auth-cas         - CAS authentication module for Apache2     
p   libapache2-mod-auth-kerb        - apache2 module for Kerberos authentication
p   libapache2-mod-auth-mysql       - Apache 2 module for MySQL authentication  
p   libapache2-mod-auth-openid      - OpenID authentication module for Apache2  
p   libapache2-mod-auth-pam         - module for Apache2 which authenticate usin
p   libapache2-mod-auth-pgsql       - Module for Apache2 which provides pgsql au
p   libapache2-mod-auth-plain       - Module for Apache2 which provides plaintex
p   libapache2-mod-auth-radius      - Apache 2.x module for RADIUS authenticatio
p   libapache2-mod-auth-sys-group   - Module for Apache2 which checks user again
p   libapache2-mod-authn-sasl       - SASL authentication backend provider for A
p   libapache2-mod-authnz-external  - authenticate Apache against external authe
p   libapache2-mod-authz-unixgroup  - access control based on on unix group memb
p   libapache2-mod-axis2c           - Apache web services engine - apache module
p   libapache2-mod-bw               - bandwidth limiting module for apache2     
p   libapache2-mod-chroot           - run Apache in a secure chroot environment 
p   libapache2-mod-defensible       - module for Apache2 which provides DNSBL us
p   libapache2-mod-dnssd            - Zeroconf support for Apache 2 via avahi   
p   libapache2-mod-encoding         - Apache2 module for non-ascii filename inte
p   libapache2-mod-evasive          - evasive module to minimize HTTP DoS or bru
p   libapache2-mod-fastcgi          - Apache 2 FastCGI module for long-running C
p   libapache2-mod-fcgid            - an alternative module compat with mod_fast
p   libapache2-mod-fcgid-dbg        - debugging symbols for mod_fcgid           
p   libapache2-mod-geoip            - GeoIP support for apache2                 
p   libapache2-mod-gnutls           - Apache module for SSL and TLS encryption w
p   libapache2-mod-jk               - Apache 2 connector for the Tomcat Java ser
p   libapache2-mod-layout           - Apache web page content wrapper           
p   libapache2-mod-ldap-userdir     - Apache module that provides UserDir lookup
p   libapache2-mod-lisp             - An Apache2 module that interfaces with Lis
p   libapache2-mod-log-sql          - Use SQL to store/write your apache queries
p   libapache2-mod-log-sql-dbi      - Use SQL to store/write your apache queries
p   libapache2-mod-log-sql-mysql    - Use SQL to store/write your apache queries
p   libapache2-mod-log-sql-ssl      - Use SQL to store/write your apache queries
p   libapache2-mod-macro            - Create macros inside apache2 config files 
p   libapache2-mod-mime-xattr       - Apache2 module to get MIME info from files
p   libapache2-mod-mono             - Apache module for running ASP.NET applicat
p   libapache2-mod-musicindex       - Browse, stream, download and search throug
p   libapache2-mod-neko             - Apache module for running server-side Neko
p   libapache2-mod-ocamlnet         - OCaml application-level Internet libraries
p   libapache2-mod-passenger        - Rails and Rack support for Apache2        
p   libapache2-mod-perl2            - Integration of perl with the Apache2 web s
p   libapache2-mod-perl2-dev        - Integration of perl with the Apache2 web s
p   libapache2-mod-perl2-doc        - Integration of perl with the Apache2 web s
p   libapache2-mod-php5             - server-side, HTML-embedded scripting langu
i A libapache2-mod-php5filter       - server-side, HTML-embedded scripting langu
p   libapache2-mod-proxy-html       - Apache2 filter module for HTML links rewri
p   libapache2-mod-python           - Python-embedding module for Apache 2      
p   libapache2-mod-python-doc       - Python-embedding module for Apache 2 - doc
v   libapache2-mod-python2.6        -                                           
p   libapache2-mod-random           - Create random ads, quotes and redirects   
p   libapache2-mod-removeip         - Module to remove IP from apache2's logs   
p   libapache2-mod-rpaf             - module for Apache2 which takes the last IP
p   libapache2-mod-ruby             - Embedding Ruby in the Apache2 web server  
p   libapache2-mod-scgi             - Apache module implementing the SCGI protoc
v   libapache2-mod-security2        -                                           
p   libapache2-mod-shib2            - Federated web single sign-on system (Apach
p   libapache2-mod-spamhaus         - Apache DNSBL module that blocks listed IP 
p   libapache2-mod-speedycgi        - apache2 module to speed up perl scripts by
p   libapache2-mod-suphp            - Apache2 module to run php scripts with the
p   libapache2-mod-upload-progress  - upload progress support for the Apache web
p   libapache2-mod-vhost-hash-alias - Fast and efficient way to manage virtual h
p   libapache2-mod-vhost-ldap       - Apache 2 module for Virtual Hosting from L
p   libapache2-mod-wsgi             - Python WSGI adapter module for Apache     
p   libapache2-mod-wsgi-py3         - Python 3 WSGI adapter module for Apache   
p   libapache2-mod-xsendfile        - Serve large static files efficiently from 
p   libapache2-redirtoservname      - Apache 2 module to redirect users to the c
p   libapache2-reload-perl          - Reload Perl modules when changed on disk  
p   libapache2-request-perl         - generic Apache request library - Perl modu
p   libapache2-svn                  - Subversion server modules for Apache      
p   libapache2-webauth              - Apache 2 modules for WebAuth authenticatio
p   libapache2-webkdc               - Apache 2 modules for a WebAuth authenticat
p   libcatalyst-engine-apache-perl  - base class for Apache 1.x and 2.x Catalyst
p   libconfig-apacheformat-perl     - use Apache format config files            
p   libmasonx-request-withapacheses - Session handler in the Mason Request objec
p   mahara-apache2                  - Electronic portfolio, weblog, and resume b
p   mono-apache-server              - ASP.NET backend for mod_mono2 Apache modul
p   mono-apache-server1             - ASP.NET 1.1 backend for mod_mono Apache mo
p   mono-apache-server2             - ASP.NET 2.0 backend for mod_mono2 Apache m
p   rt3.8-apache2                   - Apache 2 specific files for request-tracke
p   rt4-apache2                     - Apache 2 specific files for request-tracke
p   torrus-apache                   - Transitional Package for migration to torr
p   torrus-apache2                  - Universal front-end for Round-Robin Databa

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Nach der Ausgabe ist apache2.2-common aber auch noch installiert? Wie genau hast du denn versucht, es vollständig zu entfernen?

prog266

(Themenstarter)

Anmeldungsdatum:
26. März 2011

Beiträge: 67

mit

apt-get purge apache2.2-common

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Wie sieht die vollständige Ausgabe aus, wenn du das machst?

prog266

(Themenstarter)

Anmeldungsdatum:
26. März 2011

Beiträge: 67

root@175:/etc# apt-get purge apache2.2-common    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libapache2-mod-php5filter
Suggested packages:
  php-pear
The following packages will be REMOVED:
  libapache2-mod-php5*
The following NEW packages will be installed:
  libapache2-mod-php5filter
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/3036 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libapache2-mod-php5filter
Install these packages without verification [y/N]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
dpkg: libapache2-mod-php5: dependency problems, but removing anyway as you requested:
 php5 depends on libapache2-mod-php5 (>= 5.3.3-7+squeeze3) | libapache2-mod-php5filter (>= 5.3.3-7+squeeze3) | php5-cgi (>= 5.3.3-7+squeeze3); however:
  Package libapache2-mod-php5 is to be removed.
  Package libapache2-mod-php5filter is not installed.
  Package php5-cgi is not installed.
(Reading database ... 30322 files and directories currently installed.)
Removing libapache2-mod-php5 ...
Purging configuration files for libapache2-mod-php5 ...
Selecting previously deselected package libapache2-mod-php5filter.
(Reading database ... 30315 files and directories currently installed.)
Unpacking libapache2-mod-php5filter (from .../libapache2-mod-php5filter_5.3.3-7+squeeze3_amd64.deb) ...
Setting up libapache2-mod-php5filter (5.3.3-7+squeeze3) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/php5/apache2filter/php.ini with new version

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Ähm, hast du da irgendwelche Debian-Quellen in deine Paketverwaltung gemixt?

prog266

(Themenstarter)

Anmeldungsdatum:
26. März 2011

Beiträge: 67

Nein, ich muss zugeben dass der Server Debian 6 als Betriebssystem hat, ich dachte das es zwischen Ubuntu Server und Debian Server nicht viele unterschiede haben, ich wollte mich auch deswegen nicht in irgendeinem Debian Forum anmelden ☹

Isegrim

Avatar von Isegrim

Anmeldungsdatum:
29. Dezember 2006

Beiträge: 535

Hallo,

auch unter Debian brachts den remove zum Deinstallieren:

apt-get remove --purge Paketname1 [Paketname2] ... 

Viele Grüße

prog266

(Themenstarter)

Anmeldungsdatum:
26. März 2011

Beiträge: 67

Hab jetzt alles so deinstalliert. Aber es kommt immernoch der selbe Feheler!

h3nning

Anmeldungsdatum:
16. März 2010

Beiträge: 46

Um wirklich alles, was im entferntesten mit Apache zu tun hat zu deinstallieren versuche mal

1
apt-get remove --purge $(dpkg -l | grep apache | awk {'print $2'})

Grüße

dAnjou

Avatar von dAnjou

Anmeldungsdatum:
8. Oktober 2007

Beiträge: 872

Wohnort: Berlin

Sollte dieses ganze Hin- und Herinstallieren nichts bringen, kannst du auch einfach das DEB herunterladen, entpacken (in GNOME mit Rechtsklick usw. oder auf Konsole) und dir die Konfigurationen da rausziehen: http://packages.debian.org/de/squeeze/i386/apache2.2-common/download

Allerdings würde ich mir auch Sorgen um deine Paketverwaltung machen, die scheint irgendwie im Arsch zu sein. Aber du bist ja schon groß und betreibst schon einen Server. Das kriegst du hin 😉

prog266 schrieb:

Nein, ich muss zugeben dass der Server Debian 6 als Betriebssystem hat, ich dachte das es zwischen Ubuntu Server und Debian Server nicht viele unterschiede haben [...]

Falsch gedacht. Sowas beim nächsten Mal gleich ansagen.

Antworten |