LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-12-2011, 11:13 PM   #1
pahunrepublic
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Rep: Reputation: Disabled
Lightbulb Bluefish editor related: to view php files in firefox


Hi everyone?
I'm using bluefish editor. I'd like to run my coded php files in browser (firefox). I mean
-I open *.php file in bluefish editor.
-I press 'view in browser button' .
-I am able to render php file in browser run in localhost.

I use Ubuntu 11.10, I have LAMP installed, My php files are in /home/janos/workspace.
I already found out that I have to enter an external command in Bluefish for the browser or something like that. Preferences > Edit preferences # External commands # Firefox.
What command should I put there? Anyone any idea? Or if that's not the way to view php files than HOW?

Thanx in advance
 
Old 11-13-2011, 09:01 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,251

Rep: Reputation: 252Reputation: 252Reputation: 252
In order to enable interpreting of the php files by your browser, they need to be located in the DocumentRoot. On my home webserver (Fedora 10), that location is /var/www.html. I've set the group ownership of that directory to my normal, non-root user, and have a symlink in my home directory to /var/www/html.
 
Old 11-13-2011, 10:45 AM   #3
pahunrepublic
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RockDoctor View Post
In order to enable interpreting of the php files by your browser, they need to be located in the DocumentRoot. On my home webserver (Fedora 10), that location is /var/www.html. I've set the group ownership of that directory to my normal, non-root user, and have a symlink in my home directory to /var/www/html.
I changed the document root to what is above. There is an option that you can change the document root directory, editing some configuration Apache file in etc/apache2/sites-enabled/ (ubuntu 11). From that time on you can put and run all your *.php files from that directory.But what is the command line that I should put in Bluefish > Prefrences? any idea?
 
Old 11-13-2011, 12:44 PM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,251

Rep: Reputation: 252Reputation: 252Reputation: 252
Haven't used Bluefish in a few years now (haven't had any web pages to create), but I believe the only thing you have to tell Bluefish is the command to load your preferred browser; something like firefox or firefox %s
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Bluefish top Linux HTML editor LXer Syndicated Linux News 0 01-12-2009 08:20 PM
LXer: Video tour: Bluefish editor LXer Syndicated Linux News 0 10-01-2008 11:00 AM
Cannot view PHP files ridge321 Linux - Software 1 02-22-2005 08:51 AM
bluefish=awesome text editor servnov Linux - Newbie 1 10-03-2004 03:17 PM
new convert to slackware - problems installing bluefish editor though melquiades Slackware 11 07-06-2003 09:02 PM


All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration