Prijavi se z GoogleID

» »

[Debian] Po dveh dneh uporabe sem ga sesul :S

[Debian] Po dveh dneh uporabe sem ga sesul :S

Ice-Heki ::

Oj!

No, mam debiana kot spletni strežnik ...
Težava se pojavi, da sem se nekaj igračkal z Apachi, PHPji, ...
In sedaj ne morem ne zbrisat in ne namestit nobenga Apacha:

če dam apt-get install apache2
Reading package lists... Done
Building dependency tree... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.34-4.1) ...
ls: *.so: No such file or directory
ls: *.info: No such file or directory
ls: *.info: No such file or directory
ls: *.info: No such file or directory
Not replacing deleted config file /etc/apache/httpd.conf
Not replacing deleted config file /etc/apache/srm.conf
Not replacing deleted config file /etc/apache/access.conf
Can't open config file /etc/apache/httpd.conf.
No such file or directory
Can't open config file /etc/apache/httpd.conf.
No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
grep: /etc/apache/httpd.conf: No such file or directory
Configuration syntax error detected, not starting/reloading...
fopen: No such file or directory
apache: could not open document config file /etc/apache/httpd.conf
failed!
invoke-rc.d: initscript apache, action "start" failed.
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)

Če dam apt-get install apache
Reading package lists... Done
Building dependency tree... Done
apache is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.34-4.1) ...
ls: *.so: No such file or directory
ls: *.info: No such file or directory
ls: *.info: No such file or directory
ls: *.info: No such file or directory
Not replacing deleted config file /etc/apache/httpd.conf
Not replacing deleted config file /etc/apache/srm.conf
Not replacing deleted config file /etc/apache/access.conf
Can't open config file /etc/apache/httpd.conf.
No such file or directory
Can't open config file /etc/apache/httpd.conf.
No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
grep: /etc/apache/httpd.conf: No such file or directory
Configuration syntax error detected, not starting/reloading...
fopen: No such file or directory
apache: could not open document config file /etc/apache/httpd.conf
failed!
invoke-rc.d: initscript apache, action "start" failed.
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)

Sedaj pa me zanima, kaj naj naredim, da bom lahko namestil Apache 1.3 ...?

Kakšen nasvet?

jeso ::

Odstrani apache skupaj s konfiguracijo (obe verziji, 1 in 2):
dpkg --purge apache
dpkg --purge apache2

Izbriši stare pakete s sistema (za vsak slučaj):
apt-get clean

Update seznamov paketov:
apt-get update

Spet namesti apache (raje apache2):
apt-get install apache2

lp

Ice-Heki ::

Hvala, vendar mi izpiše tole:
(Reading database ... 15222 files and directories currently installed.)
Removing apache ...
Stopping apache 1.3 web server...No process in pidfile `/var/run/apache.pid' found running; none killed.
.
Purging configuration files for apache ...
dpkg - warning: while removing apache, directory `/usr/lib/apache' not empty so not removed.

Ponovna inštalacija potem zopet ne uspe ...
Še kakšna ideja?

Ice-Heki ::

Aja, to sm pozabu povedat ...
Ročno sem zbrisal direktorij apache v /var in sedaj mi nič ne dela ...

r5r ::

Preveri, če ti je kaj ostalo na disku.
dpkg -l|grep apache
And it makes me wonder.

Ice-Heki ::

Mhm
ii apache-common 1.3.34-4.1 support files for all Apache webservers
ii apache2-mpm-prefork 2.2.3-4 Traditional model for Apache HTTPD 2.1
ii apache2-utils 2.2.3-4 utility programs for webservers
ii apache2.2-common 2.2.3-4 Next generation, scalable, extendable web se
ii libapache-mod-php4 4.4.4-8+etch1 server-side, HTML-embedded scripting languag
ii libapache2-mod-php4 4.4.4-8+etch1 server-side, HTML-embedded scripting languag
rc libapache2-mod-php5 5.2.0-8+etch1 server-side, HTML-embedded scripting languag

In to zbrišem na roke?

r5r ::

apt-get remove --purge apache-common apache2-mpm-prefork apache2-utils apache2.2-common libapache-mod-php4 libapache2-mod-php4

Če kaj ostane še in ima rc:
dpkg --purge libapache2-mod-php5
And it makes me wonder.

Ice-Heki ::

Ej, hvala vam ... uspelo mi je!

Dobite enkrat za pjačo ko se ke srečamo!
[quikee hvala tud teb za pomoč prek zs]

Ice-Heki ::

Ok, vse pa tudi ni tako preprosto ...
Nainštaliral sem apache 1.3 in dela ... (ne vprašajte zakaj ne 2ke ... pač tak je bil ukaz :S)
Sedaj pa še php4 (spet tak je ukaz, sam imam rajši 5ko) ...
Pa vse v redu ...vendar se mi apache in php ne združita - vsak dela zase, vendar mi apache ne odpre php datoteke kot bi jo moral (ne izvaja php funkcije npr. phpinfo()) pač pa mi ponudi download te daoteke ...
Pa me zanima če kdo ve, kaj naj še spremenim, da mi bo delalo?

Gwanaroth ::

Dodaj

AddType application/x-httpd-php .php

v /etc/apache/httpd.conf

in nato restartaj apache.
Lights often keep secret hypnosis..

Ice-Heki ::

Ne dela ...
Kaj pa če bi moral dodati kakšen LoadModule php4????


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

[Linux] Ubuntu serve

Oddelek: Operacijski sistemi
17893 (705) tx-z
»

[Debian] ./configure

Oddelek: Operacijski sistemi
7774 (674) mte
»

GCC 4.0!

Oddelek: Programiranje
361941 (1185) 64202
»

EZ portal problem!

Oddelek: Izdelava spletišč
9843 (763) rolihandrej
»

Kako inštalirati program v linuxih ??

Oddelek: Programska oprema
9915 (781) Gandalfar

Več podobnih tem