I am new to the world of linux and I've installed a Xubuntu 12.04 on my desktop computer. I am learning web development (Php, html, CSS, javaScript, JQuery etc...) so I need to establish an Apache server on my machine. With synaptic package manager I already installed some packages that seem to work so when I type localhost to my browser it gives an html site that says:
"It works! This is the default web page for this server. The web server software is running but no content has been added, yet."
I have read a few things on the internet on this topic, and now I know that I should be able to write my php in documents that are stored in filesystem/var/www/ but I cannot create documents in there - apparently because I am not logged in as root. Could somebody help me with that?
Also please note that I have very little (if any at all) knowledge of linux so please make it comprehesnible for such an uninitiated user as I am.
sudo
is the preferred way to run commands as root. See:How to enable root login? – Warren Hill Nov 16 '13 at 17:18the sudo - i solution doesn't work neither does the one described here:How to enable root login?
please consider that I'm a newbie. I just installed my first ubuntu relase a couple hours ago.
– user216408 Nov 16 '13 at 18:25