Solved

saving php file in bluefish (Ububtu)

Posted on 2011-09-22
4
656 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
  • 2
4 Comments
 
LVL 5

Expert Comment

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

Author Comment

by:dvcphp
Comment Utility
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
Comment Utility
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
Comment Utility
Solved it .thanks.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now