LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2012, 05:11 PM   #1
tsheposki
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Configuring eclipse-pdt workspace to communicate with apache root


I store my files in workspace directory and set my document root to workspace, but i have a problem running my files and cant access the root.

Can someone please help on a better way to configure eclipse and apache.
 
Old 08-21-2012, 02:56 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,534

Rep: Reputation: 132Reputation: 132
Welcome tsheposki!

1. What sort of error do you get when you try to display them?

2. In your workspace you can have several projects, i. e. in separate folders and connect to them like: http://localhost/pro1, http://localhost/pro2,...

3. You can configure a virtual host for each project, too. Then you can access them with a name you define. That's more flexible.

But we don't know what you are doing with eclipse yet. PHP, Java,...? In most cases it is better to keep as many of the program files outside of the document root as possible because there they are within reach of the web user.
 
Old 08-21-2012, 01:48 PM   #3
tsheposki
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
The error is no files will be published to the server :http://localhost/www/tst.php.

It does not allow me to create and modify files insite the root file & tells me access denied, please help on how should i set the files to be published locally through the local root.

How to setup vitual webhost for an eclipse workspace?

Last edited by tsheposki; 08-21-2012 at 02:26 PM.
 
Old 08-21-2012, 03:12 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,534

Rep: Reputation: 132Reputation: 132
I wonder where you placed the document root.

You can
sudo chmod 0777 /dir

Then anybody can read and write in there

http://httpd.apache.org/docs/2.2/vhosts/

Last edited by j-ray; 08-21-2012 at 03:14 PM.
 
  


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
[SOLVED] Installing Eclipse PDT on Slackware 64 ethereal1m Slackware 2 04-09-2010 01:04 PM
Eclipse PDT 2.0 vs Zend Studio for Eclipse NaCo Programming 1 02-01-2009 12:35 PM
LXer: Debugging PHP using Eclipse and PDT LXer Syndicated Linux News 0 06-18-2008 10:36 AM
Eclipse PDT: It just keeps racing! eantoranz Linux - Software 0 06-09-2008 03:26 PM
eclipse-pdt crash on fedora core 7 braakiss Linux - Software 1 08-30-2007 12:20 PM


All times are GMT -5. The time now is 07: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration