Apache Fehler ?

Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
Antworten
Deathbreaker
Beiträge: 44
Registriert: 11.05.2005 19:01:00
Kontaktdaten:

Apache Fehler ?

Beitrag von Deathbreaker » 28.05.2005 11:21:27

Weiß jemand an was das liegt ?

Code: Alles auswählen

Restart Apache now? [Y/n] y
fopen: No such file or directory
apache: could not open error log file /var/log/apache/error.log.
/usr/sbin/apachectl start: httpd could not be started
dpkg: error processing php4 (--configure):
 subprocess post-installation script returned error exit status 3
Errors were encountered while processing:
 php4
E: Sub-process /usr/bin/dpkg returned an error code (1)

Benutzeravatar
Silke
Beiträge: 559
Registriert: 17.05.2005 15:58:20
Wohnort: Hannover
Kontaktdaten:

Re: Apache Fehler ?

Beitrag von Silke » 28.05.2005 12:26:37

Moin,

Code: Alles auswählen

fopen: No such file or directory
apache: could not open error log file /var/log/apache/error.log.
/usr/sbin/apachectl start: httpd could not be started
Apache will seine Startmeldungen ins Errorlog schreiben, wenn er das nicht kann, startet er nicht. Existiert das Verzeichnis /var/log/apache/ und hat es die richtigen Rechte? Hat error.log die richtigen Rechte? Ist ueberhaupt noch Platz auf der Partition oder ist die schon voll?

Code: Alles auswählen

dpkg: error processing php4 (--configure):
 subprocess post-installation script returned error exit status 3
Die Installation von php4 hat nicht geklappt, die entsprechenden Fehlermeldungen sollten weiter oben zu finden sein. Versuch mal, ob apt-get -f install hilft.

Gruss,
- Silke -
Der Vorteil der Klugheit liegt darin, dass man sich dumm stellen kann. Das Gegenteil ist schon schwieriger.
- Kurt Tucholsky -

Deathbreaker
Beiträge: 44
Registriert: 11.05.2005 19:01:00
Kontaktdaten:

Beitrag von Deathbreaker » 28.05.2005 14:31:06

Da kommt:

Code: Alles auswählen

t4a0094:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 14  not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up php4 (4.1.2-7.0.1) ...
I see you have apache webserver installed and so far you haven't
used the apache module version of php4 in your apache. If you
want to use it, you should reconfigure the apache webserver and
select to load the php module. I can call the apacheconfig script
now for you to do it, or you can insert the following line into
/etc/apache/httpd.conf manually:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

Do you want me to run the apacheconfig script now [y/N] ? y
Finding DSO mods........................................found.

# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
# LoadModule env_module /usr/lib/apache/1.3/mod_env.so
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
# LoadModule info_module /usr/lib/apache/1.3/mod_info.so
# LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
# LoadModule asis_module /usr/lib/apache/1.3/mod_asis.so
# LoadModule imap_module /usr/lib/apache/1.3/mod_imap.so
# LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
# LoadModule speling_module /usr/lib/apache/1.3/mod_speling.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
# LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
# LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
# LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so
# LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so
# LoadModule digest_module /usr/lib/apache/1.3/mod_digest.so
# LoadModule cern_meta_module /usr/lib/apache/1.3/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
# LoadModule headers_module /usr/lib/apache/1.3/mod_headers.so
# LoadModule usertrack_module /usr/lib/apache/1.3/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
# LoadModule sys_auth_module /usr/lib/apache/1.3/mod_auth_sys.so
# LoadModule put_module /usr/lib/apache/1.3/mod_put.so
# LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
# LoadModule allowdev_module /usr/lib/apache/1.3/mod_allowdev.so
# LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so
# LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
# LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so

Pondering........................................ done.

Save these changes to the configuration files? [Y/n] y

Rotated `/etc/apache/httpd.conf' at Sat May 28 12:13:04 UTC 2005.
Restart Apache now? [Y/n] y
fopen: No such file or directory
apache: could not open error log file /var/log/apache/error.log.
/usr/sbin/apachectl start: httpd could not be started
dpkg: error processing php4 (--configure):
 subprocess post-installation script returned error exit status 3
Errors were encountered while processing:
 php4
E: Sub-process /usr/bin/dpkg returned an error code (1)

Benutzeravatar
Silke
Beiträge: 559
Registriert: 17.05.2005 15:58:20
Wohnort: Hannover
Kontaktdaten:

Beitrag von Silke » 28.05.2005 14:43:12

Ah verstehe, der Neustart des Apachen schlaegt bei der Neuinstallation von PHP4 fehl ... dann ueberpruefe bitte, warum in /var/log/apache/error.log nicht geschrieben werden kann, behebe das Problem und rufe apt-get -f install noch mal auf oder starte den Apachen dann einfach von Hand.

Gruss,

- Silke -
Der Vorteil der Klugheit liegt darin, dass man sich dumm stellen kann. Das Gegenteil ist schon schwieriger.
- Kurt Tucholsky -

Deathbreaker
Beiträge: 44
Registriert: 11.05.2005 19:01:00
Kontaktdaten:

Beitrag von Deathbreaker » 28.05.2005 18:17:30

gut werde ich mal probieren , wie ist der befehl zum starten von apache ?

Benutzeravatar
stefon
Beiträge: 540
Registriert: 07.04.2004 12:41:57
Wohnort: Sbg Stadt
Kontaktdaten:

Beitrag von stefon » 28.05.2005 18:31:13

du bist als root in der konsole und gibst ein:

Code: Alles auswählen

/etc/init.d/apache2 start

Benutzeravatar
Silke
Beiträge: 559
Registriert: 17.05.2005 15:58:20
Wohnort: Hannover
Kontaktdaten:

Beitrag von Silke » 28.05.2005 18:55:03

stefon hat geschrieben:

Code: Alles auswählen

/etc/init.d/apache2 start
Da es ein Apache 1.3 ist, ist es
/etc/init.d/apache start
oder einfach
apachectl start

Gruss,
- Silke -
Der Vorteil der Klugheit liegt darin, dass man sich dumm stellen kann. Das Gegenteil ist schon schwieriger.
- Kurt Tucholsky -

Antworten