re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Tutaj można zadać pytanie, jeśli Linuksa widzi się pierwszy raz w życiu ;)
C7_4K
Piegowaty Guziec
Piegowaty Guziec
Posty: 9
Rejestracja: 01 mar 2011, 08:38
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: GNOME
Architektura: x86

re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: C7_4K »

o co w tym chodzi ??

libapache2-mod-php5 depends on apache2.2-common; however:
Package apache2.2-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
apache2.2-common
apache2-mpm-prefork
apache2
libapache2-mod-php5
Error org.freedesktop.DBus.Error.Spawn.PermissionsInvalid: The permission of the setuid helper is not correct
E: Sub-process /usr/bin/dpkg returned an error code (1)
marcin1982
Gibki Gibbon
Gibki Gibbon
Posty: 3209
Rejestracja: 30 wrz 2007, 13:49
Płeć: Mężczyzna

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: marcin1982 »

Spróbuj:

Kod: Zaznacz cały

sudo dpkg-reconfigure -a
Awatar użytkownika
brezniew
Przyjaciel
Przyjaciel
Posty: 2680
Rejestracja: 12 kwie 2011, 16:48
Wersja Ubuntu: inny OS
Środowisko graficzne: Fluxbox
Architektura: x86_64

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: brezniew »

Zmień tytuł tematu tak, aby w sposób możliwie precyzyjny przedstawiał sedno sprawy, w której piszesz. Miej na uwadze również zgodność z REGULAMINEM
Tytuł tematu zmienisz edytując pierwszy post
W razie wątpliwości/zastrzeżeń odnośnie powyższej informacji skontaktuj się z moderatorem, który ją wstawił.

Opis problemu jest niewystarczający bądź sens istnienia tematu jest znikomy
W razie wątpliwości/zastrzeżeń odnośnie powyższej informacji skontaktuj się z moderatorem, który ją wstawił.

Może w końcu napiszesz co to za system i jakie masz tam repozytoria?
C7_4K
Piegowaty Guziec
Piegowaty Guziec
Posty: 9
Rejestracja: 01 mar 2011, 08:38
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: GNOME
Architektura: x86

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: C7_4K »

ubuntu 11.10 server
co to repetytoria czy jakoś tak ?? chodzi ci o pakiety ??

-- 20 lip 2012 08:10 --

Kod: Zaznacz cały

nas@NAS-Server:~$ sudo apt-get install apache2
[sudo] password for nas:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2947 kB of archives.
After this operation, 9613 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "pl_PL.ISO8859-2"
    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
Selecting previously deselected package apache2.2-bin.
(Reading database ... 464197 files and directories currently installed.)
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.20-1ubuntu1.2_i386.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.20-1ubuntu1.2_i386.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.20-1ubuntu1.2_i386.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.20-1ubuntu1.2_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.20-1ubuntu1.2_i386.deb) ...
Processing triggers for man-db ...
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
Processing triggers for ufw ...
WARN: /usr/sbin/ufw moĹźe byÄ zapisany przez wszystkich!
WARN: /usr/sbin/ufw moĹźe byÄ zapisany przez grupÄ!
WARN: /usr/sbin moĹźe byÄ zapisany przez wszystkich!
WARN: /usr/sbin moĹźe byÄ zapisany przez grupÄ!
WARN: /usr moĹźe byÄ zapisany przez wszystkich!
WARN: /usr moĹźe byÄ zapisany przez grupÄ!
Processing triggers for ureadahead ...
Setting up apache2.2-bin (2.2.20-1ubuntu1.2) ...
Setting up apache2-utils (2.2.20-1ubuntu1.2) ...
Setting up apache2.2-common (2.2.20-1ubuntu1.2) ...
ERROR: Module alias not properly enabled: /etc/apache2/mods-enabled/alias.load is a real file, not touching it
dpkg: error processing apache2.2-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
 apache2-mpm-worker depends on apache2.2-common (= 2.2.20-1ubuntu1.2); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
 apache2 depends on apache2-mpm-worker (= 2.2.20-1ubuntu1.2) | apache2-mpm-prefork (= 2.2.20-1ubuntu1.2) | apache2-mpm-event (= 2.2.20-1ubuntu1.2) | apache2-mpm-itk (= 2.2.20-1ubuntu1.2); however:
  Package apache2-mpm-worker is not configured yet.
  Package apache2-mpm-prefork is not installed.
  Package apache2-mpm-event is not installed.
  Package apache2-mpm-itk is not installed.
 apache2 depends on apache2.2-common (= 2.2.20-1ubuntu1.2); however:
  Package apache2.2-common is not configured yet.
dpkg: erroNo apport report written because MaxReports is reached already
                                                                        No apport report written because MaxReports is reached already
                                                                                                                                      No apport report written because MaxReports is reached already
                                                                                                                                                                                                    r processing apache2 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apache2.2-common
 apache2-mpm-worker
 apache2
Error org.freedesktop.DBus.Error.Spawn.PermissionsInvalid: The permission of the setuid helper is not correct
E: Sub-process /usr/bin/dpkg returned an error code (1)
nie pomogło
Awatar użytkownika
makson
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1542
Rejestracja: 23 mar 2009, 07:10
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Xfce
Architektura: x86_64

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: makson »

Repozytoria to zawartość pliku /etc/apt/sources.list
Pokaż co tam masz komendą:

Kod: Zaznacz cały

cat /etc/apt/sources.list
A próbowałeś rady marcin1982:

Kod: Zaznacz cały

sudo dpkg-reconfigure -a
Miałem Linuksa, zanim stało się to modne.
C7_4K
Piegowaty Guziec
Piegowaty Guziec
Posty: 9
Rejestracja: 01 mar 2011, 08:38
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: GNOME
Architektura: x86

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: C7_4K »

A próbowałeś rady marcin1982:

Kod: Zaznacz cały

sudo dpkg-reconfigure -a
[/quote]

tak próbowałem

-- 20 lip 2012 09:22 --

Kod: Zaznacz cały

cat /etc/apt/sources.list
#

# deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release i386 (20111011)]/ oneiric main restricted

#deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release i386 (20111011)]/ oneiric main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu oneiric main
# deb-src http://extras.ubuntu.com/ubuntu oneiric main
ok masz zawartość tego pliku ja nie wiem co dalej

-- 20 lip 2012 09:26 --

jadro to 3.0.0.12 ale nie wiem czy to ma znaczenie
Awatar użytkownika
makson
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1542
Rejestracja: 23 mar 2009, 07:10
Płeć: Mężczyzna
Wersja Ubuntu: 16.04
Środowisko graficzne: Xfce
Architektura: x86_64

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: makson »

Spróbuj:

Kod: Zaznacz cały

sudo a2dismod alias
sudo apt-get update && sudo apt-get upgrade
I jeszcze raz zainstalować:

Kod: Zaznacz cały

sudo apt-get install apache2
Miałem Linuksa, zanim stało się to modne.
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: ethanak »

Chwila moment...
WARN: /usr moĹźe byÄ zapisany przez wszystkich!
ERROR: Module alias not properly enabled: /etc/apache2/mods-enabled/alias.load is a real file, not touching it
Ja tu widzę niezły burdłagan - według mnie system nadaje się do zaorania i postawienia od zera.
Awatar użytkownika
brezniew
Przyjaciel
Przyjaciel
Posty: 2680
Rejestracja: 12 kwie 2011, 16:48
Wersja Ubuntu: inny OS
Środowisko graficzne: Fluxbox
Architektura: x86_64

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: brezniew »

Kolejnej prośby nie będzie:
Zmień tytuł tematu tak, aby w sposób możliwie precyzyjny przedstawiał sedno sprawy, w której piszesz. Miej na uwadze również zgodność z REGULAMINEMTytuł tematu zmienisz edytując pierwszy postW razie wątpliwości/zastrzeżeń odnośnie powyższej informacji skontaktuj się z moderatorem, który ją wstawił.
http://rtfm.killfile.pl/#tematy

Zajrzyj w końcu do jakiegoś poradnika bo bez znajomości podstaw nie ma to żadnego sensu.

PS Wyniki umieszczaj w tagach Code, a nie w Quote.
C7_4K
Piegowaty Guziec
Piegowaty Guziec
Posty: 9
Rejestracja: 01 mar 2011, 08:38
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: GNOME
Architektura: x86

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: C7_4K »

ethanak pisze:Chwila moment...
WARN: /usr moĹźe byÄ zapisany przez wszystkich!
ERROR: Module alias not properly enabled: /etc/apache2/mods-enabled/alias.load is a real file, not touching it
Ja tu widzę niezły burdłagan - według mnie system nadaje się do zaorania i postawienia od zera.
to już naprawiłem za pomocą chmod -R 755

dobra olać to jak kupie większy dysk do serwera postawie wszystko na nowo - temat do zamkniecia.
myślałem że ubuntu to dobre rozwiązanie pod Serwer NAS ale widzę że sie myliłem
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: ethanak »

C7_4K pisze: to już naprawiłem za pomocą chmod -R 755
Genialne. Sam na to wpadłeś czy wyczytałeś w jakimś poradniku? Może powiedz w jakim, coby następni wiedzieli od czego się trzymać z daleka...
Awatar użytkownika
jacekalex
Gibki Gibbon
Gibki Gibbon
Posty: 4707
Rejestracja: 17 cze 2007, 02:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: MATE
Architektura: x86_64

Re: re:Potrzebuje pomocy z instalacją Serwera Apache + PHP

Post autor: jacekalex »

C7_4K pisze:.....
to już naprawiłem za pomocą chmod -R 755
Ubuntu się nadaje tak samo, jak każdy inny Linux, natomiast Administrator tego serwera się nie nadaje. :rotfl:
Na przyszłość, w folderach systemowych lepiej rekursywnego nadawania uprawnień nie używać, bo przeważnie system się w ten sposób rozwala, a nie naprawia.

Można sobie zrobić skrypty do odratowania systemu po takiej wpadce, ale tylko na sprawnym, dzialającym i poprawnie skonfigurowanym systemie.
Sznurek: http://dug.net.pl/drukuj/117/backup_upr ... ystemowych_/
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux :)
ODPOWIEDZ

Wróć do „Przedszkole Linuksa”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 25 gości