how to install apache,mysql,php as non root without using apt-get?
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)
Related videos on Youtube
karna
Updated on September 18, 2022Comments
-
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 almost 11 yearsUsing Windows, of course!
-
Kevin Bowen almost 11 yearshave you looked at the taskel option?
-
-
Alvar almost 11 yearsso 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 aresudo
why not use apt-get to begin with? -
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 almost 11 years@AJefferiss You can't install/uninstall nothing in Ubuntu, without being asked about password or without being root.
-
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 almost 11 years@AJefferiss Because when you start it will install something not under your home directori
-
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 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 almost 11 yearsThankyou. 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 almost 11 yearsYou 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 almost 11 yearsA 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/…