Nie moge zainstalowac zestawu apache

Witam! Chciałbym postawic swoją stronkę na vpsie! Jednak mam problemy z instalacją php5

Co mam robic? Z góry wielkie THX!

Musisz zainstalowac najnowszego php w takim wypadku: apt-get install php

Jeżeli zależy Ci na php5, spróbuj dodać repozytorium ondreja, powinno pomóc.

sudo apt-get install software-properties-common

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt-get install php5

Jeżeli jednak chcesz po prostu zainstalować PHP, to wiedz że wersja wiodąca to php7.0/php7.1.

sudo apt-get install php7.0


Które wybrac? Jak wybiore apache2 to dostaje:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php : Depends: php7.2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

no paczki z ubuntu na debian czy to rozsądne???

tym bardziej dla osoby nie zaawansowanej :wink:

Mój błąd, faktycznie.
W takim razie https://stackoverflow.com/questions/46378017/install-php5-6-in-debian-9 powinno pomóc.

1 polubienie