How do I install PHP7 on Ubuntu 14.04? [closed]












4















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?










share|improve this 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
















4















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?










share|improve this 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














4












4








4


3






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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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










2 Answers
2






active

oldest

votes


















11














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





share|improve this answer
























  • 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





















3














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





share|improve this answer
































    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11














    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





    share|improve this answer
























    • 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


















    11














    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





    share|improve this answer
























    • 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
















    11












    11








    11







    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





    share|improve this answer













    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






    share|improve this answer












    share|improve this answer



    share|improve this answer










    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





















    • 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















    3














    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





    share|improve this answer






























      3














      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





      share|improve this answer




























        3












        3








        3







        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





        share|improve this answer















        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






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 19 '17 at 17:14









        muru

        1




        1










        answered Jan 19 '17 at 14:41









        Mohandass MMohandass M

        496




        496















            Popular posts from this blog

            mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?