PHP 7.2 / MySQL Issue after upgrading to 18.04

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
After upgrading my servers to Ubuntu 18.04 I had a few issues.
- PHP pages were displayed as plain text, exposing code.
- Could not connect to MySQL from web pages using PHP (once the PHP issue was fixed), however could connect via the command line.
- On one server, PHP curl functions stopped working.
upgrade mysql curl php7 18.04
add a comment |Â
up vote
1
down vote
favorite
After upgrading my servers to Ubuntu 18.04 I had a few issues.
- PHP pages were displayed as plain text, exposing code.
- Could not connect to MySQL from web pages using PHP (once the PHP issue was fixed), however could connect via the command line.
- On one server, PHP curl functions stopped working.
upgrade mysql curl php7 18.04
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
After upgrading my servers to Ubuntu 18.04 I had a few issues.
- PHP pages were displayed as plain text, exposing code.
- Could not connect to MySQL from web pages using PHP (once the PHP issue was fixed), however could connect via the command line.
- On one server, PHP curl functions stopped working.
upgrade mysql curl php7 18.04
After upgrading my servers to Ubuntu 18.04 I had a few issues.
- PHP pages were displayed as plain text, exposing code.
- Could not connect to MySQL from web pages using PHP (once the PHP issue was fixed), however could connect via the command line.
- On one server, PHP curl functions stopped working.
upgrade mysql curl php7 18.04
asked Apr 27 at 2:13
Phippsy
1214
1214
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
Ubuntu 18.04 Bionic Beaver upgrades PHP to version 7.2, but does not always seem to update the modules. I've had the same issue in previous upgrades.
In my case, libapache2-mod-php7.2 was missing, so to fix that problem:
sudo apt install php7.2 php7.2-common php7.2-cli
sudo a2enmod php7.2
The issue of not being able to connect to mysql was resolved with:
apt install php7.2-mysql
And the issue of missing curl functionality was resolved with:
apt install php7.2-curl
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
Ubuntu 18.04 Bionic Beaver upgrades PHP to version 7.2, but does not always seem to update the modules. I've had the same issue in previous upgrades.
In my case, libapache2-mod-php7.2 was missing, so to fix that problem:
sudo apt install php7.2 php7.2-common php7.2-cli
sudo a2enmod php7.2
The issue of not being able to connect to mysql was resolved with:
apt install php7.2-mysql
And the issue of missing curl functionality was resolved with:
apt install php7.2-curl
add a comment |Â
up vote
1
down vote
Ubuntu 18.04 Bionic Beaver upgrades PHP to version 7.2, but does not always seem to update the modules. I've had the same issue in previous upgrades.
In my case, libapache2-mod-php7.2 was missing, so to fix that problem:
sudo apt install php7.2 php7.2-common php7.2-cli
sudo a2enmod php7.2
The issue of not being able to connect to mysql was resolved with:
apt install php7.2-mysql
And the issue of missing curl functionality was resolved with:
apt install php7.2-curl
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Ubuntu 18.04 Bionic Beaver upgrades PHP to version 7.2, but does not always seem to update the modules. I've had the same issue in previous upgrades.
In my case, libapache2-mod-php7.2 was missing, so to fix that problem:
sudo apt install php7.2 php7.2-common php7.2-cli
sudo a2enmod php7.2
The issue of not being able to connect to mysql was resolved with:
apt install php7.2-mysql
And the issue of missing curl functionality was resolved with:
apt install php7.2-curl
Ubuntu 18.04 Bionic Beaver upgrades PHP to version 7.2, but does not always seem to update the modules. I've had the same issue in previous upgrades.
In my case, libapache2-mod-php7.2 was missing, so to fix that problem:
sudo apt install php7.2 php7.2-common php7.2-cli
sudo a2enmod php7.2
The issue of not being able to connect to mysql was resolved with:
apt install php7.2-mysql
And the issue of missing curl functionality was resolved with:
apt install php7.2-curl
answered Apr 27 at 2:13
Phippsy
1214
1214
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%2f1028588%2fphp-7-2-mysql-issue-after-upgrading-to-18-04%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