LinuxQuestions.org
Review your favorite Linux distribution.
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 01-22-2006, 11:42 PM   #1
gbiyer
LQ Newbie
 
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11

Rep: Reputation: 0
Setting Up APACHE on FEDORA CORE 4


I logged in FEDORA Core 4 as a user. The Apache Server is up & running. So is the MySql Database. The Apache is configured to serve PHP Pages. But as a normal user i cannot access the /var/www/html directory. Also i do not want to work as ROOT.

There is somthing called "UserDirectory" option in httpd.conf. I tried to configure it but am not ablle to do so. I thing with this configured i can setup my site directory in HOME/$USER directory.

Please tell me how to go amout it. I tried to configure it by using various posts on the net, but could not find the solution.

HELP!!!!!!
 
Old 01-23-2006, 12:34 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
If Apache is running as the apache user, does that user have rights to the /var/www/html directory structure?
 
Old 01-23-2006, 12:31 PM   #3
gbiyer
LQ Newbie
 
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11

Original Poster
Rep: Reputation: 0
As a normal user u can have read access to /var/www/html. But for development purpose it is not ok.
 
Old 01-23-2006, 02:46 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Clearly NOT an introduction, moved to Linux - Newbie. Please choose your forum more carefully before you post next time.
 
Old 01-23-2006, 05:07 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You need to create a directory called public_html, give it permissions of 755 and put your files in there. To access your files from a web browser you would do something like http://localhost/~username/file.php. Also make sure that you have uncommented the userdir part in your httpd.conf.
 
Old 01-24-2006, 11:26 AM   #6
gbiyer
LQ Newbie
 
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11

Original Poster
Rep: Reputation: 0
I tried as u mentioned. but it gives the following error

-----------------------------------------------------------------------
Not Found

The requested URL /~username/index.php was not found on this server.
Apache/2.0.54 (Fedora) Server at localhost Port 80
-----------------------------------------------------------------------

I tried replacing ~username with the actual user name, still the same message with the actual user name in it.

What can be the problem now
 
Old 01-24-2006, 01:27 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Did you enable "userdir" in httpd.conf because it is disabled by default. You may need to put "public_html" as the default user directory in the userdir section of your httpd.conf. If all this is jargon, look for documentation regarding userdir on the apache website.

Last edited by reddazz; 01-24-2006 at 01:30 PM.
 
Old 01-24-2006, 02:05 PM   #8
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
or change the 'Document Root' in httpd.conf to somthing that you will have access to..
 
  


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
Setting up Fedora Core server Mystified Fedora 1 06-10-2005 05:24 PM
setting up dvdrom in fedora core 2 Skawaii Linux - Hardware 2 11-19-2004 04:26 PM
what are those steps to setting up my network on fedora core 2? krt47 Linux - Networking 10 08-12-2004 03:17 PM
setting up a domain in fedora core Gatekeeper785 Linux - Networking 0 04-10-2004 09:48 PM
Setting up xDSL Connection with Fedora Core 1 drzeyd Linux - Newbie 8 12-07-2003 02:35 PM


All times are GMT -5. The time now is 10:45 AM.

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