Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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..

root@comp:/home/user#

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)

nautilus

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
add comment

Your Answer

 
discard

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.