I have multiple questions and I am confused.
Few months back, I was installing a software locally ~/bin
. Tools got installed successfully and running fine till date.
In installation it automatically created var/www/
and added its folders in ~/bin
.
Now, I am trying to learn some php development. I have installed apache from source, locally on ~/someFolder
, installation is complete. I did sudo ~/someFoler/bin ./apachetl start
; localhost
on browser, and It works
message received on browser.
I do not want to use sudo
, and do all my learning experiments in /usr/local
or /usr/var/www
. Sorry, I do not understand well these directories.
From what all I have read and gone through, most users work in /usr/var
or usr/local
. However, while copying, removing or doing anything it requires sudo
.
What is the work around for this?
How do I get Apache and PHP working locally without using too many sudo
commands?
I read port 80 is required to start the server. Hence, sudo
is necessary while starting the server.
Any help in these would be highly appreciated.
machine specification: Linux 3.11.0-15-generic x86_64
Ubuntu 13.10
Edited
If I install apache and php by sudo, would I have to move my web pages to /var/www
location?
var/www/
is because I don't know where your current directory is. is it in your home folder? the root? be specific. also, why don't you likesudo
? I don't see anything wrong with using Ubuntu's Apache packages. why in the world are you building everything yourself?pkexec
instead ofsudo
?