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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-22-2006, 10:42 PM
|
#1
|
LQ Newbie
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11
Rep:
|
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!!!!!!
|
|
|
01-22-2006, 11:34 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
If Apache is running as the apache user, does that user have rights to the /var/www/html directory structure?
|
|
|
01-23-2006, 11:31 AM
|
#3
|
LQ Newbie
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11
Original Poster
Rep:
|
As a normal user u can have read access to /var/www/html. But for development purpose it is not ok.
|
|
|
01-23-2006, 01:46 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Clearly NOT an introduction, moved to Linux - Newbie. Please choose your forum more carefully before you post next time.
|
|
|
01-23-2006, 04:07 PM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
01-24-2006, 10:26 AM
|
#6
|
LQ Newbie
Registered: Sep 2003
Location: Bangalore
Distribution: FEDORA CORE 4
Posts: 11
Original Poster
Rep:
|
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
|
|
|
01-24-2006, 12:27 PM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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 12:30 PM.
|
|
|
01-24-2006, 01:05 PM
|
#8
|
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065
Rep:
|
or change the 'Document Root' in httpd.conf to somthing that you will have access to..
|
|
|
All times are GMT -5. The time now is 01:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|