How can I make apache to start up automatically on linux mint?












1















I have installed Linux Mint 18.1 Serena and I have XAMPP 5.6.28-1 on my computer. After I turn on my computer, I must run the XAMPP control panel and I must start Apache and MySQL manually.



Does anyone know how this can be done automatically? I don't want to turn on Apache and MySql every time when I start / restart my computer.










share|improve this question














bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from stackoverflow.com Jan 22 '17 at 23:42


This question came from our site for professional and enthusiast programmers.























    1















    I have installed Linux Mint 18.1 Serena and I have XAMPP 5.6.28-1 on my computer. After I turn on my computer, I must run the XAMPP control panel and I must start Apache and MySQL manually.



    Does anyone know how this can be done automatically? I don't want to turn on Apache and MySql every time when I start / restart my computer.










    share|improve this question














    bumped to the homepage by Community 1 min ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






    migrated from stackoverflow.com Jan 22 '17 at 23:42


    This question came from our site for professional and enthusiast programmers.





















      1












      1








      1








      I have installed Linux Mint 18.1 Serena and I have XAMPP 5.6.28-1 on my computer. After I turn on my computer, I must run the XAMPP control panel and I must start Apache and MySQL manually.



      Does anyone know how this can be done automatically? I don't want to turn on Apache and MySql every time when I start / restart my computer.










      share|improve this question














      I have installed Linux Mint 18.1 Serena and I have XAMPP 5.6.28-1 on my computer. After I turn on my computer, I must run the XAMPP control panel and I must start Apache and MySQL manually.



      Does anyone know how this can be done automatically? I don't want to turn on Apache and MySql every time when I start / restart my computer.







      mysql linux






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 22 '17 at 14:18







      user2417624












      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






      migrated from stackoverflow.com Jan 22 '17 at 23:42


      This question came from our site for professional and enthusiast programmers.









      migrated from stackoverflow.com Jan 22 '17 at 23:42


      This question came from our site for professional and enthusiast programmers.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Instead of using XAMPP you should use apache2, mysql-server, mysql-client, php5, phpmyadmin applications from repository of your distro. They will start automatically
          .
          sudo apt-get install apache2
          sudo apt-get install php5 libapache2-mod-php5
          sudo service apache2 restart


          or just reboot your PC
          sudo apt-get install mysql-server mysql-client
          sudo apt-get install phpmyadmin






          share|improve this answer
























          • above commands will install php 7 which I didn't wanted. I am web developer and I need specific php and mysql version installed. That's why I install xampp 5.6.28-1 And neither apache or mysql starts automatically. Any help?

            – user2417624
            Jan 22 '17 at 14:38











          • Are you sure? Version of PHP is indicated in packages name, you couldn't get php7 if you are installing php5.

            – Areso
            Jan 22 '17 at 17:12











          • Well: Line 1: sudo apt-get install apache2 Answer: Package 'apache2' has no installation candidate

            – user2417624
            Jan 22 '17 at 22:38











          • Line 2: sudo apt-get install php5 libapache2-mod-php5 Answer: libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

            – user2417624
            Jan 22 '17 at 22:39











          • As you can see, I was unable to install older version of php, so I install XAMPP

            – user2417624
            Jan 22 '17 at 22:40



















          -1














          For Auto-start on boot/reboot, the following process will worked for me in Ubuntu 13.04 and XAMPP 1.8.1.




          1. Create a script in init.d called lampp


          sudo gedit /etc/init.d/lampp




          1. Paste this code on the script and save


          #!/bin/bash
          /opt/lampp/lampp start




          1. Give -x permissions to the file


          sudo chmod +x /etc/init.d/lampp




          1. Use update-rc.d to install init scripts to all runlevel by typing


          sudo update-rc.d lampp defaults






          share|improve this answer


























          • As it is any value your answer might have is gone when (not if) the link dies. Please provide a self-contained answer.

            – Anthon
            Jan 23 '17 at 20:29











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f339389%2fhow-can-i-make-apache-to-start-up-automatically-on-linux-mint%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown
























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Instead of using XAMPP you should use apache2, mysql-server, mysql-client, php5, phpmyadmin applications from repository of your distro. They will start automatically
          .
          sudo apt-get install apache2
          sudo apt-get install php5 libapache2-mod-php5
          sudo service apache2 restart


          or just reboot your PC
          sudo apt-get install mysql-server mysql-client
          sudo apt-get install phpmyadmin






          share|improve this answer
























          • above commands will install php 7 which I didn't wanted. I am web developer and I need specific php and mysql version installed. That's why I install xampp 5.6.28-1 And neither apache or mysql starts automatically. Any help?

            – user2417624
            Jan 22 '17 at 14:38











          • Are you sure? Version of PHP is indicated in packages name, you couldn't get php7 if you are installing php5.

            – Areso
            Jan 22 '17 at 17:12











          • Well: Line 1: sudo apt-get install apache2 Answer: Package 'apache2' has no installation candidate

            – user2417624
            Jan 22 '17 at 22:38











          • Line 2: sudo apt-get install php5 libapache2-mod-php5 Answer: libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

            – user2417624
            Jan 22 '17 at 22:39











          • As you can see, I was unable to install older version of php, so I install XAMPP

            – user2417624
            Jan 22 '17 at 22:40
















          0














          Instead of using XAMPP you should use apache2, mysql-server, mysql-client, php5, phpmyadmin applications from repository of your distro. They will start automatically
          .
          sudo apt-get install apache2
          sudo apt-get install php5 libapache2-mod-php5
          sudo service apache2 restart


          or just reboot your PC
          sudo apt-get install mysql-server mysql-client
          sudo apt-get install phpmyadmin






          share|improve this answer
























          • above commands will install php 7 which I didn't wanted. I am web developer and I need specific php and mysql version installed. That's why I install xampp 5.6.28-1 And neither apache or mysql starts automatically. Any help?

            – user2417624
            Jan 22 '17 at 14:38











          • Are you sure? Version of PHP is indicated in packages name, you couldn't get php7 if you are installing php5.

            – Areso
            Jan 22 '17 at 17:12











          • Well: Line 1: sudo apt-get install apache2 Answer: Package 'apache2' has no installation candidate

            – user2417624
            Jan 22 '17 at 22:38











          • Line 2: sudo apt-get install php5 libapache2-mod-php5 Answer: libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

            – user2417624
            Jan 22 '17 at 22:39











          • As you can see, I was unable to install older version of php, so I install XAMPP

            – user2417624
            Jan 22 '17 at 22:40














          0












          0








          0







          Instead of using XAMPP you should use apache2, mysql-server, mysql-client, php5, phpmyadmin applications from repository of your distro. They will start automatically
          .
          sudo apt-get install apache2
          sudo apt-get install php5 libapache2-mod-php5
          sudo service apache2 restart


          or just reboot your PC
          sudo apt-get install mysql-server mysql-client
          sudo apt-get install phpmyadmin






          share|improve this answer













          Instead of using XAMPP you should use apache2, mysql-server, mysql-client, php5, phpmyadmin applications from repository of your distro. They will start automatically
          .
          sudo apt-get install apache2
          sudo apt-get install php5 libapache2-mod-php5
          sudo service apache2 restart


          or just reboot your PC
          sudo apt-get install mysql-server mysql-client
          sudo apt-get install phpmyadmin







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 22 '17 at 14:24









          AresoAreso

          11




          11













          • above commands will install php 7 which I didn't wanted. I am web developer and I need specific php and mysql version installed. That's why I install xampp 5.6.28-1 And neither apache or mysql starts automatically. Any help?

            – user2417624
            Jan 22 '17 at 14:38











          • Are you sure? Version of PHP is indicated in packages name, you couldn't get php7 if you are installing php5.

            – Areso
            Jan 22 '17 at 17:12











          • Well: Line 1: sudo apt-get install apache2 Answer: Package 'apache2' has no installation candidate

            – user2417624
            Jan 22 '17 at 22:38











          • Line 2: sudo apt-get install php5 libapache2-mod-php5 Answer: libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

            – user2417624
            Jan 22 '17 at 22:39











          • As you can see, I was unable to install older version of php, so I install XAMPP

            – user2417624
            Jan 22 '17 at 22:40



















          • above commands will install php 7 which I didn't wanted. I am web developer and I need specific php and mysql version installed. That's why I install xampp 5.6.28-1 And neither apache or mysql starts automatically. Any help?

            – user2417624
            Jan 22 '17 at 14:38











          • Are you sure? Version of PHP is indicated in packages name, you couldn't get php7 if you are installing php5.

            – Areso
            Jan 22 '17 at 17:12











          • Well: Line 1: sudo apt-get install apache2 Answer: Package 'apache2' has no installation candidate

            – user2417624
            Jan 22 '17 at 22:38











          • Line 2: sudo apt-get install php5 libapache2-mod-php5 Answer: libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

            – user2417624
            Jan 22 '17 at 22:39











          • As you can see, I was unable to install older version of php, so I install XAMPP

            – user2417624
            Jan 22 '17 at 22:40

















          above commands will install php 7 which I didn't wanted. I am web developer and I need specific php and mysql version installed. That's why I install xampp 5.6.28-1 And neither apache or mysql starts automatically. Any help?

          – user2417624
          Jan 22 '17 at 14:38





          above commands will install php 7 which I didn't wanted. I am web developer and I need specific php and mysql version installed. That's why I install xampp 5.6.28-1 And neither apache or mysql starts automatically. Any help?

          – user2417624
          Jan 22 '17 at 14:38













          Are you sure? Version of PHP is indicated in packages name, you couldn't get php7 if you are installing php5.

          – Areso
          Jan 22 '17 at 17:12





          Are you sure? Version of PHP is indicated in packages name, you couldn't get php7 if you are installing php5.

          – Areso
          Jan 22 '17 at 17:12













          Well: Line 1: sudo apt-get install apache2 Answer: Package 'apache2' has no installation candidate

          – user2417624
          Jan 22 '17 at 22:38





          Well: Line 1: sudo apt-get install apache2 Answer: Package 'apache2' has no installation candidate

          – user2417624
          Jan 22 '17 at 22:38













          Line 2: sudo apt-get install php5 libapache2-mod-php5 Answer: libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

          – user2417624
          Jan 22 '17 at 22:39





          Line 2: sudo apt-get install php5 libapache2-mod-php5 Answer: libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

          – user2417624
          Jan 22 '17 at 22:39













          As you can see, I was unable to install older version of php, so I install XAMPP

          – user2417624
          Jan 22 '17 at 22:40





          As you can see, I was unable to install older version of php, so I install XAMPP

          – user2417624
          Jan 22 '17 at 22:40













          -1














          For Auto-start on boot/reboot, the following process will worked for me in Ubuntu 13.04 and XAMPP 1.8.1.




          1. Create a script in init.d called lampp


          sudo gedit /etc/init.d/lampp




          1. Paste this code on the script and save


          #!/bin/bash
          /opt/lampp/lampp start




          1. Give -x permissions to the file


          sudo chmod +x /etc/init.d/lampp




          1. Use update-rc.d to install init scripts to all runlevel by typing


          sudo update-rc.d lampp defaults






          share|improve this answer


























          • As it is any value your answer might have is gone when (not if) the link dies. Please provide a self-contained answer.

            – Anthon
            Jan 23 '17 at 20:29
















          -1














          For Auto-start on boot/reboot, the following process will worked for me in Ubuntu 13.04 and XAMPP 1.8.1.




          1. Create a script in init.d called lampp


          sudo gedit /etc/init.d/lampp




          1. Paste this code on the script and save


          #!/bin/bash
          /opt/lampp/lampp start




          1. Give -x permissions to the file


          sudo chmod +x /etc/init.d/lampp




          1. Use update-rc.d to install init scripts to all runlevel by typing


          sudo update-rc.d lampp defaults






          share|improve this answer


























          • As it is any value your answer might have is gone when (not if) the link dies. Please provide a self-contained answer.

            – Anthon
            Jan 23 '17 at 20:29














          -1












          -1








          -1







          For Auto-start on boot/reboot, the following process will worked for me in Ubuntu 13.04 and XAMPP 1.8.1.




          1. Create a script in init.d called lampp


          sudo gedit /etc/init.d/lampp




          1. Paste this code on the script and save


          #!/bin/bash
          /opt/lampp/lampp start




          1. Give -x permissions to the file


          sudo chmod +x /etc/init.d/lampp




          1. Use update-rc.d to install init scripts to all runlevel by typing


          sudo update-rc.d lampp defaults






          share|improve this answer















          For Auto-start on boot/reboot, the following process will worked for me in Ubuntu 13.04 and XAMPP 1.8.1.




          1. Create a script in init.d called lampp


          sudo gedit /etc/init.d/lampp




          1. Paste this code on the script and save


          #!/bin/bash
          /opt/lampp/lampp start




          1. Give -x permissions to the file


          sudo chmod +x /etc/init.d/lampp




          1. Use update-rc.d to install init scripts to all runlevel by typing


          sudo update-rc.d lampp defaults







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 23 '17 at 20:41

























          answered Jan 23 '17 at 20:21









          user3412695user3412695

          11




          11













          • As it is any value your answer might have is gone when (not if) the link dies. Please provide a self-contained answer.

            – Anthon
            Jan 23 '17 at 20:29



















          • As it is any value your answer might have is gone when (not if) the link dies. Please provide a self-contained answer.

            – Anthon
            Jan 23 '17 at 20:29

















          As it is any value your answer might have is gone when (not if) the link dies. Please provide a self-contained answer.

          – Anthon
          Jan 23 '17 at 20:29





          As it is any value your answer might have is gone when (not if) the link dies. Please provide a self-contained answer.

          – Anthon
          Jan 23 '17 at 20:29


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f339389%2fhow-can-i-make-apache-to-start-up-automatically-on-linux-mint%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

          サソリ

          広島県道265号伴広島線

          Setup Asymptote in Texstudio