User Mode LAMP – Apache, MySQL, PHP in User Land Without Root Permission

It always feels disturbing when a Linux package needs the root permission to install or to run. Most of the times it is possible to get around the root by installing from the source. Sometimes, the vendor does provide you with the ability to install under a user account. That’s the case with skype – that you install the static binary, with firefox – you install the tar.gz binary, with sun JDK – you install the .sh version, and netbeans – you install the .zip package.

I want to run a webserver to test out how AJAX and REST work. But don’t want to install the packages for the whole system. There is a package called XAMPP that does almost exactly what I want, only that it will need a root permission to install. In the end I went the traditional approach: install it from the source.

And it works! I wrote this makefile to share with those who also want to do the same thing. Help yourself! The eventual goal is to build a binary that can be installed from a user account. We’ll be there.


About minghuasweblog

a long time coder
This entry was posted in All, LAMP and Drupal and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s