Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed LAMP server using such command:

sudo apt-get install apache2 apache2-mod-php5 php5 mysql-server phpmyadmin

I opened localhost and it said 'It Works!'.

I also opened localhost/phpmyadmin and it says 404...

Anyway its not the biggest problem. The biggest one is that I cant even upload files to it. I go to System Files -> var -> www. I see here index.html. I can only read it (readonly) and can't save it to apply changes. I cant even add any files to www folder!

When I try to (open Text Editor, write some script and save it in www folder) it gives me an error (something that I cant save files in this directory).

Please help me solving this problem. Im trying to for few days I have reinstalled whole Ubuntu few times, and still nothing.. Greetings

share|improve this question

hmm.. for localhost/phpmyadmin, try created a symbolic link named phpmyadmin in /var/www

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

when your phpmyadmin folder is located in /usr/share/ that work in most problem with 404 page, but if that not working try this thread

then for your problem about folder var/www .. are you doing that as root or user? because /var folder can only access with root permission..

sudo -i

can switch you to root,when change like this..


then you can edit with text editor like gedit or geany

geany var/www/info.php

with this you can edit and save, if you want to add file to var/www try this (from a root shell)


if you want know more or want edit all folder and file without root try this thread

i hope that help

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.