File permission

Asked by Afandi

Hi,
I'm new use Ubuntu. I have installed Ubuntu Desktop 12.04 LTS and success.
Than I want use phpmysqadmin and I have install apache2 and it work. but when install PHP5 i cannot save file info.php into /var/www/ -- It said I'm not the owner and I cannot change the permission.

Plaese advise

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can run:

gksudo nautilus $HOME

to run the GUI file manager as root, or you can prefix your cp command with sudo to make it run as root too. You don't need to change any permissions.

Revision history for this message
Afandi (afandi92) said :
#2

Thanks.

Now I can copy and paste phpinfo.php to /var/www/

The other problem is when I make php file use the Text Editor, it cannot be save directly. I save in other folder than copy and paste in to var/www/ -- is there way to save direct to /var/www/ ?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

gksudo gedit

or

gksudo gedit /path/to/somefile

and you will have full access.

Revision history for this message
Afandi (afandi92) said :
#4

Thanks actionparsnip, that solved my question.

Revision history for this message
Afandi (afandi92) said :
#5

Can you help me again?

I have succed open http://localhost/phpmyadmin/ --- but I dont know where is the file placed?
And if my web want to be openned in http://localhost -- where should I place my file?

Thanks.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Can you help with this problem?

Provide an answer of your own, or ask Afandi for more information if necessary.

To post a message you must log in.