how to install apache,mysql,php as non root without using apt-get?

6,252

Provided your system has the resources to accommodate a virtual machine, you could try a much cleaner approach. You can install a pre-made lamp stack from bitnami or turnkey. This approach is cleaner because your host system is left unaffected. Plus you get to play - if you like - with a bunch of different technologies like connecting to and managing a remote server (either through the web interface or via command line), configuring networks, setting-up/modifying ssl settings, etc. You can explore at your heart's content and it's a great learning experience.

Edit: Just to make things clear. Both bitnami and turnkey offer native installers for a wide range of operating systems. This option installs a full blown stack on your machine. What I am referring to in my answer is the virtual machine option. In this case you will download a ready-made virtual machine and run it with vmware (free player) or VirtualBox (free). This option is what I refer to as "clean" because it is completely autonomous from your host system and portable (you can copy the virtual machine files to another host at any time with no need to reconfigure anything)

Share:
6,252

Related videos on Youtube

karna
Author by

karna

Updated on September 18, 2022

Comments

  • karna
    karna over 1 year

    I am using ubuntu 13.04 version.I am newbie for ubuntu.Can i able to install LAMP as non-root and without using sudo apt-get?

    • Radu Rădeanu
      Radu Rădeanu almost 11 years
      Using Windows, of course!
    • Kevin Bowen
      Kevin Bowen almost 11 years
      have you looked at the taskel option?
  • Alvar
    Alvar almost 11 years
    so what you are saying is that you can download it and start it but you can't use it unless you are sudo. And if you are sudo why not use apt-get to begin with?
  • AJefferiss
    AJefferiss almost 11 years
    @Alvar, that is what I'm saying yes. I was just in the process of updating my answer to cover that a little better :)
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
    @AJefferiss You can't install/uninstall nothing in Ubuntu, without being asked about password or without being root.
  • AJefferiss
    AJefferiss almost 11 years
    @RaduRădeanu xampp isn't technically installed, it's a statically linked version of a lampp stack. So you can just drop it into a directory under ~/. What you can't do with xampp is start it on privileged ports without sudo
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
    @AJefferiss Because when you start it will install something not under your home directori
  • AJefferiss
    AJefferiss almost 11 years
    @RaduRădeanu what does it install? It's my understanding that it creates a instance of Apache that has a document root of ~/lampp/htdocs (presuming you extracted the tar.gz to ~/). To get rid of it completely all you need to do is delete that directory...
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
    @AJefferiss In linux "everything is a file", even if is a instance or a process and this should be placed/installed somewhere. This was what I meant.
  • karna
    karna almost 11 years
    Thankyou. I downloaded bitnami-lampstack-5.4.15-0-linux-installer.run. But i couldn't able to install it.can you tell me how to install it?
  • hmayag
    hmayag almost 11 years
    You have downloaded the installer. To install this you need to make it executable. Open a terminal and type chmod +x bitnami-lampstack-5.4.15-0-linux-installer.run then ./bitnami-.... to run it. This will install the lamp stack on your machine. In my answer I was referring to the virtual machine, which comes as a zip file and contains a .iso image that you can install on a virtual machine like virtualbox or vmware.
  • hmayag
    hmayag almost 11 years
    A correction to my above comment: the .zip file contains a .vmdk file which is a ready made virtual machine disk that you need to attach to a (new) virtual machine. Check the instructions - with screenshots - here: wiki.bitnami.com/…