0

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.

1 Answers1

0

Type sudo in front of the commands you want to execute as root. You cand easily create documents by going sudo <your main text editor> <desired filename>.

Also sudo -i of you want to keep elevated root rights until you command exit.