Solved

saving php file in bluefish (Ububtu)

Posted on 2011-09-22
4
712 Views
Last Modified: 2012-05-12
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.
0
Comment
Question by:dvcphp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Expert Comment

by:vaska94
ID: 36584787
give chmod 777 permission on htdocs folder or run the editor with sudo.
that will fix the saving problem :)
0
 

Author Comment

by:dvcphp
ID: 36584908
can you please explain how.I am new to ubuntu.Do you want me to type just
chmod 777
0
 
LVL 1

Accepted Solution

by:
gimecoffee earned 500 total points
ID: 36587640
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
 

Author Closing Comment

by:dvcphp
ID: 36934864
Solved it .thanks.
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question