Solved

saving php file in bluefish (Ububtu)

Posted on 2011-09-22
4
665 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
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

​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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

919 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

22 Experts available now in Live!

Get 1:1 Help Now