What's the easiest way to set up a LAMP stack?How to Install LAMP server on UbuntuLubuntu & LAMP...

Why does Kotter return in Welcome Back Kotter?

Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?

Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?

What are these boxed doors outside store fronts in New York?

Can a vampire attack twice with their claws using Multiattack?

Which country benefited the most from UN Security Council vetoes?

Today is the Center

Why do I get two different answers for this counting problem?

Arrow those variables!

strTok function (thread safe, supports empty tokens, doesn't change string)

RSA: Danger of using p to create q

Modeling an IP Address

Could an aircraft fly or hover using only jets of compressed air?

Can you really stack all of this on an Opportunity Attack?

How can bays and straits be determined in a procedurally generated map?

How can I make my BBEG immortal short of making them a Lich or Vampire?

What is the word for reserving something for yourself before others do?

How much RAM could one put in a typical 80386 setup?

What's the point of deactivating Num Lock on login screens?

Is it legal for company to use my work email to pretend I still work there?

How to format long polynomial?

Convert two switches to a dual stack, and add outlet - possible here?

Is it possible to do 50 km distance without any previous training?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?



What's the easiest way to set up a LAMP stack?


How to Install LAMP server on UbuntuLubuntu & LAMP server?Installing LAMPPWeb Server on Ubuntu 16.04?Can't install WampServerWhat Is the Best UBUNTU script for installing LAMPEasy installation of wordpress?How to install LAMP server in Ubuntu 16.04 and add www document root to user's home?How can I install apache, mysql, php on ubuntu desktopHow do I install Apache and PHP on 11.10?How to move a LAMP setup to a new Ubuntu server?How to set up directory backup?“on demand” LAMP stackEasiest way to assign a static IP address for a LAMP server / VBox snapshotWebsite not running on Ubuntu after installing LAMP StackWhy does my web site have to specify the .php extension in the URILAMP stack in UbuntuDifference between Ubuntu LTS and normal version in terms of packages offeredHow to migrate from PHP 5.5.* to PHP 7.0.* and upgrade the entire LAMP stack on Ubuntu Linux 12.04 LTS(64-bit) operating system?How to remove LAMPP packages?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







124















I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).










share|improve this question































    124















    I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).










    share|improve this question



























      124












      124








      124


      61






      I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).










      share|improve this question
















      I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).







      software-installation lamp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 26 '16 at 0:34









      Kaz Wolfe

      26.1k1376136




      26.1k1376136










      asked Jul 28 '10 at 19:37









      jerhinesmithjerhinesmith

      9682911




      9682911






















          18 Answers
          18






          active

          oldest

          votes


















          121














          sudo apt-get update
          sudo apt-get install tasksel
          sudo tasksel install lamp-server


          It will install all the basic LAMP stack for you, prompt for MySQL root password, etc.



          More specifically it will install the following packages, and their dependencies.



          mysql-client-core-5.1 libwrap0 apache2  
          libaprutil1-dbd-sqlite3 tcpd
          libapache2-mod-php5 apache2.2-common
          apache2-utils php5-common
          libaprutil1-ldap libaprutil1
          php5-mysql mysql-server-core-5.1
          libdbi-perl libplrpc-perl mysql-server
          apache2.2-bin libdbd-mysql-perl
          libhtml-template-perl
          libnet-daemon-perl libapr1
          mysql-server-5.1 libmysqlclient16
          ssl-cert apache2-mpm-prefork
          mysql-common mysql-client-5.1


          You might also want to take a peek at the Ubuntu Server Guide.






          share|improve this answer





















          • 3





            You might want to consider APT tasks rather than tasksel to do this. See this: Should I use tasksel, tasks in APT or install regular metapackages?

            – gertvdijk
            Jul 21 '13 at 15:15











          • @andol how to install phpmyadmin with this

            – Dinesh
            Jan 31 '17 at 10:52











          • @andol E: Package 'php5' has no installation candidate, E: Package 'libapache2-mod-php5' has no installation candidate, E: Unable to locate package libapache2-mod-auth-mysql and E: Package 'php5-mysql' has no installation candidate How do I over come this?

            – 3kstc
            Jan 27 at 10:20





















          31














          Install Apache



          sudo apt-get install apache2


          Install PHP



          sudo apt-get install php5 libapache2-mod-php5


          As fo 16.04, the number is dropped:



          sudo apt-get install php libapache2-mod-php


          Install MySQL



          sudo apt-get install mysql-server


          Install phpMyAdmin



          sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


          As with the PHP installation, in 16.04, the number is dropped:



          sudo apt-get install libapache2-mod-auth-mysql php-mysql phpmyadmin


          Combined installation



          16.04:



          sudo apt-get install apache2 php libapache2-mod-php mysql-server libapache2-mod-auth-mysql php-mysql phpmyadmin


          Before 16.04:



          sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin





          share|improve this answer


























          • Note: phpMyAdmin also requires packages php-gettext and php-mbstring

            – Geore Shg
            Jun 26 '16 at 0:52






          • 2





            according to stackoverflow.com/a/21762418/3160597 libapache2-mod-auth-mysql is no longer needed in 16.04

            – azerafati
            Jan 23 '17 at 8:58





















          28














          The easiest way to install LAMP with PHPMyAdmin is using:



          sudo apt-get  install lamp-server^ phpmyadmin 


          You don't even need to install taskel. More details can be found here, which gives this:



          To access PHPMyAdmin, open terminal & type:



          sudo -H gedit /etc/apache2/apache2.conf


          Add this line somewhere in that file:



          Include /etc/phpmyadmin/apache.conf 


          Finally restart Apache using:



          /etc/init.d/apache2 restart


          or



          sudo service apache2 restart





          share|improve this answer





















          • 5





            I'd recommend APT Tasks too. Note that the caret (^) is not a typo in this answer. See also: Should I use tasksel, tasks in APT or install regular metapackages?

            – gertvdijk
            Jul 21 '13 at 15:14











          • Whilst the usage of tasksel seems to be "easier", this should be the very easy way to do this task. This answer doesn't need other steps to do the job. Thank you!

            – Geppettvs D'Constanzo
            Feb 28 '16 at 15:24











          • Your link is dead. This is a good reason why we should always include a brief summary of what is in a link.

            – WinEunuuchs2Unix
            Dec 25 '16 at 22:48



















          15














          In Synaptic, click edit and mark by task. Then select LAMP Server and hit apply. Done.






          share|improve this answer
























          • +1 for providing a slightly more GUI:ish solution, even if it's not necessarily available on a VPS.

            – andol
            Jul 31 '10 at 6:25



















          10














          I personally always find that installing the MySQL server and then PHPMyAdmin will install all the parts I need



          sudo apt-get install mysql-server


          (doing this first means it asks for the root account password to be set in advance)



          then



          sudo apt-get install phpmyadmin


          It also gives you all the tools you'll need to administrate your MySQL server once it's installed :)






          share|improve this answer

































            10














            On commandline the simplest way is probably to use tasksel:



            sudo tasksel install lamp-server





            share|improve this answer

































              4














              The packages are apache2 and libapache2-mod-php5. php5 has a number of additional modules, you may need some. List them with apt-cache search php5



              Try revising your search or



              sudo apt-get install apache2 libapache2-mod-php5


              Enable php5 with



              sudo a2enmod php5


              Restart apache



              sudo service apache2 restart


              The following wiki pages can be very helpful if you are starting with apache.



              https://help.ubuntu.com/community/ApacheMySQLPHP



              https://help.ubuntu.com/11.10/serverguide/C/httpd.html



              Note- This answer was migrated from elsewhere. To add mysql install



              sudo apt-get install mysql-server php5-mysql





              share|improve this answer

































                2














                http://www.apachefriends.org/en/xampp-linux.html



                It has LAMP as well as phpmyadmin integrated along with perl modules. Installs in /opt/lampp so can be installed/removed easily...






                share|improve this answer































                  2














                  My Swiss Army knife command:



                  sudo apt-get install apache2 mysql-server mysql-client libapache2-mod-auth-mysql php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-curl php5-cli php5-gd phpmyadmin





                  share|improve this answer

































                    1














                    PHP7.0 is standard on Ubuntu 16+



                    Heres the rundown:



                    1 As Always



                     sudo apt-get update


                    2 Install Apache2



                     sudo apt-get install apache2


                    3 Install mysql-server



                     sudo apt-get install mysql-server


                    4 Install PHP 7.0



                     sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php-mbstring php7.0-mbstring php-gettext php7.0-json php-xml
                    sudo a2enmod php7.0


                    5 Install phpmyadmin



                     sudo apt-get install mcrypt
                    sudo apt-get install phpmyadmin


                    Note, you'll need to add Include /etc/phpmyadmin/apache.conf to the file you'll open with the following command. (credit)



                     sudo gedit /etc/apache2/apache2.conf 


                    Optional



                     sudo a2enmod rewrite





                    share|improve this answer

































                      1














                      Open terminal



                      Ctrl + Alt + T



                      Type



                      sudo apt install synaptic


                      This will install synaptic on your system



                      Type



                      sudo synaptic 


                      to open it.



                      enter image description here



                      Go to search box



                      enter image description here



                      enter image description here



                      In the search field type apache and click on Search button



                      enter image description here



                      The following field appears



                      enter image description here



                      Scroll down to Apache2 and select the box left to it.



                      enter image description here



                      Click on apply



                      enter image description here



                      Select all dependencies and follow on screen instructions to install.



                      In a similar way install



                      php7.0 and mysql-server one by one



                      During installation of mysql-server system asks for root password. Provide it.



                      After everything is complete, close synaptic.



                      Now open your browser and in the address bar type localhost and press Enter



                      If the following page appears



                      enter image description here



                      then Apache2 installation is successfull



                      In terminal type



                      apt install vim
                      cd /var/www/html
                      vim testphp.php


                      Press



                      i



                      Type



                      <?php phpinfo(); ?>


                      Press



                      Esc : x Enter



                      Go to your browser and in the address bar type localhost/testphp.php



                      If the following page appears



                      enter image description here



                      Then php7.0 installation is successfull



                      Go to terminal and type



                      mysql --version


                      If you get the following prompt (version numbers for you system may be different):



                      mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper


                      Then your mysql-server installation is successful.



                      Type



                      mysql -u root -p


                      You will get:



                      Enter password:


                      Give the password.



                      If you get the following prompt



                      enter image description here



                      Then you are now successfully able to login



                      Type



                      mysql> quit


                      to logout.



                      Congratulations, you now have a full working LAMP Stack



                      Optional:



                      You can also install phpmyadmin using synaptic. During installation it will ask for default server to use. Select apache2. Follow other on screen instructions.



                      Then open your browser and in the address bar type localhost/phpmyadmin



                      The following page appears



                      enter image description here



                      In the username field type root and in the password field type the password for root user you have selected during mysql-server installation.



                      Click on Go button.



                      The following page appears



                      enter image description here



                      Now you have successfully installed phpmyadmin on your system.






                      share|improve this answer































                        0














                        You can install Bitnami lampstack.(Package containing all necessary sub packages of LAMP).



                        First of all create an account in bitnami website to download the bitnami-lampstack-5.5.30-1-linux-x64-installer.run file.
                        Then copy the file to your desktop (for convenience ). To provide read and exicution permission, Open terminal (Ctrl + Alt + T).
                        and type



                        chmod 755 chmod  755 'location of bitnami-lampstack-5.5.30-1-linux-x64-installer.run


                        Better drag and drop the .run file from your desktop after typing chmod 755, press enter.



                        Now double click on the .run file. It will guide you through the installation process.



                        Thank you.






                        share|improve this answer































                          0














                          I have a script for this task: lampi



                          Usage:



                          sudo lampi -i -s -n example.com.local -dr ~/example-site


                          What does it do:




                          1. Install the LAMP stack (-i flag)

                          2. Setup and configure apache2, mysql, php, phpmyadmin

                          3. Then set up a custom site named example.com.local (-n option)

                          4. Set ~/example-site directory as it's document root (-dr option)

                          5. Enable SSL (https) for this site (-s flag)


                          Now, the site can be accessed with http://example.com.local or https://example.com.local






                          share|improve this answer


























                          • Unless you post the script here i can't see any use of this answer..

                            – heemayl
                            Jun 26 '16 at 18:49











                          • @heemayl : seriously? you want me to dump a ~350 line code here... If you are really interested, you should follow through the link and go to the github project page.

                            – Jahid
                            Jun 26 '16 at 18:53











                          • Can you guarantee that the script won't be removed in the future? Again its link only answer AFAICS. Also you should give the link to github directly, any subtle advertising is highly discouraged..Perhaps you should go through the related meta posts first..

                            – heemayl
                            Jun 26 '16 at 18:56











                          • @heemayl : I agree on giving a direct link to github but not on it being a link only answer. I have put the code that needs to be run and explained well enough to follow through for anyone...

                            – Jahid
                            Jun 26 '16 at 19:00



















                          0














                          If you are on unbuntu 16, it is simple with one command:



                          sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql phpmyadmin


                          And just follow the instruction on screen to enter password for mysql, phpmyadmin configuration



                          You can see more details on my blog http://tvivu.com/install-lamp-stack-ubuntu-16-04/






                          share|improve this answer































                            0














                            Follow All Steps



                            sudo apt-get update
                            sudo apt-get install apache2
                            sudo apt-get install mysql-server
                            sudo apt install php7.0-cli
                            sudo apt-get install phpmyadmin php-mbstring php-gettext
                            sudo phpenmod mcrypt
                            sudo phpenmod mbstring
                            sudo systemctl restart apache2
                            sudo apt-get update


                            (Note If phpmyadmin is not working after Than Try this last three line code)



                            gksu gedit /etc/apache2/apache2.conf
                            /etc/init.d/apache2 restart
                            sudo apt-get install gksu^C





                            share|improve this answer

































                              0














                              I have a made an easy to use, simple bash script that installs LAMP stack on your system automatically.



                              Just run this command in your terminal to use the bash script:





                              wget --no-cache -O - https://gist.github.com/EmpireWorld/737fbb9f403d4dd66dee1364d866ba7e/raw/install-lamp.sh | bash


                              Also phpMyAdmin installation included in the gist.



                              Check out the Gist






                              share|improve this answer































                                -1














                                Install Wordpress in Computer/Laptop Click the Link Below to Watch



                                https://www.pkilm.com/2019/04/how-to-install-wordpress-in-pc-laptop.html



                                Also Visit www.pkilm.com for more Tips and Tricks






                                share|improve this answer








                                New contributor




                                bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                Check out our Code of Conduct.




























                                  -7














                                  Try EHCP (easy hosting control panel) ...



                                  ehcp installation on a clean server will do the dirty job for you ...






                                  share|improve this answer
























                                    Your Answer








                                    StackExchange.ready(function() {
                                    var channelOptions = {
                                    tags: "".split(" "),
                                    id: "89"
                                    };
                                    initTagRenderer("".split(" "), "".split(" "), channelOptions);

                                    StackExchange.using("externalEditor", function() {
                                    // Have to fire editor after snippets, if snippets enabled
                                    if (StackExchange.settings.snippets.snippetsEnabled) {
                                    StackExchange.using("snippets", function() {
                                    createEditor();
                                    });
                                    }
                                    else {
                                    createEditor();
                                    }
                                    });

                                    function createEditor() {
                                    StackExchange.prepareEditor({
                                    heartbeatType: 'answer',
                                    autoActivateHeartbeat: false,
                                    convertImagesToLinks: true,
                                    noModals: true,
                                    showLowRepImageUploadWarning: true,
                                    reputationToPostImages: 10,
                                    bindNavPrevention: true,
                                    postfix: "",
                                    imageUploader: {
                                    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                                    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                                    allowUrls: true
                                    },
                                    onDemand: true,
                                    discardSelector: ".discard-answer"
                                    ,immediatelyShowMarkdownHelp:true
                                    });


                                    }
                                    });














                                    draft saved

                                    draft discarded


















                                    StackExchange.ready(
                                    function () {
                                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f34%2fwhats-the-easiest-way-to-set-up-a-lamp-stack%23new-answer', 'question_page');
                                    }
                                    );

                                    Post as a guest















                                    Required, but never shown

























                                    18 Answers
                                    18






                                    active

                                    oldest

                                    votes








                                    18 Answers
                                    18






                                    active

                                    oldest

                                    votes









                                    active

                                    oldest

                                    votes






                                    active

                                    oldest

                                    votes









                                    121














                                    sudo apt-get update
                                    sudo apt-get install tasksel
                                    sudo tasksel install lamp-server


                                    It will install all the basic LAMP stack for you, prompt for MySQL root password, etc.



                                    More specifically it will install the following packages, and their dependencies.



                                    mysql-client-core-5.1 libwrap0 apache2  
                                    libaprutil1-dbd-sqlite3 tcpd
                                    libapache2-mod-php5 apache2.2-common
                                    apache2-utils php5-common
                                    libaprutil1-ldap libaprutil1
                                    php5-mysql mysql-server-core-5.1
                                    libdbi-perl libplrpc-perl mysql-server
                                    apache2.2-bin libdbd-mysql-perl
                                    libhtml-template-perl
                                    libnet-daemon-perl libapr1
                                    mysql-server-5.1 libmysqlclient16
                                    ssl-cert apache2-mpm-prefork
                                    mysql-common mysql-client-5.1


                                    You might also want to take a peek at the Ubuntu Server Guide.






                                    share|improve this answer





















                                    • 3





                                      You might want to consider APT tasks rather than tasksel to do this. See this: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:15











                                    • @andol how to install phpmyadmin with this

                                      – Dinesh
                                      Jan 31 '17 at 10:52











                                    • @andol E: Package 'php5' has no installation candidate, E: Package 'libapache2-mod-php5' has no installation candidate, E: Unable to locate package libapache2-mod-auth-mysql and E: Package 'php5-mysql' has no installation candidate How do I over come this?

                                      – 3kstc
                                      Jan 27 at 10:20


















                                    121














                                    sudo apt-get update
                                    sudo apt-get install tasksel
                                    sudo tasksel install lamp-server


                                    It will install all the basic LAMP stack for you, prompt for MySQL root password, etc.



                                    More specifically it will install the following packages, and their dependencies.



                                    mysql-client-core-5.1 libwrap0 apache2  
                                    libaprutil1-dbd-sqlite3 tcpd
                                    libapache2-mod-php5 apache2.2-common
                                    apache2-utils php5-common
                                    libaprutil1-ldap libaprutil1
                                    php5-mysql mysql-server-core-5.1
                                    libdbi-perl libplrpc-perl mysql-server
                                    apache2.2-bin libdbd-mysql-perl
                                    libhtml-template-perl
                                    libnet-daemon-perl libapr1
                                    mysql-server-5.1 libmysqlclient16
                                    ssl-cert apache2-mpm-prefork
                                    mysql-common mysql-client-5.1


                                    You might also want to take a peek at the Ubuntu Server Guide.






                                    share|improve this answer





















                                    • 3





                                      You might want to consider APT tasks rather than tasksel to do this. See this: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:15











                                    • @andol how to install phpmyadmin with this

                                      – Dinesh
                                      Jan 31 '17 at 10:52











                                    • @andol E: Package 'php5' has no installation candidate, E: Package 'libapache2-mod-php5' has no installation candidate, E: Unable to locate package libapache2-mod-auth-mysql and E: Package 'php5-mysql' has no installation candidate How do I over come this?

                                      – 3kstc
                                      Jan 27 at 10:20
















                                    121












                                    121








                                    121







                                    sudo apt-get update
                                    sudo apt-get install tasksel
                                    sudo tasksel install lamp-server


                                    It will install all the basic LAMP stack for you, prompt for MySQL root password, etc.



                                    More specifically it will install the following packages, and their dependencies.



                                    mysql-client-core-5.1 libwrap0 apache2  
                                    libaprutil1-dbd-sqlite3 tcpd
                                    libapache2-mod-php5 apache2.2-common
                                    apache2-utils php5-common
                                    libaprutil1-ldap libaprutil1
                                    php5-mysql mysql-server-core-5.1
                                    libdbi-perl libplrpc-perl mysql-server
                                    apache2.2-bin libdbd-mysql-perl
                                    libhtml-template-perl
                                    libnet-daemon-perl libapr1
                                    mysql-server-5.1 libmysqlclient16
                                    ssl-cert apache2-mpm-prefork
                                    mysql-common mysql-client-5.1


                                    You might also want to take a peek at the Ubuntu Server Guide.






                                    share|improve this answer















                                    sudo apt-get update
                                    sudo apt-get install tasksel
                                    sudo tasksel install lamp-server


                                    It will install all the basic LAMP stack for you, prompt for MySQL root password, etc.



                                    More specifically it will install the following packages, and their dependencies.



                                    mysql-client-core-5.1 libwrap0 apache2  
                                    libaprutil1-dbd-sqlite3 tcpd
                                    libapache2-mod-php5 apache2.2-common
                                    apache2-utils php5-common
                                    libaprutil1-ldap libaprutil1
                                    php5-mysql mysql-server-core-5.1
                                    libdbi-perl libplrpc-perl mysql-server
                                    apache2.2-bin libdbd-mysql-perl
                                    libhtml-template-perl
                                    libnet-daemon-perl libapr1
                                    mysql-server-5.1 libmysqlclient16
                                    ssl-cert apache2-mpm-prefork
                                    mysql-common mysql-client-5.1


                                    You might also want to take a peek at the Ubuntu Server Guide.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Mar 30 '16 at 0:31

























                                    answered Jul 28 '10 at 19:41









                                    andolandol

                                    5,74822731




                                    5,74822731








                                    • 3





                                      You might want to consider APT tasks rather than tasksel to do this. See this: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:15











                                    • @andol how to install phpmyadmin with this

                                      – Dinesh
                                      Jan 31 '17 at 10:52











                                    • @andol E: Package 'php5' has no installation candidate, E: Package 'libapache2-mod-php5' has no installation candidate, E: Unable to locate package libapache2-mod-auth-mysql and E: Package 'php5-mysql' has no installation candidate How do I over come this?

                                      – 3kstc
                                      Jan 27 at 10:20
















                                    • 3





                                      You might want to consider APT tasks rather than tasksel to do this. See this: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:15











                                    • @andol how to install phpmyadmin with this

                                      – Dinesh
                                      Jan 31 '17 at 10:52











                                    • @andol E: Package 'php5' has no installation candidate, E: Package 'libapache2-mod-php5' has no installation candidate, E: Unable to locate package libapache2-mod-auth-mysql and E: Package 'php5-mysql' has no installation candidate How do I over come this?

                                      – 3kstc
                                      Jan 27 at 10:20










                                    3




                                    3





                                    You might want to consider APT tasks rather than tasksel to do this. See this: Should I use tasksel, tasks in APT or install regular metapackages?

                                    – gertvdijk
                                    Jul 21 '13 at 15:15





                                    You might want to consider APT tasks rather than tasksel to do this. See this: Should I use tasksel, tasks in APT or install regular metapackages?

                                    – gertvdijk
                                    Jul 21 '13 at 15:15













                                    @andol how to install phpmyadmin with this

                                    – Dinesh
                                    Jan 31 '17 at 10:52





                                    @andol how to install phpmyadmin with this

                                    – Dinesh
                                    Jan 31 '17 at 10:52













                                    @andol E: Package 'php5' has no installation candidate, E: Package 'libapache2-mod-php5' has no installation candidate, E: Unable to locate package libapache2-mod-auth-mysql and E: Package 'php5-mysql' has no installation candidate How do I over come this?

                                    – 3kstc
                                    Jan 27 at 10:20







                                    @andol E: Package 'php5' has no installation candidate, E: Package 'libapache2-mod-php5' has no installation candidate, E: Unable to locate package libapache2-mod-auth-mysql and E: Package 'php5-mysql' has no installation candidate How do I over come this?

                                    – 3kstc
                                    Jan 27 at 10:20















                                    31














                                    Install Apache



                                    sudo apt-get install apache2


                                    Install PHP



                                    sudo apt-get install php5 libapache2-mod-php5


                                    As fo 16.04, the number is dropped:



                                    sudo apt-get install php libapache2-mod-php


                                    Install MySQL



                                    sudo apt-get install mysql-server


                                    Install phpMyAdmin



                                    sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


                                    As with the PHP installation, in 16.04, the number is dropped:



                                    sudo apt-get install libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Combined installation



                                    16.04:



                                    sudo apt-get install apache2 php libapache2-mod-php mysql-server libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Before 16.04:



                                    sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin





                                    share|improve this answer


























                                    • Note: phpMyAdmin also requires packages php-gettext and php-mbstring

                                      – Geore Shg
                                      Jun 26 '16 at 0:52






                                    • 2





                                      according to stackoverflow.com/a/21762418/3160597 libapache2-mod-auth-mysql is no longer needed in 16.04

                                      – azerafati
                                      Jan 23 '17 at 8:58


















                                    31














                                    Install Apache



                                    sudo apt-get install apache2


                                    Install PHP



                                    sudo apt-get install php5 libapache2-mod-php5


                                    As fo 16.04, the number is dropped:



                                    sudo apt-get install php libapache2-mod-php


                                    Install MySQL



                                    sudo apt-get install mysql-server


                                    Install phpMyAdmin



                                    sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


                                    As with the PHP installation, in 16.04, the number is dropped:



                                    sudo apt-get install libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Combined installation



                                    16.04:



                                    sudo apt-get install apache2 php libapache2-mod-php mysql-server libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Before 16.04:



                                    sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin





                                    share|improve this answer


























                                    • Note: phpMyAdmin also requires packages php-gettext and php-mbstring

                                      – Geore Shg
                                      Jun 26 '16 at 0:52






                                    • 2





                                      according to stackoverflow.com/a/21762418/3160597 libapache2-mod-auth-mysql is no longer needed in 16.04

                                      – azerafati
                                      Jan 23 '17 at 8:58
















                                    31












                                    31








                                    31







                                    Install Apache



                                    sudo apt-get install apache2


                                    Install PHP



                                    sudo apt-get install php5 libapache2-mod-php5


                                    As fo 16.04, the number is dropped:



                                    sudo apt-get install php libapache2-mod-php


                                    Install MySQL



                                    sudo apt-get install mysql-server


                                    Install phpMyAdmin



                                    sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


                                    As with the PHP installation, in 16.04, the number is dropped:



                                    sudo apt-get install libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Combined installation



                                    16.04:



                                    sudo apt-get install apache2 php libapache2-mod-php mysql-server libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Before 16.04:



                                    sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin





                                    share|improve this answer















                                    Install Apache



                                    sudo apt-get install apache2


                                    Install PHP



                                    sudo apt-get install php5 libapache2-mod-php5


                                    As fo 16.04, the number is dropped:



                                    sudo apt-get install php libapache2-mod-php


                                    Install MySQL



                                    sudo apt-get install mysql-server


                                    Install phpMyAdmin



                                    sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


                                    As with the PHP installation, in 16.04, the number is dropped:



                                    sudo apt-get install libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Combined installation



                                    16.04:



                                    sudo apt-get install apache2 php libapache2-mod-php mysql-server libapache2-mod-auth-mysql php-mysql phpmyadmin


                                    Before 16.04:



                                    sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin






                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Jun 4 '16 at 21:42









                                    muru

                                    1




                                    1










                                    answered Apr 13 '13 at 20:23









                                    SniperSniper

                                    33035




                                    33035













                                    • Note: phpMyAdmin also requires packages php-gettext and php-mbstring

                                      – Geore Shg
                                      Jun 26 '16 at 0:52






                                    • 2





                                      according to stackoverflow.com/a/21762418/3160597 libapache2-mod-auth-mysql is no longer needed in 16.04

                                      – azerafati
                                      Jan 23 '17 at 8:58





















                                    • Note: phpMyAdmin also requires packages php-gettext and php-mbstring

                                      – Geore Shg
                                      Jun 26 '16 at 0:52






                                    • 2





                                      according to stackoverflow.com/a/21762418/3160597 libapache2-mod-auth-mysql is no longer needed in 16.04

                                      – azerafati
                                      Jan 23 '17 at 8:58



















                                    Note: phpMyAdmin also requires packages php-gettext and php-mbstring

                                    – Geore Shg
                                    Jun 26 '16 at 0:52





                                    Note: phpMyAdmin also requires packages php-gettext and php-mbstring

                                    – Geore Shg
                                    Jun 26 '16 at 0:52




                                    2




                                    2





                                    according to stackoverflow.com/a/21762418/3160597 libapache2-mod-auth-mysql is no longer needed in 16.04

                                    – azerafati
                                    Jan 23 '17 at 8:58







                                    according to stackoverflow.com/a/21762418/3160597 libapache2-mod-auth-mysql is no longer needed in 16.04

                                    – azerafati
                                    Jan 23 '17 at 8:58













                                    28














                                    The easiest way to install LAMP with PHPMyAdmin is using:



                                    sudo apt-get  install lamp-server^ phpmyadmin 


                                    You don't even need to install taskel. More details can be found here, which gives this:



                                    To access PHPMyAdmin, open terminal & type:



                                    sudo -H gedit /etc/apache2/apache2.conf


                                    Add this line somewhere in that file:



                                    Include /etc/phpmyadmin/apache.conf 


                                    Finally restart Apache using:



                                    /etc/init.d/apache2 restart


                                    or



                                    sudo service apache2 restart





                                    share|improve this answer





















                                    • 5





                                      I'd recommend APT Tasks too. Note that the caret (^) is not a typo in this answer. See also: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:14











                                    • Whilst the usage of tasksel seems to be "easier", this should be the very easy way to do this task. This answer doesn't need other steps to do the job. Thank you!

                                      – Geppettvs D'Constanzo
                                      Feb 28 '16 at 15:24











                                    • Your link is dead. This is a good reason why we should always include a brief summary of what is in a link.

                                      – WinEunuuchs2Unix
                                      Dec 25 '16 at 22:48
















                                    28














                                    The easiest way to install LAMP with PHPMyAdmin is using:



                                    sudo apt-get  install lamp-server^ phpmyadmin 


                                    You don't even need to install taskel. More details can be found here, which gives this:



                                    To access PHPMyAdmin, open terminal & type:



                                    sudo -H gedit /etc/apache2/apache2.conf


                                    Add this line somewhere in that file:



                                    Include /etc/phpmyadmin/apache.conf 


                                    Finally restart Apache using:



                                    /etc/init.d/apache2 restart


                                    or



                                    sudo service apache2 restart





                                    share|improve this answer





















                                    • 5





                                      I'd recommend APT Tasks too. Note that the caret (^) is not a typo in this answer. See also: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:14











                                    • Whilst the usage of tasksel seems to be "easier", this should be the very easy way to do this task. This answer doesn't need other steps to do the job. Thank you!

                                      – Geppettvs D'Constanzo
                                      Feb 28 '16 at 15:24











                                    • Your link is dead. This is a good reason why we should always include a brief summary of what is in a link.

                                      – WinEunuuchs2Unix
                                      Dec 25 '16 at 22:48














                                    28












                                    28








                                    28







                                    The easiest way to install LAMP with PHPMyAdmin is using:



                                    sudo apt-get  install lamp-server^ phpmyadmin 


                                    You don't even need to install taskel. More details can be found here, which gives this:



                                    To access PHPMyAdmin, open terminal & type:



                                    sudo -H gedit /etc/apache2/apache2.conf


                                    Add this line somewhere in that file:



                                    Include /etc/phpmyadmin/apache.conf 


                                    Finally restart Apache using:



                                    /etc/init.d/apache2 restart


                                    or



                                    sudo service apache2 restart





                                    share|improve this answer















                                    The easiest way to install LAMP with PHPMyAdmin is using:



                                    sudo apt-get  install lamp-server^ phpmyadmin 


                                    You don't even need to install taskel. More details can be found here, which gives this:



                                    To access PHPMyAdmin, open terminal & type:



                                    sudo -H gedit /etc/apache2/apache2.conf


                                    Add this line somewhere in that file:



                                    Include /etc/phpmyadmin/apache.conf 


                                    Finally restart Apache using:



                                    /etc/init.d/apache2 restart


                                    or



                                    sudo service apache2 restart






                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Dec 5 '17 at 19:20









                                    Zanna

                                    51.2k13139243




                                    51.2k13139243










                                    answered Aug 27 '12 at 21:44









                                    Abhishek BhardwajAbhishek Bhardwaj

                                    38133




                                    38133








                                    • 5





                                      I'd recommend APT Tasks too. Note that the caret (^) is not a typo in this answer. See also: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:14











                                    • Whilst the usage of tasksel seems to be "easier", this should be the very easy way to do this task. This answer doesn't need other steps to do the job. Thank you!

                                      – Geppettvs D'Constanzo
                                      Feb 28 '16 at 15:24











                                    • Your link is dead. This is a good reason why we should always include a brief summary of what is in a link.

                                      – WinEunuuchs2Unix
                                      Dec 25 '16 at 22:48














                                    • 5





                                      I'd recommend APT Tasks too. Note that the caret (^) is not a typo in this answer. See also: Should I use tasksel, tasks in APT or install regular metapackages?

                                      – gertvdijk
                                      Jul 21 '13 at 15:14











                                    • Whilst the usage of tasksel seems to be "easier", this should be the very easy way to do this task. This answer doesn't need other steps to do the job. Thank you!

                                      – Geppettvs D'Constanzo
                                      Feb 28 '16 at 15:24











                                    • Your link is dead. This is a good reason why we should always include a brief summary of what is in a link.

                                      – WinEunuuchs2Unix
                                      Dec 25 '16 at 22:48








                                    5




                                    5





                                    I'd recommend APT Tasks too. Note that the caret (^) is not a typo in this answer. See also: Should I use tasksel, tasks in APT or install regular metapackages?

                                    – gertvdijk
                                    Jul 21 '13 at 15:14





                                    I'd recommend APT Tasks too. Note that the caret (^) is not a typo in this answer. See also: Should I use tasksel, tasks in APT or install regular metapackages?

                                    – gertvdijk
                                    Jul 21 '13 at 15:14













                                    Whilst the usage of tasksel seems to be "easier", this should be the very easy way to do this task. This answer doesn't need other steps to do the job. Thank you!

                                    – Geppettvs D'Constanzo
                                    Feb 28 '16 at 15:24





                                    Whilst the usage of tasksel seems to be "easier", this should be the very easy way to do this task. This answer doesn't need other steps to do the job. Thank you!

                                    – Geppettvs D'Constanzo
                                    Feb 28 '16 at 15:24













                                    Your link is dead. This is a good reason why we should always include a brief summary of what is in a link.

                                    – WinEunuuchs2Unix
                                    Dec 25 '16 at 22:48





                                    Your link is dead. This is a good reason why we should always include a brief summary of what is in a link.

                                    – WinEunuuchs2Unix
                                    Dec 25 '16 at 22:48











                                    15














                                    In Synaptic, click edit and mark by task. Then select LAMP Server and hit apply. Done.






                                    share|improve this answer
























                                    • +1 for providing a slightly more GUI:ish solution, even if it's not necessarily available on a VPS.

                                      – andol
                                      Jul 31 '10 at 6:25
















                                    15














                                    In Synaptic, click edit and mark by task. Then select LAMP Server and hit apply. Done.






                                    share|improve this answer
























                                    • +1 for providing a slightly more GUI:ish solution, even if it's not necessarily available on a VPS.

                                      – andol
                                      Jul 31 '10 at 6:25














                                    15












                                    15








                                    15







                                    In Synaptic, click edit and mark by task. Then select LAMP Server and hit apply. Done.






                                    share|improve this answer













                                    In Synaptic, click edit and mark by task. Then select LAMP Server and hit apply. Done.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jul 31 '10 at 5:31









                                    Owais LoneOwais Lone

                                    4,59762737




                                    4,59762737













                                    • +1 for providing a slightly more GUI:ish solution, even if it's not necessarily available on a VPS.

                                      – andol
                                      Jul 31 '10 at 6:25



















                                    • +1 for providing a slightly more GUI:ish solution, even if it's not necessarily available on a VPS.

                                      – andol
                                      Jul 31 '10 at 6:25

















                                    +1 for providing a slightly more GUI:ish solution, even if it's not necessarily available on a VPS.

                                    – andol
                                    Jul 31 '10 at 6:25





                                    +1 for providing a slightly more GUI:ish solution, even if it's not necessarily available on a VPS.

                                    – andol
                                    Jul 31 '10 at 6:25











                                    10














                                    I personally always find that installing the MySQL server and then PHPMyAdmin will install all the parts I need



                                    sudo apt-get install mysql-server


                                    (doing this first means it asks for the root account password to be set in advance)



                                    then



                                    sudo apt-get install phpmyadmin


                                    It also gives you all the tools you'll need to administrate your MySQL server once it's installed :)






                                    share|improve this answer






























                                      10














                                      I personally always find that installing the MySQL server and then PHPMyAdmin will install all the parts I need



                                      sudo apt-get install mysql-server


                                      (doing this first means it asks for the root account password to be set in advance)



                                      then



                                      sudo apt-get install phpmyadmin


                                      It also gives you all the tools you'll need to administrate your MySQL server once it's installed :)






                                      share|improve this answer




























                                        10












                                        10








                                        10







                                        I personally always find that installing the MySQL server and then PHPMyAdmin will install all the parts I need



                                        sudo apt-get install mysql-server


                                        (doing this first means it asks for the root account password to be set in advance)



                                        then



                                        sudo apt-get install phpmyadmin


                                        It also gives you all the tools you'll need to administrate your MySQL server once it's installed :)






                                        share|improve this answer















                                        I personally always find that installing the MySQL server and then PHPMyAdmin will install all the parts I need



                                        sudo apt-get install mysql-server


                                        (doing this first means it asks for the root account password to be set in advance)



                                        then



                                        sudo apt-get install phpmyadmin


                                        It also gives you all the tools you'll need to administrate your MySQL server once it's installed :)







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Nov 25 '12 at 4:43









                                        Tachyons

                                        13.6k1465113




                                        13.6k1465113










                                        answered Jul 29 '10 at 8:55









                                        JonTheNiceGuyJonTheNiceGuy

                                        273314




                                        273314























                                            10














                                            On commandline the simplest way is probably to use tasksel:



                                            sudo tasksel install lamp-server





                                            share|improve this answer






























                                              10














                                              On commandline the simplest way is probably to use tasksel:



                                              sudo tasksel install lamp-server





                                              share|improve this answer




























                                                10












                                                10








                                                10







                                                On commandline the simplest way is probably to use tasksel:



                                                sudo tasksel install lamp-server





                                                share|improve this answer















                                                On commandline the simplest way is probably to use tasksel:



                                                sudo tasksel install lamp-server






                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited Jun 14 '13 at 20:03









                                                Lucio

                                                12.7k2485161




                                                12.7k2485161










                                                answered Jul 28 '10 at 19:41









                                                txwikingertxwikinger

                                                19.5k106693




                                                19.5k106693























                                                    4














                                                    The packages are apache2 and libapache2-mod-php5. php5 has a number of additional modules, you may need some. List them with apt-cache search php5



                                                    Try revising your search or



                                                    sudo apt-get install apache2 libapache2-mod-php5


                                                    Enable php5 with



                                                    sudo a2enmod php5


                                                    Restart apache



                                                    sudo service apache2 restart


                                                    The following wiki pages can be very helpful if you are starting with apache.



                                                    https://help.ubuntu.com/community/ApacheMySQLPHP



                                                    https://help.ubuntu.com/11.10/serverguide/C/httpd.html



                                                    Note- This answer was migrated from elsewhere. To add mysql install



                                                    sudo apt-get install mysql-server php5-mysql





                                                    share|improve this answer






























                                                      4














                                                      The packages are apache2 and libapache2-mod-php5. php5 has a number of additional modules, you may need some. List them with apt-cache search php5



                                                      Try revising your search or



                                                      sudo apt-get install apache2 libapache2-mod-php5


                                                      Enable php5 with



                                                      sudo a2enmod php5


                                                      Restart apache



                                                      sudo service apache2 restart


                                                      The following wiki pages can be very helpful if you are starting with apache.



                                                      https://help.ubuntu.com/community/ApacheMySQLPHP



                                                      https://help.ubuntu.com/11.10/serverguide/C/httpd.html



                                                      Note- This answer was migrated from elsewhere. To add mysql install



                                                      sudo apt-get install mysql-server php5-mysql





                                                      share|improve this answer




























                                                        4












                                                        4








                                                        4







                                                        The packages are apache2 and libapache2-mod-php5. php5 has a number of additional modules, you may need some. List them with apt-cache search php5



                                                        Try revising your search or



                                                        sudo apt-get install apache2 libapache2-mod-php5


                                                        Enable php5 with



                                                        sudo a2enmod php5


                                                        Restart apache



                                                        sudo service apache2 restart


                                                        The following wiki pages can be very helpful if you are starting with apache.



                                                        https://help.ubuntu.com/community/ApacheMySQLPHP



                                                        https://help.ubuntu.com/11.10/serverguide/C/httpd.html



                                                        Note- This answer was migrated from elsewhere. To add mysql install



                                                        sudo apt-get install mysql-server php5-mysql





                                                        share|improve this answer















                                                        The packages are apache2 and libapache2-mod-php5. php5 has a number of additional modules, you may need some. List them with apt-cache search php5



                                                        Try revising your search or



                                                        sudo apt-get install apache2 libapache2-mod-php5


                                                        Enable php5 with



                                                        sudo a2enmod php5


                                                        Restart apache



                                                        sudo service apache2 restart


                                                        The following wiki pages can be very helpful if you are starting with apache.



                                                        https://help.ubuntu.com/community/ApacheMySQLPHP



                                                        https://help.ubuntu.com/11.10/serverguide/C/httpd.html



                                                        Note- This answer was migrated from elsewhere. To add mysql install



                                                        sudo apt-get install mysql-server php5-mysql






                                                        share|improve this answer














                                                        share|improve this answer



                                                        share|improve this answer








                                                        edited Jan 18 '12 at 22:40

























                                                        answered Jan 18 '12 at 22:00









                                                        PantherPanther

                                                        80.1k14159259




                                                        80.1k14159259























                                                            2














                                                            http://www.apachefriends.org/en/xampp-linux.html



                                                            It has LAMP as well as phpmyadmin integrated along with perl modules. Installs in /opt/lampp so can be installed/removed easily...






                                                            share|improve this answer




























                                                              2














                                                              http://www.apachefriends.org/en/xampp-linux.html



                                                              It has LAMP as well as phpmyadmin integrated along with perl modules. Installs in /opt/lampp so can be installed/removed easily...






                                                              share|improve this answer


























                                                                2












                                                                2








                                                                2







                                                                http://www.apachefriends.org/en/xampp-linux.html



                                                                It has LAMP as well as phpmyadmin integrated along with perl modules. Installs in /opt/lampp so can be installed/removed easily...






                                                                share|improve this answer













                                                                http://www.apachefriends.org/en/xampp-linux.html



                                                                It has LAMP as well as phpmyadmin integrated along with perl modules. Installs in /opt/lampp so can be installed/removed easily...







                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered Aug 20 '10 at 17:35









                                                                sagarchalisesagarchalise

                                                                18.2k115974




                                                                18.2k115974























                                                                    2














                                                                    My Swiss Army knife command:



                                                                    sudo apt-get install apache2 mysql-server mysql-client libapache2-mod-auth-mysql php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-curl php5-cli php5-gd phpmyadmin





                                                                    share|improve this answer






























                                                                      2














                                                                      My Swiss Army knife command:



                                                                      sudo apt-get install apache2 mysql-server mysql-client libapache2-mod-auth-mysql php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-curl php5-cli php5-gd phpmyadmin





                                                                      share|improve this answer




























                                                                        2












                                                                        2








                                                                        2







                                                                        My Swiss Army knife command:



                                                                        sudo apt-get install apache2 mysql-server mysql-client libapache2-mod-auth-mysql php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-curl php5-cli php5-gd phpmyadmin





                                                                        share|improve this answer















                                                                        My Swiss Army knife command:



                                                                        sudo apt-get install apache2 mysql-server mysql-client libapache2-mod-auth-mysql php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-curl php5-cli php5-gd phpmyadmin






                                                                        share|improve this answer














                                                                        share|improve this answer



                                                                        share|improve this answer








                                                                        edited Feb 6 '18 at 5:21









                                                                        muru

                                                                        1




                                                                        1










                                                                        answered Sep 3 '14 at 15:19









                                                                        thucnguyenthucnguyen

                                                                        85976




                                                                        85976























                                                                            1














                                                                            PHP7.0 is standard on Ubuntu 16+



                                                                            Heres the rundown:



                                                                            1 As Always



                                                                             sudo apt-get update


                                                                            2 Install Apache2



                                                                             sudo apt-get install apache2


                                                                            3 Install mysql-server



                                                                             sudo apt-get install mysql-server


                                                                            4 Install PHP 7.0



                                                                             sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php-mbstring php7.0-mbstring php-gettext php7.0-json php-xml
                                                                            sudo a2enmod php7.0


                                                                            5 Install phpmyadmin



                                                                             sudo apt-get install mcrypt
                                                                            sudo apt-get install phpmyadmin


                                                                            Note, you'll need to add Include /etc/phpmyadmin/apache.conf to the file you'll open with the following command. (credit)



                                                                             sudo gedit /etc/apache2/apache2.conf 


                                                                            Optional



                                                                             sudo a2enmod rewrite





                                                                            share|improve this answer






























                                                                              1














                                                                              PHP7.0 is standard on Ubuntu 16+



                                                                              Heres the rundown:



                                                                              1 As Always



                                                                               sudo apt-get update


                                                                              2 Install Apache2



                                                                               sudo apt-get install apache2


                                                                              3 Install mysql-server



                                                                               sudo apt-get install mysql-server


                                                                              4 Install PHP 7.0



                                                                               sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php-mbstring php7.0-mbstring php-gettext php7.0-json php-xml
                                                                              sudo a2enmod php7.0


                                                                              5 Install phpmyadmin



                                                                               sudo apt-get install mcrypt
                                                                              sudo apt-get install phpmyadmin


                                                                              Note, you'll need to add Include /etc/phpmyadmin/apache.conf to the file you'll open with the following command. (credit)



                                                                               sudo gedit /etc/apache2/apache2.conf 


                                                                              Optional



                                                                               sudo a2enmod rewrite





                                                                              share|improve this answer




























                                                                                1












                                                                                1








                                                                                1







                                                                                PHP7.0 is standard on Ubuntu 16+



                                                                                Heres the rundown:



                                                                                1 As Always



                                                                                 sudo apt-get update


                                                                                2 Install Apache2



                                                                                 sudo apt-get install apache2


                                                                                3 Install mysql-server



                                                                                 sudo apt-get install mysql-server


                                                                                4 Install PHP 7.0



                                                                                 sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php-mbstring php7.0-mbstring php-gettext php7.0-json php-xml
                                                                                sudo a2enmod php7.0


                                                                                5 Install phpmyadmin



                                                                                 sudo apt-get install mcrypt
                                                                                sudo apt-get install phpmyadmin


                                                                                Note, you'll need to add Include /etc/phpmyadmin/apache.conf to the file you'll open with the following command. (credit)



                                                                                 sudo gedit /etc/apache2/apache2.conf 


                                                                                Optional



                                                                                 sudo a2enmod rewrite





                                                                                share|improve this answer















                                                                                PHP7.0 is standard on Ubuntu 16+



                                                                                Heres the rundown:



                                                                                1 As Always



                                                                                 sudo apt-get update


                                                                                2 Install Apache2



                                                                                 sudo apt-get install apache2


                                                                                3 Install mysql-server



                                                                                 sudo apt-get install mysql-server


                                                                                4 Install PHP 7.0



                                                                                 sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php-mbstring php7.0-mbstring php-gettext php7.0-json php-xml
                                                                                sudo a2enmod php7.0


                                                                                5 Install phpmyadmin



                                                                                 sudo apt-get install mcrypt
                                                                                sudo apt-get install phpmyadmin


                                                                                Note, you'll need to add Include /etc/phpmyadmin/apache.conf to the file you'll open with the following command. (credit)



                                                                                 sudo gedit /etc/apache2/apache2.conf 


                                                                                Optional



                                                                                 sudo a2enmod rewrite






                                                                                share|improve this answer














                                                                                share|improve this answer



                                                                                share|improve this answer








                                                                                edited Apr 13 '17 at 12:25









                                                                                Community

                                                                                1




                                                                                1










                                                                                answered Apr 26 '16 at 7:22









                                                                                Ulad KasachUlad Kasach

                                                                                1,05811219




                                                                                1,05811219























                                                                                    1














                                                                                    Open terminal



                                                                                    Ctrl + Alt + T



                                                                                    Type



                                                                                    sudo apt install synaptic


                                                                                    This will install synaptic on your system



                                                                                    Type



                                                                                    sudo synaptic 


                                                                                    to open it.



                                                                                    enter image description here



                                                                                    Go to search box



                                                                                    enter image description here



                                                                                    enter image description here



                                                                                    In the search field type apache and click on Search button



                                                                                    enter image description here



                                                                                    The following field appears



                                                                                    enter image description here



                                                                                    Scroll down to Apache2 and select the box left to it.



                                                                                    enter image description here



                                                                                    Click on apply



                                                                                    enter image description here



                                                                                    Select all dependencies and follow on screen instructions to install.



                                                                                    In a similar way install



                                                                                    php7.0 and mysql-server one by one



                                                                                    During installation of mysql-server system asks for root password. Provide it.



                                                                                    After everything is complete, close synaptic.



                                                                                    Now open your browser and in the address bar type localhost and press Enter



                                                                                    If the following page appears



                                                                                    enter image description here



                                                                                    then Apache2 installation is successfull



                                                                                    In terminal type



                                                                                    apt install vim
                                                                                    cd /var/www/html
                                                                                    vim testphp.php


                                                                                    Press



                                                                                    i



                                                                                    Type



                                                                                    <?php phpinfo(); ?>


                                                                                    Press



                                                                                    Esc : x Enter



                                                                                    Go to your browser and in the address bar type localhost/testphp.php



                                                                                    If the following page appears



                                                                                    enter image description here



                                                                                    Then php7.0 installation is successfull



                                                                                    Go to terminal and type



                                                                                    mysql --version


                                                                                    If you get the following prompt (version numbers for you system may be different):



                                                                                    mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper


                                                                                    Then your mysql-server installation is successful.



                                                                                    Type



                                                                                    mysql -u root -p


                                                                                    You will get:



                                                                                    Enter password:


                                                                                    Give the password.



                                                                                    If you get the following prompt



                                                                                    enter image description here



                                                                                    Then you are now successfully able to login



                                                                                    Type



                                                                                    mysql> quit


                                                                                    to logout.



                                                                                    Congratulations, you now have a full working LAMP Stack



                                                                                    Optional:



                                                                                    You can also install phpmyadmin using synaptic. During installation it will ask for default server to use. Select apache2. Follow other on screen instructions.



                                                                                    Then open your browser and in the address bar type localhost/phpmyadmin



                                                                                    The following page appears



                                                                                    enter image description here



                                                                                    In the username field type root and in the password field type the password for root user you have selected during mysql-server installation.



                                                                                    Click on Go button.



                                                                                    The following page appears



                                                                                    enter image description here



                                                                                    Now you have successfully installed phpmyadmin on your system.






                                                                                    share|improve this answer




























                                                                                      1














                                                                                      Open terminal



                                                                                      Ctrl + Alt + T



                                                                                      Type



                                                                                      sudo apt install synaptic


                                                                                      This will install synaptic on your system



                                                                                      Type



                                                                                      sudo synaptic 


                                                                                      to open it.



                                                                                      enter image description here



                                                                                      Go to search box



                                                                                      enter image description here



                                                                                      enter image description here



                                                                                      In the search field type apache and click on Search button



                                                                                      enter image description here



                                                                                      The following field appears



                                                                                      enter image description here



                                                                                      Scroll down to Apache2 and select the box left to it.



                                                                                      enter image description here



                                                                                      Click on apply



                                                                                      enter image description here



                                                                                      Select all dependencies and follow on screen instructions to install.



                                                                                      In a similar way install



                                                                                      php7.0 and mysql-server one by one



                                                                                      During installation of mysql-server system asks for root password. Provide it.



                                                                                      After everything is complete, close synaptic.



                                                                                      Now open your browser and in the address bar type localhost and press Enter



                                                                                      If the following page appears



                                                                                      enter image description here



                                                                                      then Apache2 installation is successfull



                                                                                      In terminal type



                                                                                      apt install vim
                                                                                      cd /var/www/html
                                                                                      vim testphp.php


                                                                                      Press



                                                                                      i



                                                                                      Type



                                                                                      <?php phpinfo(); ?>


                                                                                      Press



                                                                                      Esc : x Enter



                                                                                      Go to your browser and in the address bar type localhost/testphp.php



                                                                                      If the following page appears



                                                                                      enter image description here



                                                                                      Then php7.0 installation is successfull



                                                                                      Go to terminal and type



                                                                                      mysql --version


                                                                                      If you get the following prompt (version numbers for you system may be different):



                                                                                      mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper


                                                                                      Then your mysql-server installation is successful.



                                                                                      Type



                                                                                      mysql -u root -p


                                                                                      You will get:



                                                                                      Enter password:


                                                                                      Give the password.



                                                                                      If you get the following prompt



                                                                                      enter image description here



                                                                                      Then you are now successfully able to login



                                                                                      Type



                                                                                      mysql> quit


                                                                                      to logout.



                                                                                      Congratulations, you now have a full working LAMP Stack



                                                                                      Optional:



                                                                                      You can also install phpmyadmin using synaptic. During installation it will ask for default server to use. Select apache2. Follow other on screen instructions.



                                                                                      Then open your browser and in the address bar type localhost/phpmyadmin



                                                                                      The following page appears



                                                                                      enter image description here



                                                                                      In the username field type root and in the password field type the password for root user you have selected during mysql-server installation.



                                                                                      Click on Go button.



                                                                                      The following page appears



                                                                                      enter image description here



                                                                                      Now you have successfully installed phpmyadmin on your system.






                                                                                      share|improve this answer


























                                                                                        1












                                                                                        1








                                                                                        1







                                                                                        Open terminal



                                                                                        Ctrl + Alt + T



                                                                                        Type



                                                                                        sudo apt install synaptic


                                                                                        This will install synaptic on your system



                                                                                        Type



                                                                                        sudo synaptic 


                                                                                        to open it.



                                                                                        enter image description here



                                                                                        Go to search box



                                                                                        enter image description here



                                                                                        enter image description here



                                                                                        In the search field type apache and click on Search button



                                                                                        enter image description here



                                                                                        The following field appears



                                                                                        enter image description here



                                                                                        Scroll down to Apache2 and select the box left to it.



                                                                                        enter image description here



                                                                                        Click on apply



                                                                                        enter image description here



                                                                                        Select all dependencies and follow on screen instructions to install.



                                                                                        In a similar way install



                                                                                        php7.0 and mysql-server one by one



                                                                                        During installation of mysql-server system asks for root password. Provide it.



                                                                                        After everything is complete, close synaptic.



                                                                                        Now open your browser and in the address bar type localhost and press Enter



                                                                                        If the following page appears



                                                                                        enter image description here



                                                                                        then Apache2 installation is successfull



                                                                                        In terminal type



                                                                                        apt install vim
                                                                                        cd /var/www/html
                                                                                        vim testphp.php


                                                                                        Press



                                                                                        i



                                                                                        Type



                                                                                        <?php phpinfo(); ?>


                                                                                        Press



                                                                                        Esc : x Enter



                                                                                        Go to your browser and in the address bar type localhost/testphp.php



                                                                                        If the following page appears



                                                                                        enter image description here



                                                                                        Then php7.0 installation is successfull



                                                                                        Go to terminal and type



                                                                                        mysql --version


                                                                                        If you get the following prompt (version numbers for you system may be different):



                                                                                        mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper


                                                                                        Then your mysql-server installation is successful.



                                                                                        Type



                                                                                        mysql -u root -p


                                                                                        You will get:



                                                                                        Enter password:


                                                                                        Give the password.



                                                                                        If you get the following prompt



                                                                                        enter image description here



                                                                                        Then you are now successfully able to login



                                                                                        Type



                                                                                        mysql> quit


                                                                                        to logout.



                                                                                        Congratulations, you now have a full working LAMP Stack



                                                                                        Optional:



                                                                                        You can also install phpmyadmin using synaptic. During installation it will ask for default server to use. Select apache2. Follow other on screen instructions.



                                                                                        Then open your browser and in the address bar type localhost/phpmyadmin



                                                                                        The following page appears



                                                                                        enter image description here



                                                                                        In the username field type root and in the password field type the password for root user you have selected during mysql-server installation.



                                                                                        Click on Go button.



                                                                                        The following page appears



                                                                                        enter image description here



                                                                                        Now you have successfully installed phpmyadmin on your system.






                                                                                        share|improve this answer













                                                                                        Open terminal



                                                                                        Ctrl + Alt + T



                                                                                        Type



                                                                                        sudo apt install synaptic


                                                                                        This will install synaptic on your system



                                                                                        Type



                                                                                        sudo synaptic 


                                                                                        to open it.



                                                                                        enter image description here



                                                                                        Go to search box



                                                                                        enter image description here



                                                                                        enter image description here



                                                                                        In the search field type apache and click on Search button



                                                                                        enter image description here



                                                                                        The following field appears



                                                                                        enter image description here



                                                                                        Scroll down to Apache2 and select the box left to it.



                                                                                        enter image description here



                                                                                        Click on apply



                                                                                        enter image description here



                                                                                        Select all dependencies and follow on screen instructions to install.



                                                                                        In a similar way install



                                                                                        php7.0 and mysql-server one by one



                                                                                        During installation of mysql-server system asks for root password. Provide it.



                                                                                        After everything is complete, close synaptic.



                                                                                        Now open your browser and in the address bar type localhost and press Enter



                                                                                        If the following page appears



                                                                                        enter image description here



                                                                                        then Apache2 installation is successfull



                                                                                        In terminal type



                                                                                        apt install vim
                                                                                        cd /var/www/html
                                                                                        vim testphp.php


                                                                                        Press



                                                                                        i



                                                                                        Type



                                                                                        <?php phpinfo(); ?>


                                                                                        Press



                                                                                        Esc : x Enter



                                                                                        Go to your browser and in the address bar type localhost/testphp.php



                                                                                        If the following page appears



                                                                                        enter image description here



                                                                                        Then php7.0 installation is successfull



                                                                                        Go to terminal and type



                                                                                        mysql --version


                                                                                        If you get the following prompt (version numbers for you system may be different):



                                                                                        mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper


                                                                                        Then your mysql-server installation is successful.



                                                                                        Type



                                                                                        mysql -u root -p


                                                                                        You will get:



                                                                                        Enter password:


                                                                                        Give the password.



                                                                                        If you get the following prompt



                                                                                        enter image description here



                                                                                        Then you are now successfully able to login



                                                                                        Type



                                                                                        mysql> quit


                                                                                        to logout.



                                                                                        Congratulations, you now have a full working LAMP Stack



                                                                                        Optional:



                                                                                        You can also install phpmyadmin using synaptic. During installation it will ask for default server to use. Select apache2. Follow other on screen instructions.



                                                                                        Then open your browser and in the address bar type localhost/phpmyadmin



                                                                                        The following page appears



                                                                                        enter image description here



                                                                                        In the username field type root and in the password field type the password for root user you have selected during mysql-server installation.



                                                                                        Click on Go button.



                                                                                        The following page appears



                                                                                        enter image description here



                                                                                        Now you have successfully installed phpmyadmin on your system.







                                                                                        share|improve this answer












                                                                                        share|improve this answer



                                                                                        share|improve this answer










                                                                                        answered May 5 '17 at 3:34









                                                                                        ranchorancho

                                                                                        2,28321446




                                                                                        2,28321446























                                                                                            0














                                                                                            You can install Bitnami lampstack.(Package containing all necessary sub packages of LAMP).



                                                                                            First of all create an account in bitnami website to download the bitnami-lampstack-5.5.30-1-linux-x64-installer.run file.
                                                                                            Then copy the file to your desktop (for convenience ). To provide read and exicution permission, Open terminal (Ctrl + Alt + T).
                                                                                            and type



                                                                                            chmod 755 chmod  755 'location of bitnami-lampstack-5.5.30-1-linux-x64-installer.run


                                                                                            Better drag and drop the .run file from your desktop after typing chmod 755, press enter.



                                                                                            Now double click on the .run file. It will guide you through the installation process.



                                                                                            Thank you.






                                                                                            share|improve this answer




























                                                                                              0














                                                                                              You can install Bitnami lampstack.(Package containing all necessary sub packages of LAMP).



                                                                                              First of all create an account in bitnami website to download the bitnami-lampstack-5.5.30-1-linux-x64-installer.run file.
                                                                                              Then copy the file to your desktop (for convenience ). To provide read and exicution permission, Open terminal (Ctrl + Alt + T).
                                                                                              and type



                                                                                              chmod 755 chmod  755 'location of bitnami-lampstack-5.5.30-1-linux-x64-installer.run


                                                                                              Better drag and drop the .run file from your desktop after typing chmod 755, press enter.



                                                                                              Now double click on the .run file. It will guide you through the installation process.



                                                                                              Thank you.






                                                                                              share|improve this answer


























                                                                                                0












                                                                                                0








                                                                                                0







                                                                                                You can install Bitnami lampstack.(Package containing all necessary sub packages of LAMP).



                                                                                                First of all create an account in bitnami website to download the bitnami-lampstack-5.5.30-1-linux-x64-installer.run file.
                                                                                                Then copy the file to your desktop (for convenience ). To provide read and exicution permission, Open terminal (Ctrl + Alt + T).
                                                                                                and type



                                                                                                chmod 755 chmod  755 'location of bitnami-lampstack-5.5.30-1-linux-x64-installer.run


                                                                                                Better drag and drop the .run file from your desktop after typing chmod 755, press enter.



                                                                                                Now double click on the .run file. It will guide you through the installation process.



                                                                                                Thank you.






                                                                                                share|improve this answer













                                                                                                You can install Bitnami lampstack.(Package containing all necessary sub packages of LAMP).



                                                                                                First of all create an account in bitnami website to download the bitnami-lampstack-5.5.30-1-linux-x64-installer.run file.
                                                                                                Then copy the file to your desktop (for convenience ). To provide read and exicution permission, Open terminal (Ctrl + Alt + T).
                                                                                                and type



                                                                                                chmod 755 chmod  755 'location of bitnami-lampstack-5.5.30-1-linux-x64-installer.run


                                                                                                Better drag and drop the .run file from your desktop after typing chmod 755, press enter.



                                                                                                Now double click on the .run file. It will guide you through the installation process.



                                                                                                Thank you.







                                                                                                share|improve this answer












                                                                                                share|improve this answer



                                                                                                share|improve this answer










                                                                                                answered Dec 27 '15 at 12:52







                                                                                                user441517






























                                                                                                    0














                                                                                                    I have a script for this task: lampi



                                                                                                    Usage:



                                                                                                    sudo lampi -i -s -n example.com.local -dr ~/example-site


                                                                                                    What does it do:




                                                                                                    1. Install the LAMP stack (-i flag)

                                                                                                    2. Setup and configure apache2, mysql, php, phpmyadmin

                                                                                                    3. Then set up a custom site named example.com.local (-n option)

                                                                                                    4. Set ~/example-site directory as it's document root (-dr option)

                                                                                                    5. Enable SSL (https) for this site (-s flag)


                                                                                                    Now, the site can be accessed with http://example.com.local or https://example.com.local






                                                                                                    share|improve this answer


























                                                                                                    • Unless you post the script here i can't see any use of this answer..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:49











                                                                                                    • @heemayl : seriously? you want me to dump a ~350 line code here... If you are really interested, you should follow through the link and go to the github project page.

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 18:53











                                                                                                    • Can you guarantee that the script won't be removed in the future? Again its link only answer AFAICS. Also you should give the link to github directly, any subtle advertising is highly discouraged..Perhaps you should go through the related meta posts first..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:56











                                                                                                    • @heemayl : I agree on giving a direct link to github but not on it being a link only answer. I have put the code that needs to be run and explained well enough to follow through for anyone...

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 19:00
















                                                                                                    0














                                                                                                    I have a script for this task: lampi



                                                                                                    Usage:



                                                                                                    sudo lampi -i -s -n example.com.local -dr ~/example-site


                                                                                                    What does it do:




                                                                                                    1. Install the LAMP stack (-i flag)

                                                                                                    2. Setup and configure apache2, mysql, php, phpmyadmin

                                                                                                    3. Then set up a custom site named example.com.local (-n option)

                                                                                                    4. Set ~/example-site directory as it's document root (-dr option)

                                                                                                    5. Enable SSL (https) for this site (-s flag)


                                                                                                    Now, the site can be accessed with http://example.com.local or https://example.com.local






                                                                                                    share|improve this answer


























                                                                                                    • Unless you post the script here i can't see any use of this answer..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:49











                                                                                                    • @heemayl : seriously? you want me to dump a ~350 line code here... If you are really interested, you should follow through the link and go to the github project page.

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 18:53











                                                                                                    • Can you guarantee that the script won't be removed in the future? Again its link only answer AFAICS. Also you should give the link to github directly, any subtle advertising is highly discouraged..Perhaps you should go through the related meta posts first..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:56











                                                                                                    • @heemayl : I agree on giving a direct link to github but not on it being a link only answer. I have put the code that needs to be run and explained well enough to follow through for anyone...

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 19:00














                                                                                                    0












                                                                                                    0








                                                                                                    0







                                                                                                    I have a script for this task: lampi



                                                                                                    Usage:



                                                                                                    sudo lampi -i -s -n example.com.local -dr ~/example-site


                                                                                                    What does it do:




                                                                                                    1. Install the LAMP stack (-i flag)

                                                                                                    2. Setup and configure apache2, mysql, php, phpmyadmin

                                                                                                    3. Then set up a custom site named example.com.local (-n option)

                                                                                                    4. Set ~/example-site directory as it's document root (-dr option)

                                                                                                    5. Enable SSL (https) for this site (-s flag)


                                                                                                    Now, the site can be accessed with http://example.com.local or https://example.com.local






                                                                                                    share|improve this answer















                                                                                                    I have a script for this task: lampi



                                                                                                    Usage:



                                                                                                    sudo lampi -i -s -n example.com.local -dr ~/example-site


                                                                                                    What does it do:




                                                                                                    1. Install the LAMP stack (-i flag)

                                                                                                    2. Setup and configure apache2, mysql, php, phpmyadmin

                                                                                                    3. Then set up a custom site named example.com.local (-n option)

                                                                                                    4. Set ~/example-site directory as it's document root (-dr option)

                                                                                                    5. Enable SSL (https) for this site (-s flag)


                                                                                                    Now, the site can be accessed with http://example.com.local or https://example.com.local







                                                                                                    share|improve this answer














                                                                                                    share|improve this answer



                                                                                                    share|improve this answer








                                                                                                    edited Jun 26 '16 at 18:58

























                                                                                                    answered Jun 26 '16 at 18:19









                                                                                                    JahidJahid

                                                                                                    28728




                                                                                                    28728













                                                                                                    • Unless you post the script here i can't see any use of this answer..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:49











                                                                                                    • @heemayl : seriously? you want me to dump a ~350 line code here... If you are really interested, you should follow through the link and go to the github project page.

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 18:53











                                                                                                    • Can you guarantee that the script won't be removed in the future? Again its link only answer AFAICS. Also you should give the link to github directly, any subtle advertising is highly discouraged..Perhaps you should go through the related meta posts first..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:56











                                                                                                    • @heemayl : I agree on giving a direct link to github but not on it being a link only answer. I have put the code that needs to be run and explained well enough to follow through for anyone...

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 19:00



















                                                                                                    • Unless you post the script here i can't see any use of this answer..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:49











                                                                                                    • @heemayl : seriously? you want me to dump a ~350 line code here... If you are really interested, you should follow through the link and go to the github project page.

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 18:53











                                                                                                    • Can you guarantee that the script won't be removed in the future? Again its link only answer AFAICS. Also you should give the link to github directly, any subtle advertising is highly discouraged..Perhaps you should go through the related meta posts first..

                                                                                                      – heemayl
                                                                                                      Jun 26 '16 at 18:56











                                                                                                    • @heemayl : I agree on giving a direct link to github but not on it being a link only answer. I have put the code that needs to be run and explained well enough to follow through for anyone...

                                                                                                      – Jahid
                                                                                                      Jun 26 '16 at 19:00

















                                                                                                    Unless you post the script here i can't see any use of this answer..

                                                                                                    – heemayl
                                                                                                    Jun 26 '16 at 18:49





                                                                                                    Unless you post the script here i can't see any use of this answer..

                                                                                                    – heemayl
                                                                                                    Jun 26 '16 at 18:49













                                                                                                    @heemayl : seriously? you want me to dump a ~350 line code here... If you are really interested, you should follow through the link and go to the github project page.

                                                                                                    – Jahid
                                                                                                    Jun 26 '16 at 18:53





                                                                                                    @heemayl : seriously? you want me to dump a ~350 line code here... If you are really interested, you should follow through the link and go to the github project page.

                                                                                                    – Jahid
                                                                                                    Jun 26 '16 at 18:53













                                                                                                    Can you guarantee that the script won't be removed in the future? Again its link only answer AFAICS. Also you should give the link to github directly, any subtle advertising is highly discouraged..Perhaps you should go through the related meta posts first..

                                                                                                    – heemayl
                                                                                                    Jun 26 '16 at 18:56





                                                                                                    Can you guarantee that the script won't be removed in the future? Again its link only answer AFAICS. Also you should give the link to github directly, any subtle advertising is highly discouraged..Perhaps you should go through the related meta posts first..

                                                                                                    – heemayl
                                                                                                    Jun 26 '16 at 18:56













                                                                                                    @heemayl : I agree on giving a direct link to github but not on it being a link only answer. I have put the code that needs to be run and explained well enough to follow through for anyone...

                                                                                                    – Jahid
                                                                                                    Jun 26 '16 at 19:00





                                                                                                    @heemayl : I agree on giving a direct link to github but not on it being a link only answer. I have put the code that needs to be run and explained well enough to follow through for anyone...

                                                                                                    – Jahid
                                                                                                    Jun 26 '16 at 19:00











                                                                                                    0














                                                                                                    If you are on unbuntu 16, it is simple with one command:



                                                                                                    sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql phpmyadmin


                                                                                                    And just follow the instruction on screen to enter password for mysql, phpmyadmin configuration



                                                                                                    You can see more details on my blog http://tvivu.com/install-lamp-stack-ubuntu-16-04/






                                                                                                    share|improve this answer




























                                                                                                      0














                                                                                                      If you are on unbuntu 16, it is simple with one command:



                                                                                                      sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql phpmyadmin


                                                                                                      And just follow the instruction on screen to enter password for mysql, phpmyadmin configuration



                                                                                                      You can see more details on my blog http://tvivu.com/install-lamp-stack-ubuntu-16-04/






                                                                                                      share|improve this answer


























                                                                                                        0












                                                                                                        0








                                                                                                        0







                                                                                                        If you are on unbuntu 16, it is simple with one command:



                                                                                                        sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql phpmyadmin


                                                                                                        And just follow the instruction on screen to enter password for mysql, phpmyadmin configuration



                                                                                                        You can see more details on my blog http://tvivu.com/install-lamp-stack-ubuntu-16-04/






                                                                                                        share|improve this answer













                                                                                                        If you are on unbuntu 16, it is simple with one command:



                                                                                                        sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql phpmyadmin


                                                                                                        And just follow the instruction on screen to enter password for mysql, phpmyadmin configuration



                                                                                                        You can see more details on my blog http://tvivu.com/install-lamp-stack-ubuntu-16-04/







                                                                                                        share|improve this answer












                                                                                                        share|improve this answer



                                                                                                        share|improve this answer










                                                                                                        answered Dec 10 '16 at 9:48









                                                                                                        Vu TranVu Tran

                                                                                                        11




                                                                                                        11























                                                                                                            0














                                                                                                            Follow All Steps



                                                                                                            sudo apt-get update
                                                                                                            sudo apt-get install apache2
                                                                                                            sudo apt-get install mysql-server
                                                                                                            sudo apt install php7.0-cli
                                                                                                            sudo apt-get install phpmyadmin php-mbstring php-gettext
                                                                                                            sudo phpenmod mcrypt
                                                                                                            sudo phpenmod mbstring
                                                                                                            sudo systemctl restart apache2
                                                                                                            sudo apt-get update


                                                                                                            (Note If phpmyadmin is not working after Than Try this last three line code)



                                                                                                            gksu gedit /etc/apache2/apache2.conf
                                                                                                            /etc/init.d/apache2 restart
                                                                                                            sudo apt-get install gksu^C





                                                                                                            share|improve this answer






























                                                                                                              0














                                                                                                              Follow All Steps



                                                                                                              sudo apt-get update
                                                                                                              sudo apt-get install apache2
                                                                                                              sudo apt-get install mysql-server
                                                                                                              sudo apt install php7.0-cli
                                                                                                              sudo apt-get install phpmyadmin php-mbstring php-gettext
                                                                                                              sudo phpenmod mcrypt
                                                                                                              sudo phpenmod mbstring
                                                                                                              sudo systemctl restart apache2
                                                                                                              sudo apt-get update


                                                                                                              (Note If phpmyadmin is not working after Than Try this last three line code)



                                                                                                              gksu gedit /etc/apache2/apache2.conf
                                                                                                              /etc/init.d/apache2 restart
                                                                                                              sudo apt-get install gksu^C





                                                                                                              share|improve this answer




























                                                                                                                0












                                                                                                                0








                                                                                                                0







                                                                                                                Follow All Steps



                                                                                                                sudo apt-get update
                                                                                                                sudo apt-get install apache2
                                                                                                                sudo apt-get install mysql-server
                                                                                                                sudo apt install php7.0-cli
                                                                                                                sudo apt-get install phpmyadmin php-mbstring php-gettext
                                                                                                                sudo phpenmod mcrypt
                                                                                                                sudo phpenmod mbstring
                                                                                                                sudo systemctl restart apache2
                                                                                                                sudo apt-get update


                                                                                                                (Note If phpmyadmin is not working after Than Try this last three line code)



                                                                                                                gksu gedit /etc/apache2/apache2.conf
                                                                                                                /etc/init.d/apache2 restart
                                                                                                                sudo apt-get install gksu^C





                                                                                                                share|improve this answer















                                                                                                                Follow All Steps



                                                                                                                sudo apt-get update
                                                                                                                sudo apt-get install apache2
                                                                                                                sudo apt-get install mysql-server
                                                                                                                sudo apt install php7.0-cli
                                                                                                                sudo apt-get install phpmyadmin php-mbstring php-gettext
                                                                                                                sudo phpenmod mcrypt
                                                                                                                sudo phpenmod mbstring
                                                                                                                sudo systemctl restart apache2
                                                                                                                sudo apt-get update


                                                                                                                (Note If phpmyadmin is not working after Than Try this last three line code)



                                                                                                                gksu gedit /etc/apache2/apache2.conf
                                                                                                                /etc/init.d/apache2 restart
                                                                                                                sudo apt-get install gksu^C






                                                                                                                share|improve this answer














                                                                                                                share|improve this answer



                                                                                                                share|improve this answer








                                                                                                                edited Feb 7 '17 at 0:57









                                                                                                                DJCrashdummy

                                                                                                                1,51231427




                                                                                                                1,51231427










                                                                                                                answered Feb 6 '17 at 23:17









                                                                                                                Siddharth ShuklaSiddharth Shukla

                                                                                                                16113




                                                                                                                16113























                                                                                                                    0














                                                                                                                    I have a made an easy to use, simple bash script that installs LAMP stack on your system automatically.



                                                                                                                    Just run this command in your terminal to use the bash script:





                                                                                                                    wget --no-cache -O - https://gist.github.com/EmpireWorld/737fbb9f403d4dd66dee1364d866ba7e/raw/install-lamp.sh | bash


                                                                                                                    Also phpMyAdmin installation included in the gist.



                                                                                                                    Check out the Gist






                                                                                                                    share|improve this answer




























                                                                                                                      0














                                                                                                                      I have a made an easy to use, simple bash script that installs LAMP stack on your system automatically.



                                                                                                                      Just run this command in your terminal to use the bash script:





                                                                                                                      wget --no-cache -O - https://gist.github.com/EmpireWorld/737fbb9f403d4dd66dee1364d866ba7e/raw/install-lamp.sh | bash


                                                                                                                      Also phpMyAdmin installation included in the gist.



                                                                                                                      Check out the Gist






                                                                                                                      share|improve this answer


























                                                                                                                        0












                                                                                                                        0








                                                                                                                        0







                                                                                                                        I have a made an easy to use, simple bash script that installs LAMP stack on your system automatically.



                                                                                                                        Just run this command in your terminal to use the bash script:





                                                                                                                        wget --no-cache -O - https://gist.github.com/EmpireWorld/737fbb9f403d4dd66dee1364d866ba7e/raw/install-lamp.sh | bash


                                                                                                                        Also phpMyAdmin installation included in the gist.



                                                                                                                        Check out the Gist






                                                                                                                        share|improve this answer













                                                                                                                        I have a made an easy to use, simple bash script that installs LAMP stack on your system automatically.



                                                                                                                        Just run this command in your terminal to use the bash script:





                                                                                                                        wget --no-cache -O - https://gist.github.com/EmpireWorld/737fbb9f403d4dd66dee1364d866ba7e/raw/install-lamp.sh | bash


                                                                                                                        Also phpMyAdmin installation included in the gist.



                                                                                                                        Check out the Gist







                                                                                                                        share|improve this answer












                                                                                                                        share|improve this answer



                                                                                                                        share|improve this answer










                                                                                                                        answered Jul 8 '17 at 17:50









                                                                                                                        Hasan BayatHasan Bayat

                                                                                                                        1072




                                                                                                                        1072























                                                                                                                            -1














                                                                                                                            Install Wordpress in Computer/Laptop Click the Link Below to Watch



                                                                                                                            https://www.pkilm.com/2019/04/how-to-install-wordpress-in-pc-laptop.html



                                                                                                                            Also Visit www.pkilm.com for more Tips and Tricks






                                                                                                                            share|improve this answer








                                                                                                                            New contributor




                                                                                                                            bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                            Check out our Code of Conduct.

























                                                                                                                              -1














                                                                                                                              Install Wordpress in Computer/Laptop Click the Link Below to Watch



                                                                                                                              https://www.pkilm.com/2019/04/how-to-install-wordpress-in-pc-laptop.html



                                                                                                                              Also Visit www.pkilm.com for more Tips and Tricks






                                                                                                                              share|improve this answer








                                                                                                                              New contributor




                                                                                                                              bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                              Check out our Code of Conduct.























                                                                                                                                -1












                                                                                                                                -1








                                                                                                                                -1







                                                                                                                                Install Wordpress in Computer/Laptop Click the Link Below to Watch



                                                                                                                                https://www.pkilm.com/2019/04/how-to-install-wordpress-in-pc-laptop.html



                                                                                                                                Also Visit www.pkilm.com for more Tips and Tricks






                                                                                                                                share|improve this answer








                                                                                                                                New contributor




                                                                                                                                bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                                Check out our Code of Conduct.










                                                                                                                                Install Wordpress in Computer/Laptop Click the Link Below to Watch



                                                                                                                                https://www.pkilm.com/2019/04/how-to-install-wordpress-in-pc-laptop.html



                                                                                                                                Also Visit www.pkilm.com for more Tips and Tricks







                                                                                                                                share|improve this answer








                                                                                                                                New contributor




                                                                                                                                bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                                Check out our Code of Conduct.









                                                                                                                                share|improve this answer



                                                                                                                                share|improve this answer






                                                                                                                                New contributor




                                                                                                                                bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                                Check out our Code of Conduct.









                                                                                                                                answered 11 mins ago









                                                                                                                                bilal ahmedbilal ahmed

                                                                                                                                1




                                                                                                                                1




                                                                                                                                New contributor




                                                                                                                                bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                                Check out our Code of Conduct.





                                                                                                                                New contributor





                                                                                                                                bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                                Check out our Code of Conduct.






                                                                                                                                bilal ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                                                                                Check out our Code of Conduct.























                                                                                                                                    -7














                                                                                                                                    Try EHCP (easy hosting control panel) ...



                                                                                                                                    ehcp installation on a clean server will do the dirty job for you ...






                                                                                                                                    share|improve this answer




























                                                                                                                                      -7














                                                                                                                                      Try EHCP (easy hosting control panel) ...



                                                                                                                                      ehcp installation on a clean server will do the dirty job for you ...






                                                                                                                                      share|improve this answer


























                                                                                                                                        -7












                                                                                                                                        -7








                                                                                                                                        -7







                                                                                                                                        Try EHCP (easy hosting control panel) ...



                                                                                                                                        ehcp installation on a clean server will do the dirty job for you ...






                                                                                                                                        share|improve this answer













                                                                                                                                        Try EHCP (easy hosting control panel) ...



                                                                                                                                        ehcp installation on a clean server will do the dirty job for you ...







                                                                                                                                        share|improve this answer












                                                                                                                                        share|improve this answer



                                                                                                                                        share|improve this answer










                                                                                                                                        answered Jun 28 '11 at 19:11









                                                                                                                                        Vangelis AfantenosVangelis Afantenos

                                                                                                                                        1




                                                                                                                                        1






























                                                                                                                                            draft saved

                                                                                                                                            draft discarded




















































                                                                                                                                            Thanks for contributing an answer to Ask Ubuntu!


                                                                                                                                            • Please be sure to answer the question. Provide details and share your research!

                                                                                                                                            But avoid



                                                                                                                                            • Asking for help, clarification, or responding to other answers.

                                                                                                                                            • Making statements based on opinion; back them up with references or personal experience.


                                                                                                                                            To learn more, see our tips on writing great answers.




                                                                                                                                            draft saved


                                                                                                                                            draft discarded














                                                                                                                                            StackExchange.ready(
                                                                                                                                            function () {
                                                                                                                                            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f34%2fwhats-the-easiest-way-to-set-up-a-lamp-stack%23new-answer', 'question_page');
                                                                                                                                            }
                                                                                                                                            );

                                                                                                                                            Post as a guest















                                                                                                                                            Required, but never shown





















































                                                                                                                                            Required, but never shown














                                                                                                                                            Required, but never shown












                                                                                                                                            Required, but never shown







                                                                                                                                            Required, but never shown

































                                                                                                                                            Required, but never shown














                                                                                                                                            Required, but never shown












                                                                                                                                            Required, but never shown







                                                                                                                                            Required, but never shown







                                                                                                                                            Popular posts from this blog

                                                                                                                                            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                                                                                                                                            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                                                                                                                                            Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...