Deinstalacja komponentów serwera www i ich prawidłowa ponowna instalacja

Tutaj można zadać pytanie, jeśli Linuksa widzi się pierwszy raz w życiu ;)
slash0r
Piegowaty Guziec
Piegowaty Guziec
Posty: 15
Rejestracja: 25 lis 2010, 14:54
Płeć: Mężczyzna
Wersja Ubuntu: 13.04
Środowisko graficzne: Xfce
Architektura: x86_64

Deinstalacja komponentów serwera www i ich prawidłowa ponowna instalacja

Post autor: slash0r »

Problemy teoretycznie dwa, ale myślę, że ściśle ze sobą związane :)

Dziś postawiłem Ubuntu 10.04 Desktop. Miałem zamiar używać go jako czystego systemu tylko do nauki PHP i MySQL, ale oczywiście nie wypaliło.
Zacząłem od instalacji ze źródeł według tego poradnika. Nie wyszło, a więc zamiast szukać problemu, ja głupi zainstalowałem serwer według kolejnego poradnika i znowu spartaczyłem robotę.
Chcę teraz, pozbyć się wszystkiego, co zepsułem, aby pod localhost i 127.0.0.1 nie wyświetlała się żadna strona a tradycyjne nie znaleziono. Potem chciałbym zainstalować Apache, PHP, MySQL i phpMyAdmin i tyle. Nic więcej, dlatego też AMP odpadają. Czym się kierować, aby po raz kolejny nie zepsuć idealnego porządku w Ubuntu. :-(
Awatar użytkownika
jaca1313
Sędziwy Jeż
Sędziwy Jeż
Posty: 59
Rejestracja: 17 lis 2008, 07:02
Płeć: Mężczyzna
Wersja Ubuntu: 11.04
Środowisko graficzne: LXDE
Architektura: x86
Lokalizacja: grójec

Odp: Deinstalacja komponentów serwera www i ich prawidłowa ponowna instalacja

Post autor: jaca1313 »

sudo apt-get remove php5

sudo apt-get remove apache2
Awatar użytkownika
woseba
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 153
Rejestracja: 19 lis 2008, 11:17
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Odp: Deinstalacja komponentów serwera www i ich prawidłowa ponowna instalacja

Post autor: woseba »

możesz poszukać w synaptic wszystkiego co dotyczy pakietów, które zainstalowałeś, a ponowna instalacja sprowadza się do

Kod: Zaznacz cały

sudo apt-get update && sudo apt-get install apache2 php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin
działa 'out-of-the-box'.
Registered Ubuntu User # 31195
You are registered Linux user number 527911
ubuntu-pomoc.org
slash0r
Piegowaty Guziec
Piegowaty Guziec
Posty: 15
Rejestracja: 25 lis 2010, 14:54
Płeć: Mężczyzna
Wersja Ubuntu: 13.04
Środowisko graficzne: Xfce
Architektura: x86_64

Odp: Deinstalacja komponentów serwera www i ich prawidłowa ponowna instalacja

Post autor: slash0r »

@jaca1313
No właśnie to nic nie dało, ciągle zarówno localhost jak i 127.0.0.1 dumnie głoszą It works! z tym, że localhost wyświetla samo it works, a 127.0.0.1 dodaje jeszcze, że to standardowa strona :/

@woseba

Kod: Zaznacz cały

root@tomasz-desktop:~# sudo apt-get update && sudo apt-get install apache2 php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin
Traf http://pl.archive.ubuntu.com lucid Release.gpg
Traf http://pl.archive.ubuntu.com/ubuntu/ lucid/main Translation-pl            
Traf http://ppa.launchpad.net lucid Release.gpg                                
Ign http://ppa.launchpad.net/kkszysiu/telepathy/ubuntu/ lucid/main Translation-pl
Ign http://ppa.launchpad.net maverick Release.gpg                              
Traf http://archive.canonical.com lucid Release.gpg                            
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-pl          
Traf http://pl.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-pl      
Traf http://pl.archive.ubuntu.com/ubuntu/ lucid/universe Translation-pl        
Traf http://pl.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-pl      
Traf http://pl.archive.ubuntu.com lucid-updates Release.gpg                    
Ign http://pl.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-pl     
Ign http://pl.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-pl
Ign http://pl.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-pl 
Ign http://pl.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-pl
Traf http://pl.archive.ubuntu.com lucid Release                                
Traf http://security.ubuntu.com lucid-security Release.gpg                     
Ign http://ppa.launchpad.net/patryk-prezu/ppa/ubuntu/ maverick/main Translation-pl
Traf http://ppa.launchpad.net lucid Release                                    
Traf http://pl.archive.ubuntu.com lucid-updates Release                        
Traf http://packages.medibuntu.org lucid Release.gpg                           
Ign http://packages.medibuntu.org/ lucid/free Translation-pl                   
Ign http://packages.medibuntu.org/ lucid/non-free Translation-pl               
Traf http://archive.canonical.com lucid Release                                
Ign http://ppa.launchpad.net maverick Release                                  
Traf http://pl.archive.ubuntu.com lucid/main Packages                          
Traf http://pl.archive.ubuntu.com lucid/restricted Packages                    
Traf http://pl.archive.ubuntu.com lucid/universe Packages                      
Traf http://pl.archive.ubuntu.com lucid/multiverse Packages                    
Traf http://pl.archive.ubuntu.com lucid/main Sources                           
Traf http://packages.medibuntu.org lucid Release                               
Traf http://archive.canonical.com lucid/partner Packages                       
Traf http://pl.archive.ubuntu.com lucid/restricted Sources                     
Traf http://pl.archive.ubuntu.com lucid/universe Sources                       
Traf http://pl.archive.ubuntu.com lucid/multiverse Sources                     
Traf http://ppa.launchpad.net lucid/main Packages                              
Traf http://ppa.launchpad.net lucid/main Sources                               
Traf http://pl.archive.ubuntu.com lucid-updates/main Packages                  
Traf http://pl.archive.ubuntu.com lucid-updates/restricted Packages            
Traf http://pl.archive.ubuntu.com lucid-updates/universe Packages              
Traf http://pl.archive.ubuntu.com lucid-updates/multiverse Packages            
Traf http://pl.archive.ubuntu.com lucid-updates/main Sources                   
Traf http://pl.archive.ubuntu.com lucid-updates/restricted Sources             
Traf http://pl.archive.ubuntu.com lucid-updates/universe Sources               
Traf http://archive.canonical.com lucid/partner Sources                        
Traf http://packages.medibuntu.org lucid/free Packages                         
Traf http://pl.archive.ubuntu.com lucid-updates/multiverse Sources             
Ign http://ppa.launchpad.net maverick/main Packages                            
Traf http://packages.medibuntu.org lucid/non-free Packages                     
Traf http://packages.medibuntu.org lucid/free Sources                          
Traf http://packages.medibuntu.org lucid/non-free Sources                      
Ign http://ppa.launchpad.net maverick/main Packages                            
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-pl      
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-pl
Błąd http://ppa.launchpad.net maverick/main Packages                           
  404  Not Found
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-pl  
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-pl
Traf http://security.ubuntu.com lucid-security Release
Traf http://security.ubuntu.com lucid-security/main Packages
Traf http://security.ubuntu.com lucid-security/restricted Packages
Traf http://security.ubuntu.com lucid-security/universe Packages
Traf http://security.ubuntu.com lucid-security/multiverse Packages             
Traf http://security.ubuntu.com lucid-security/main Sources                    
Traf http://security.ubuntu.com lucid-security/restricted Sources
Traf http://security.ubuntu.com lucid-security/universe Sources
Traf http://security.ubuntu.com lucid-security/multiverse Sources
Traf http://archive.getdeb.net lucid-getdeb Release.gpg     
Ign http://archive.getdeb.net/ubuntu/ lucid-getdeb/apps Translation-pl
Ign http://archive.getdeb.net/ubuntu/ lucid-getdeb/games Translation-pl
Traf http://archive.getdeb.net lucid-getdeb Release
Traf http://archive.getdeb.net lucid-getdeb/apps Packages
Traf http://archive.getdeb.net lucid-getdeb/games Packages  
Traf http://archive.getdeb.net lucid-getdeb/apps Sources    
Traf http://archive.getdeb.net lucid-getdeb/games Sources
W: Nie udało się pobrać http://ppa.launchpad.net/patryk-prezu/ppa/ubuntu/dists/maverick/main/binary-amd64/Packages.gz  404  Not Found

E: Nie udało się pobrać niektórych plików indeksu, zostały one zignorowane lub została użyta ich starsza wersja.
Kurde, ale namieszałem :(

Z racji, że jedyną zmianą w oprogramowaniu jest Kadu, to czy nie łatwiej będzie mi zrobić format i postawić Ubu na nowo? Ale wtedy potrzebuję pewnej meteody co do Apache+PHP+MySQL+phpMyAdmin.
womperm
Sędziwy Jeż
Sędziwy Jeż
Posty: 55
Rejestracja: 07 lut 2010, 13:21
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Fluxbox
Architektura: x86

Odp: Deinstalacja komponentów serwera www i ich prawidłowa ponowna instalacja

Post autor: womperm »

Hmm, z tego co tu widać to że repo jest nie dostępne.
Poszukaj innych są na forum.
Awatar użytkownika
woseba
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 153
Rejestracja: 19 lis 2008, 11:17
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Odp: Deinstalacja komponentów serwera www i ich prawidłowa ponowna instalacja

Post autor: woseba »

wyedytuj /etc/apt/sources.list, możesz wpisac te, raczej czyste, nic nie dodawałem od siebie:

Kod: Zaznacz cały

# deb cdrom:[Ubuntu 10.04.1 LTS _Lucid Lynx_ - Release amd64 (20100816.1)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://pl.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-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://pl.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid universe
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-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://pl.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://pl.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe 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 lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
wtedy powinno się wszystko zainstalować.
Registered Ubuntu User # 31195
You are registered Linux user number 527911
ubuntu-pomoc.org
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 9 gości