Accessibility without root privileges

ashwini amitabh

New Member
Joined
May 3, 2018
Messages
1
Reaction score
0
Credits
0
Can we install Apache web server on a Linux VM's local directory without having root access ??
 


Hi Ashwini, and welcome! Can you install ANY software in Linux without root access? I don't think so.
 
Hi Ashwini, and welcome! Can you install ANY software in Linux without root access? I don't think so.

Depends on the software in question.

When installing from source-code, many programs can be installed and ran in the local users profile.

This usually involves editing the config files used by the build-system (e.g. make) to change the installation prefix from a system path like /usr or /usr/local to $HOME. But the exact method will vary from program to program.

@ashwini amitabh :
If memory serves, Apache CAN be built from source AND installed to the local users directory, but the installation will be subject to the limits for the user profile it has been installed in.

You can view the users limits using the command:
Code:
ulimit -a

That will tell you things like the maximum number of processes the user can have running, max file-sizes, virtual memory, stack size, cpu-time etc.

Also, because you don't have root access, Apache will be unable to use any ports below 1024.

In other words, you won't be able to use port 80 for http, or 443 for https - you'd have to use something like 8080 for http and 8443 for https.

In order to find out exactly how to build, install and run apache locally - your best bet would be to take a look at the developer documentation for Apache web server. There should be detailed instructions to build, install and test Apache locally, without root.

I would take a look myself, but I don't have time ATM.
 

Members online


Latest posts

Top