Originally Posted by youngtom
To edit a file in /etc, you'll need to use sudo on ubuntu.
For step 3, you'll need to do
sudo vi /etc/apache2/apache2.conf
and type in your password when prompted and then you are prompted.
Those who know vi, love vi those who don't tend to hate it.
[If you want to use a GUI text editor instead of vi type:
for Gnome (Unbuntu users)
sudo gedit /etc/apache2/apache2.conf
sudo kwrite /etc/apache2/apache2.conf
[Edited to add:]
Some distros do not allow other users to access X by default. If you attempt either of the above and get a "cannot connect to X server" or "cannot open display" error just try one of the options below
this will bring up a command line editor that while far less powerful is far easier to manipulate than vi.
sudo jpico /etc/apache2/apache2.conf
To avoid the command line entirely you can either look for and open a "super user file manager" in your tool bar, then surf to the file and open it, or most distros offer a way to right click on any launcher icon and run as root. For Suse:
Right click on the icon
Select Put into run dialog
If not expanded expand the options
Look for Run as different user (root is entered as default)
supply the root password and click run.
application is now running as root