I am very new to Ubuntu and I still don't understand a lot of basic concepts so please bear with me.
I successfully installed XAMPP 1.7.4 in my ubuntu 11.04. The XAMPP is installed in /opt/lampp
. I know how to write php file in /opt/lampp/htdocs
using the bash terminal command sudo gedit /opt/lampp/htdocs/myphpfile.php
but what if I already have an existing php file inside a folder? Of course I don't want to write it again using sudo command. All I want to do is copy that folder that contains the php files inside htdocs
like I always do in Windows WAMP. Is there a command in which I could set the /opt
folder to writeable? Please help me.
Best Answer
You could always open up the file-browser (nautilus) as Arvind said by
gksudo nautilus /opt/lampp/htdocs
To expand on Will's answer (you can chmod)
This will change the ownership of the
/opt/lampp/htdocs/
to you:This will change the folder's permissions to be read, write and executed by you ONLY: