PHP - php dejo de funcionar por la actualizacion de ubuntu?

 
Vista:

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por carlos (5 intervenciones) el 21/11/2016 14:09:04
Hola, parece que el servidor PHP dejó de funcionar... no se si será debido a que hace poco actualizé ubuntu de trusty tahr a xenial.... ???

El caso es que los servidores WEB y MYSQL que instalé en su día junto a PHP siguen funcionando.

Sabeis si la causa puede ser esa, y como solucionarlo?

Al mostrar la página info.php que contiene el comando phpinfo() en el navegador no da error... solo se queda en blanco
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por xve (6935 intervenciones) el 21/11/2016 15:05:08
Hola Carlos, por el echo de actualizar, puede ser que cambie de versión del Apache, y tengas que reconfigurar el Apache... pero no debería dejar de funcionar!!!

El servicio esta arrancado?
El log da algun error?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de kip
Val: 2.325
Plata
Ha disminuido 1 puesto en PHP (en relación al último mes)
Gráfica de PHP

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por kip (877 intervenciones) el 21/11/2016 15:10:16
Hola, tal como comenta Xve por el simple hecho de actualizarlo no deberia dejar de funcionar, debes reconfigurar tal vez, en el Ubuntu Xenial Xerus la version que trae de PHP es la 7, verifica por consola si es aquella version la que tienes ahora y si la es verifica que el modulo para Apache del PHP 7 este activado y/o instalado.

Verificar version:
1
php -v

Si debes instalarlo:
1
sudo apt-get install libapache2-mod-php7.0

Si esta instalado el modulo, activarlo:
1
sudo a2enmod php7.0

Nos cuentas si lo solucionas.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
1
Comentar

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por Carlos (5 intervenciones) el 22/11/2016 09:45:50
Gracias xve y kip...
no me lo puedo creer... php directamente no está instalado... no tengo ni idea de como a llegado a desinstalarse.

$ php -v
The program 'php' is currently not installed. You can install it by typing: sudo apt install php7.0-cli

Tras ejecutar lo que me recomendabais:

$ sudo apt-get install libapache2-mod-php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libapache2-mod-php7.0 : Depends: php7.0-cli but it is not going to be installed
Depends: php7.0-common (= 7.0.8-0ubuntu0.16.04.3) but it is not going to be installed
Depends: php7.0-json but it is not going to be installed
Depends: php7.0-opcache but it is not going to be installed
libreoffice-core : Depends: libreoffice-common (> 1:5.2.3~rc2) but it is not going to be installed
libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not going to be installed
libreoffice-l10n-en-za : Depends: libreoffice-common but it is not going to be installed
libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not going to be installed
libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

ni siquiera ejecutando lo que me aconseja el propio sistema:

$ sudo apt install php7.0-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:5.2.3~rc2) but it is not going to be installed
libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not going to be installed
libreoffice-l10n-en-za : Depends: libreoffice-common but it is not going to be installed
libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not going to be installed
libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not going to be installed
php7.0-cli : Depends: php7.0-common (= 7.0.8-0ubuntu0.16.04.3) but it is not going to be installed
Depends: php7.0-json but it is not going to be installed
Depends: php7.0-opcache but it is not going to be installed
Depends: php7.0-readline but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Veo que aparece algo relacionado con libreoffice.
Hace poco tuve que desinstalar libreoffice para instalar openoffice y volver a instalar libreoffice...
puede q tenga algo q ver con todo esto?

Muchas gracias por vuestro interes.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por xve (6935 intervenciones) el 22/11/2016 10:52:38
Hola CArlos, tienes dependencias incompletas...

Revisa que todos los repositorios esten bien puestos y haz un:
1
2
sudo apt-get update
sudo apt-get dist-upgrade

también puedes probar lo que te dice de hacer un:
1
sudo apt-get -f install

Luego vuelve a probar de instalar el php...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por carlos (5 intervenciones) el 22/11/2016 11:24:38
carlos@carlos-H55M-S2V:~$ sudo apt-get update
[sudo] password for carlos:
Hit:1 http://softlibre.unizar.es/ubuntu/archive xenial InRelease
Hit:2 http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial InRelease
Get:3 http://softlibre.unizar.es/ubuntu/archive xenial-updates InRelease [95.7 kB]
Get:4 http://softlibre.unizar.es/ubuntu/archive xenial-backports InRelease [92.2 kB]
Get:5 http://softlibre.unizar.es/ubuntu/archive xenial-security InRelease [94.5 kB]
Get:6 http://softlibre.unizar.es/ubuntu/archive xenial-updates/main i386 Packages [420 kB]
Get:7 http://softlibre.unizar.es/ubuntu/archive xenial-updates/universe i386 Packages [359 kB]
Fetched 1,061 kB in 0s (1,142 kB/s)
Reading package lists... Done

carlos@carlos-H55M-S2V:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:5.2.3~rc2) but it is not installed
libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not installed
libreoffice-l10n-en-za : Depends: libreoffice-common but it is not installed
libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not installed
libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not installed
E: Unmet dependencies. Try using -f.

carlos@carlos-H55M-S2V:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
hyphen-en-gb hyphen-en-us libabw-0.1-1v5 libcmis-0.5-5v5 libe-book-0.1-1
libeot0 libetonyek-0.1-1 libmwaw-0.3-3 libodfgen-0.1-1
libreoffice-help-en-gb libreoffice-help-en-us libreoffice-l10n-en-gb
libreoffice-l10n-en-za librevenge-0.0-0 libwpd-0.10-10 libwpg-0.3-3
libwps-0.4-4 mythes-en-au mythes-en-us
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libreoffice-common
Suggested packages:
libreoffice-style-breeze libreoffice-style-hicontrast
libreoffice-style-human libreoffice-style-oxygen libreoffice-style-sifr
libreoffice-style-tango
The following NEW packages will be installed:
libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 270 not upgraded.
11 not fully installed or removed.
Need to get 0 B/22.4 MB of archives.
After this operation, 85.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 403159 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.2.3~rc2-0ubuntu1~xenial1_all.deb ...
Unpacking libreoffice-common (1:5.2.3~rc2-0ubuntu1~xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.2.3~rc2-0ubuntu1~xenial1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.2-9782
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Processing triggers for gnome-icon-theme (3.12.0-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a5.2.3~rc2-0ubuntu1~xenial1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

No se yo pero creo que todo viene de la instalación de openoffice y reinstalación de libreoffice.
Ahora no está integrado en el escritorio.
Y además hay dependencias q no puedo instalar o desinstalar

He intentado instalar synaptic para borrar paquetes perdidos... pero incluso instalando synaptic me salen errores relacionados con libreoffice

carlos@carlos-H55M-S2V:~$ sudo apt-get install synaptic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:5.2.3~rc2) but it is not going to be installed
libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not going to be installed
libreoffice-l10n-en-za : Depends: libreoffice-common but it is not going to be installed
libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not going to be installed
libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.2.3~rc2-0ubuntu1~xenial1) but it is not going to be installed
synaptic : Depends: libept1.5.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por xve (6935 intervenciones) el 22/11/2016 15:02:50
Hola Carlos, ejecuta esto como root:
1
dpkg --purge $(dpkg --get-selections | grep deinstall | cut -d" " -f1)

Esto lo que hace, es eliminar todos los paquetes que están como desintalados!!

Coméntanos, ok?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 729
Bronce
Ha aumentado 1 puesto en PHP (en relación al último mes)
Gráfica de PHP

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por Gonzalo (615 intervenciones) el 22/11/2016 17:27:46
revisa el firewall, tal vez esta bloqueado el puerto 80 o el 8080.

intenta activar el sitio web directamente desde el servidor

http://localhost

si funciiona entonces el firewall pudiera estar bloqueando ese puerto.

salu2.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por Carlos (5 intervenciones) el 23/11/2016 12:38:01
no tengo firewall Gonzalo...

ejecutando lo que decía xve:

1
dpkg --purge $(dpkg --get-selections | grep deinstall | cut -d" " -f1)

aparece en la respuesta un montón de programas pero ninguno relacionado con openoffice.
tengo el volcado en un fichero y he buscado pero sin encontrar nada

haciendo de nuevo los pasos recomendados da el mismo resultado

siento teneros tan liados
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por xve (6935 intervenciones) el 23/11/2016 15:25:22
Carlos, que tienes en el archivo /etc/apt/sources.lst ?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por carlos (5 intervenciones) el 24/11/2016 11:21:59
El archivo efectivamente existe en el directorio que especificabas, pero el archivo se llama sources.list, y esto es lo que contiene:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
$ cat sources.list
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted
 
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://softlibre.unizar.es/ubuntu/archive/ xenial main restricted
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial main restricted
 
## Major bug fix updates produced after the final release of the
## distribution.
deb http://softlibre.unizar.es/ubuntu/archive/ xenial-updates main restricted
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial-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://softlibre.unizar.es/ubuntu/archive/ xenial universe
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial universe
deb http://softlibre.unizar.es/ubuntu/archive/ xenial-updates universe
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial-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://softlibre.unizar.es/ubuntu/archive/ xenial multiverse
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial multiverse
deb http://softlibre.unizar.es/ubuntu/archive/ xenial-updates multiverse
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial-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://softlibre.unizar.es/ubuntu/archive/ xenial-backports main restricted universe multiverse
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial-backports main restricted universe multiverse
 
deb http://softlibre.unizar.es/ubuntu/archive/ xenial-security main restricted
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial-security main restricted
deb http://softlibre.unizar.es/ubuntu/archive/ xenial-security universe
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial-security universe
deb http://softlibre.unizar.es/ubuntu/archive/ xenial-security multiverse
deb-src http://softlibre.unizar.es/ubuntu/archive/ xenial-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


## Virtual Box de Oracle
# deb http://download.virtualbox.org/virtualbox/debian xenial contrib # disabled on upgrade to xenial

## actualización de R de un mirror en concreto (berkeley)
## versión de ubuntu: trusty
## Fetch the secure APT key with
## gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 
## or 
## gpg --hkp://keyserver keyserver.ubuntu.com:80 --recv-key E084DAB9.
##
## Feed it to apt-key with
## gpg -a --export E084DAB9 | sudo apt-key add -
##
## Update your sources and upgrade your installation with
## sudo apt-get update && sudo apt-get upgrade.
# deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ trusty/ # disabled on upgrade to xenial
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 729
Bronce
Ha aumentado 1 puesto en PHP (en relación al último mes)
Gráfica de PHP

php dejo de funcionar por la actualizacion de ubuntu?

Publicado por gonzalo (615 intervenciones) el 25/11/2016 03:19:45
yo tengo ubuntu me paso casi lo mismo cuando cambie del 14 al 16.04

ubuntu tiene firewall, revisa a ver si esta activado, instala el gufw o cortafuegos o firewall, esta en el software de ubuntu, si esta activado crea una regla para el puerto 80 y el 8080, no te recomiendo que deshabilites el firewall.

revisa a ver si tienes acceso a los archivos del portal, acitvate los permisos si es que no los tienes.

sudo nautilus

con ese puedes cambiar los accesos a los directorios de tu portal.

suerte, salu2.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar