saving php file in bluefish (Ububtu)

HI Experts,
I know how to write php script from the command line in ubuntu.I do nano test.php.

I have downloaded Bluefish editor successfully and wrote a test program.I tried to save it in /opt/lampp/htdocs.But it is not being saved on it.When I tried to run it on localhost ,it gives error.and when I try to run it from the bluefish editor,the url looks like this which is ofcorse not correct.
file:///opt/lampp/htdocs/test2.php   INstead of http://localhost/test2.php.

PLease help,
Thanks.
dvcphpAsked:
Who is Participating?
 
gimecoffeeConnect With a Mentor Commented:
Depends on how your system is setup.  You might be able to use sudo
sudo chmod 777 /opt/lampp/htdocs

if that doesn't work then change to the root user with the su command and then run
chmod 777 /opt/lampp/htdocs
0
 
vaska94Commented:
give chmod 777 permission on htdocs folder or run the editor with sudo.
that will fix the saving problem :)
0
 
dvcphpAuthor Commented:
can you please explain how.I am new to ubuntu.Do you want me to type just
chmod 777
0
 
dvcphpAuthor Commented:
Solved it .thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.