Unable to make php works on Ubuntu
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
-1
down vote
favorite
I have already apache working and i have created a virtual host but php is not working, im getting just plain text, this is the error during the install:
Error found on processing:
javascript-common
libapache2-mod-php7.2
libapache2-mod-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is what im doing:
sudo rm -Rf var/lib/dpkg/lock ; sudo apt-get dist-upgrade -y
Also tried
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt
14.04 apache2
add a comment |Â
up vote
-1
down vote
favorite
I have already apache working and i have created a virtual host but php is not working, im getting just plain text, this is the error during the install:
Error found on processing:
javascript-common
libapache2-mod-php7.2
libapache2-mod-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is what im doing:
sudo rm -Rf var/lib/dpkg/lock ; sudo apt-get dist-upgrade -y
Also tried
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt
14.04 apache2
In the first formatted text block please copy/paste the complete error message, not just the tail.
â karel
Apr 26 at 16:23
I am seeing this:libapache2-mod-php7.2
when your installing this:php7.0 libapache2-mod-php7.0 php7.0-mcrypt'. Please check your php version with
php -version` and install the right version
â George Udosen
Apr 26 at 16:29
i have changed to 7.2 and still getting: Configurando libapache2-mod-php7.0 (7.0.29-1+ubuntu17.10.1+deb.sury.org+1) ... dpkg: error al procesar el paquete libapache2-mod-php7.0 (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1 Configurando javascript-common (11) ... dpkg: error al procesar el paquete javascript-common (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1
â lucasvm1980
Apr 26 at 18:30
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have already apache working and i have created a virtual host but php is not working, im getting just plain text, this is the error during the install:
Error found on processing:
javascript-common
libapache2-mod-php7.2
libapache2-mod-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is what im doing:
sudo rm -Rf var/lib/dpkg/lock ; sudo apt-get dist-upgrade -y
Also tried
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt
14.04 apache2
I have already apache working and i have created a virtual host but php is not working, im getting just plain text, this is the error during the install:
Error found on processing:
javascript-common
libapache2-mod-php7.2
libapache2-mod-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is what im doing:
sudo rm -Rf var/lib/dpkg/lock ; sudo apt-get dist-upgrade -y
Also tried
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt
14.04 apache2
asked Apr 26 at 16:19
![](https://i.stack.imgur.com/xpuxZ.jpg?s=32&g=1)
![](https://i.stack.imgur.com/xpuxZ.jpg?s=32&g=1)
lucasvm1980
142
142
In the first formatted text block please copy/paste the complete error message, not just the tail.
â karel
Apr 26 at 16:23
I am seeing this:libapache2-mod-php7.2
when your installing this:php7.0 libapache2-mod-php7.0 php7.0-mcrypt'. Please check your php version with
php -version` and install the right version
â George Udosen
Apr 26 at 16:29
i have changed to 7.2 and still getting: Configurando libapache2-mod-php7.0 (7.0.29-1+ubuntu17.10.1+deb.sury.org+1) ... dpkg: error al procesar el paquete libapache2-mod-php7.0 (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1 Configurando javascript-common (11) ... dpkg: error al procesar el paquete javascript-common (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1
â lucasvm1980
Apr 26 at 18:30
add a comment |Â
In the first formatted text block please copy/paste the complete error message, not just the tail.
â karel
Apr 26 at 16:23
I am seeing this:libapache2-mod-php7.2
when your installing this:php7.0 libapache2-mod-php7.0 php7.0-mcrypt'. Please check your php version with
php -version` and install the right version
â George Udosen
Apr 26 at 16:29
i have changed to 7.2 and still getting: Configurando libapache2-mod-php7.0 (7.0.29-1+ubuntu17.10.1+deb.sury.org+1) ... dpkg: error al procesar el paquete libapache2-mod-php7.0 (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1 Configurando javascript-common (11) ... dpkg: error al procesar el paquete javascript-common (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1
â lucasvm1980
Apr 26 at 18:30
In the first formatted text block please copy/paste the complete error message, not just the tail.
â karel
Apr 26 at 16:23
In the first formatted text block please copy/paste the complete error message, not just the tail.
â karel
Apr 26 at 16:23
I am seeing this:
libapache2-mod-php7.2
when your installing this: php7.0 libapache2-mod-php7.0 php7.0-mcrypt'. Please check your php version with
php -version` and install the right versionâ George Udosen
Apr 26 at 16:29
I am seeing this:
libapache2-mod-php7.2
when your installing this: php7.0 libapache2-mod-php7.0 php7.0-mcrypt'. Please check your php version with
php -version` and install the right versionâ George Udosen
Apr 26 at 16:29
i have changed to 7.2 and still getting: Configurando libapache2-mod-php7.0 (7.0.29-1+ubuntu17.10.1+deb.sury.org+1) ... dpkg: error al procesar el paquete libapache2-mod-php7.0 (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1 Configurando javascript-common (11) ... dpkg: error al procesar el paquete javascript-common (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1
â lucasvm1980
Apr 26 at 18:30
i have changed to 7.2 and still getting: Configurando libapache2-mod-php7.0 (7.0.29-1+ubuntu17.10.1+deb.sury.org+1) ... dpkg: error al procesar el paquete libapache2-mod-php7.0 (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1 Configurando javascript-common (11) ... dpkg: error al procesar el paquete javascript-common (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1
â lucasvm1980
Apr 26 at 18:30
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
I was able fix this by removing all php related and installed again by using:
sudo apt-get purge `dpkg -l | grep php| awk 'print $2' |tr "n" " "`
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
I was able fix this by removing all php related and installed again by using:
sudo apt-get purge `dpkg -l | grep php| awk 'print $2' |tr "n" " "`
add a comment |Â
up vote
1
down vote
I was able fix this by removing all php related and installed again by using:
sudo apt-get purge `dpkg -l | grep php| awk 'print $2' |tr "n" " "`
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I was able fix this by removing all php related and installed again by using:
sudo apt-get purge `dpkg -l | grep php| awk 'print $2' |tr "n" " "`
I was able fix this by removing all php related and installed again by using:
sudo apt-get purge `dpkg -l | grep php| awk 'print $2' |tr "n" " "`
answered Apr 26 at 18:45
![](https://i.stack.imgur.com/xpuxZ.jpg?s=32&g=1)
![](https://i.stack.imgur.com/xpuxZ.jpg?s=32&g=1)
lucasvm1980
142
142
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028470%2funable-to-make-php-works-on-ubuntu%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
In the first formatted text block please copy/paste the complete error message, not just the tail.
â karel
Apr 26 at 16:23
I am seeing this:
libapache2-mod-php7.2
when your installing this:php7.0 libapache2-mod-php7.0 php7.0-mcrypt'. Please check your php version with
php -version` and install the right versionâ George Udosen
Apr 26 at 16:29
i have changed to 7.2 and still getting: Configurando libapache2-mod-php7.0 (7.0.29-1+ubuntu17.10.1+deb.sury.org+1) ... dpkg: error al procesar el paquete libapache2-mod-php7.0 (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1 Configurando javascript-common (11) ... dpkg: error al procesar el paquete javascript-common (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 1
â lucasvm1980
Apr 26 at 18:30