Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 133499  / 2 Years ago, sat, april 30, 2022, 12:57:31

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.


More From » xampp

 Answers
1

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:



sudo chown username:groupname /opt/lampp/htdocs
Example : (My username is nits and my group name is also nits)
sudo chown nits:nits /opt/lampp htdocs


This will change the folder's permissions to be read, write and executed by you ONLY:



sudo chmod 700 /opt/lampp/htdocs

[#44040] Sunday, May 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
afisird

Total Points: 193
Total Questions: 112
Total Answers: 111

Location: Angola
Member since Mon, Jul 12, 2021
3 Years ago
;