How do I install PHP7 on Ubuntu 14.04? [closed]
When I try to install PHP7 form this command:
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-cgi
Then I get error:
couldn't find or unable to locate all these packages.
So I want to download php7.1 from php.net, then run with Apache. What is the process to do that? How to configure files like apache2.conf
& php.ini
to run PHP?
14.04 apache2 php php7
closed as off-topic by karel, muru, Mark Kirby, Zanna, Pilot6 Jan 20 '17 at 9:36
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, muru, Mark Kirby, Zanna, Pilot6
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
When I try to install PHP7 form this command:
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-cgi
Then I get error:
couldn't find or unable to locate all these packages.
So I want to download php7.1 from php.net, then run with Apache. What is the process to do that? How to configure files like apache2.conf
& php.ini
to run PHP?
14.04 apache2 php php7
closed as off-topic by karel, muru, Mark Kirby, Zanna, Pilot6 Jan 20 '17 at 9:36
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, muru, Mark Kirby, Zanna, Pilot6
If this question can be reworded to fit the rules in the help center, please edit the question.
2
ubuntu version?
– 13dimitar
Jan 19 '17 at 12:56
@Dimitar actually i am using LinuxMint 17.2, Ubuntu 14.04
– leecarter
Jan 19 '17 at 12:57
Sorry but we do not support Mint, official Ubuntu only. Please ask at unix.stackexchange.com
– Mark Kirby
Jan 19 '17 at 14:53
add a comment |
When I try to install PHP7 form this command:
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-cgi
Then I get error:
couldn't find or unable to locate all these packages.
So I want to download php7.1 from php.net, then run with Apache. What is the process to do that? How to configure files like apache2.conf
& php.ini
to run PHP?
14.04 apache2 php php7
When I try to install PHP7 form this command:
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-cgi
Then I get error:
couldn't find or unable to locate all these packages.
So I want to download php7.1 from php.net, then run with Apache. What is the process to do that? How to configure files like apache2.conf
& php.ini
to run PHP?
14.04 apache2 php php7
14.04 apache2 php php7
edited Jan 19 '17 at 14:36
Melebius
4,79051939
4,79051939
asked Jan 19 '17 at 12:52
leecarterleecarter
21113
21113
closed as off-topic by karel, muru, Mark Kirby, Zanna, Pilot6 Jan 20 '17 at 9:36
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, muru, Mark Kirby, Zanna, Pilot6
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by karel, muru, Mark Kirby, Zanna, Pilot6 Jan 20 '17 at 9:36
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, muru, Mark Kirby, Zanna, Pilot6
If this question can be reworded to fit the rules in the help center, please edit the question.
2
ubuntu version?
– 13dimitar
Jan 19 '17 at 12:56
@Dimitar actually i am using LinuxMint 17.2, Ubuntu 14.04
– leecarter
Jan 19 '17 at 12:57
Sorry but we do not support Mint, official Ubuntu only. Please ask at unix.stackexchange.com
– Mark Kirby
Jan 19 '17 at 14:53
add a comment |
2
ubuntu version?
– 13dimitar
Jan 19 '17 at 12:56
@Dimitar actually i am using LinuxMint 17.2, Ubuntu 14.04
– leecarter
Jan 19 '17 at 12:57
Sorry but we do not support Mint, official Ubuntu only. Please ask at unix.stackexchange.com
– Mark Kirby
Jan 19 '17 at 14:53
2
2
ubuntu version?
– 13dimitar
Jan 19 '17 at 12:56
ubuntu version?
– 13dimitar
Jan 19 '17 at 12:56
@Dimitar actually i am using LinuxMint 17.2, Ubuntu 14.04
– leecarter
Jan 19 '17 at 12:57
@Dimitar actually i am using LinuxMint 17.2, Ubuntu 14.04
– leecarter
Jan 19 '17 at 12:57
Sorry but we do not support Mint, official Ubuntu only. Please ask at unix.stackexchange.com
– Mark Kirby
Jan 19 '17 at 14:53
Sorry but we do not support Mint, official Ubuntu only. Please ask at unix.stackexchange.com
– Mark Kirby
Jan 19 '17 at 14:53
add a comment |
2 Answers
2
active
oldest
votes
You need to add additional repository, as php7 is not available for your distro version. Please make sure to clean all php packages and dependencies you have installed. Then proceed with:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
Thanks but i want manually like download folder than run
– leecarter
Jan 19 '17 at 13:02
2
@leecarter Ehm, why would anyone bother to do so while having APT?
– Melebius
Jan 19 '17 at 14:14
Doesn't seem to be working anymore, I'm getting:Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct.
– Piyin
Jun 27 '17 at 21:20
add a comment |
Type the following command:
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
Or:
sudo add-apt-repository ppa:ondrej/php
Update the package index. To resynchronize the package index files from their sources, enter:
sudo apt-get update
List all PHP 7 packages
Type the following apt-cache command:
apt-cache search php7
Install PHP 7
Type the following command to install PHP 7 along with useful php modules such as MySQL, GD, curl and so on:
sudo apt-get install php7.0
Or
sudo apt-get install php7.0 php7.0-cli php7.0-fpm php7.0-gd
php7.0-json php7.0-mysql php7.0-readline
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to add additional repository, as php7 is not available for your distro version. Please make sure to clean all php packages and dependencies you have installed. Then proceed with:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
Thanks but i want manually like download folder than run
– leecarter
Jan 19 '17 at 13:02
2
@leecarter Ehm, why would anyone bother to do so while having APT?
– Melebius
Jan 19 '17 at 14:14
Doesn't seem to be working anymore, I'm getting:Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct.
– Piyin
Jun 27 '17 at 21:20
add a comment |
You need to add additional repository, as php7 is not available for your distro version. Please make sure to clean all php packages and dependencies you have installed. Then proceed with:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
Thanks but i want manually like download folder than run
– leecarter
Jan 19 '17 at 13:02
2
@leecarter Ehm, why would anyone bother to do so while having APT?
– Melebius
Jan 19 '17 at 14:14
Doesn't seem to be working anymore, I'm getting:Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct.
– Piyin
Jun 27 '17 at 21:20
add a comment |
You need to add additional repository, as php7 is not available for your distro version. Please make sure to clean all php packages and dependencies you have installed. Then proceed with:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
You need to add additional repository, as php7 is not available for your distro version. Please make sure to clean all php packages and dependencies you have installed. Then proceed with:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
answered Jan 19 '17 at 13:01
13dimitar13dimitar
797410
797410
Thanks but i want manually like download folder than run
– leecarter
Jan 19 '17 at 13:02
2
@leecarter Ehm, why would anyone bother to do so while having APT?
– Melebius
Jan 19 '17 at 14:14
Doesn't seem to be working anymore, I'm getting:Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct.
– Piyin
Jun 27 '17 at 21:20
add a comment |
Thanks but i want manually like download folder than run
– leecarter
Jan 19 '17 at 13:02
2
@leecarter Ehm, why would anyone bother to do so while having APT?
– Melebius
Jan 19 '17 at 14:14
Doesn't seem to be working anymore, I'm getting:Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct.
– Piyin
Jun 27 '17 at 21:20
Thanks but i want manually like download folder than run
– leecarter
Jan 19 '17 at 13:02
Thanks but i want manually like download folder than run
– leecarter
Jan 19 '17 at 13:02
2
2
@leecarter Ehm, why would anyone bother to do so while having APT?
– Melebius
Jan 19 '17 at 14:14
@leecarter Ehm, why would anyone bother to do so while having APT?
– Melebius
Jan 19 '17 at 14:14
Doesn't seem to be working anymore, I'm getting:
Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct.
– Piyin
Jun 27 '17 at 21:20
Doesn't seem to be working anymore, I'm getting:
Cannot add PPA: 'ppa:ondrej/php'. Please check that the PPA name or format is correct.
– Piyin
Jun 27 '17 at 21:20
add a comment |
Type the following command:
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
Or:
sudo add-apt-repository ppa:ondrej/php
Update the package index. To resynchronize the package index files from their sources, enter:
sudo apt-get update
List all PHP 7 packages
Type the following apt-cache command:
apt-cache search php7
Install PHP 7
Type the following command to install PHP 7 along with useful php modules such as MySQL, GD, curl and so on:
sudo apt-get install php7.0
Or
sudo apt-get install php7.0 php7.0-cli php7.0-fpm php7.0-gd
php7.0-json php7.0-mysql php7.0-readline
add a comment |
Type the following command:
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
Or:
sudo add-apt-repository ppa:ondrej/php
Update the package index. To resynchronize the package index files from their sources, enter:
sudo apt-get update
List all PHP 7 packages
Type the following apt-cache command:
apt-cache search php7
Install PHP 7
Type the following command to install PHP 7 along with useful php modules such as MySQL, GD, curl and so on:
sudo apt-get install php7.0
Or
sudo apt-get install php7.0 php7.0-cli php7.0-fpm php7.0-gd
php7.0-json php7.0-mysql php7.0-readline
add a comment |
Type the following command:
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
Or:
sudo add-apt-repository ppa:ondrej/php
Update the package index. To resynchronize the package index files from their sources, enter:
sudo apt-get update
List all PHP 7 packages
Type the following apt-cache command:
apt-cache search php7
Install PHP 7
Type the following command to install PHP 7 along with useful php modules such as MySQL, GD, curl and so on:
sudo apt-get install php7.0
Or
sudo apt-get install php7.0 php7.0-cli php7.0-fpm php7.0-gd
php7.0-json php7.0-mysql php7.0-readline
Type the following command:
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
Or:
sudo add-apt-repository ppa:ondrej/php
Update the package index. To resynchronize the package index files from their sources, enter:
sudo apt-get update
List all PHP 7 packages
Type the following apt-cache command:
apt-cache search php7
Install PHP 7
Type the following command to install PHP 7 along with useful php modules such as MySQL, GD, curl and so on:
sudo apt-get install php7.0
Or
sudo apt-get install php7.0 php7.0-cli php7.0-fpm php7.0-gd
php7.0-json php7.0-mysql php7.0-readline
edited Jan 19 '17 at 17:14
muru
1
1
answered Jan 19 '17 at 14:41
Mohandass MMohandass M
496
496
add a comment |
add a comment |
2
ubuntu version?
– 13dimitar
Jan 19 '17 at 12:56
@Dimitar actually i am using LinuxMint 17.2, Ubuntu 14.04
– leecarter
Jan 19 '17 at 12:57
Sorry but we do not support Mint, official Ubuntu only. Please ask at unix.stackexchange.com
– Mark Kirby
Jan 19 '17 at 14:53