LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-04-2006, 09:48 PM   #1
DoctorWynn
Member
 
Registered: Nov 2005
Distribution: OpenSuSe 10.1
Posts: 63

Rep: Reputation: 15
Localhost web server setup?


Ok, I've got apache running, phpmyadmin, and I know how to use my /srv/www/htdocs folder to host websites on my machine. However, what I can't figure out, is how to use my public_html folder to host a website. That's what I'm trying to acheive. I'm not using it for the web, just localhost so that I can test changes to my real site hosted elsewhere. I want to try new themes and what not for MdPro, but don't want to do it "live." I want to test them on my machine so I can make sure it's all good.

I know I can just use the /srv/www/htdocs folder (/srv/www/htdocs/mdpro), but I would really prefer to use the /home/tom/public_html, since it's there, and I don't have to worry about changing folder permissions in order to make changes since it's in my home folder.

So basically, rather than set it up to http://localhost/mdpro, I wish to use http://localhost/tom. See what I'm sayin?

Oh, forgot to mention I'm using Suse 10.0 release version under KDE 3.5.

What is the step I'm missing here? Thanx!

Last edited by DoctorWynn; 02-04-2006 at 09:49 PM.
 
Old 02-05-2006, 04:37 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
http://httpd.apache.org/docs/2.0/howto/public_html.html
 
Old 02-05-2006, 09:23 AM   #3
DoctorWynn
Member
 
Registered: Nov 2005
Distribution: OpenSuSe 10.1
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bulliver
Ok, that's what I was looking for! However, I've looked into it, and my userdir module is already enabled, but it still doesn't work. I also can't find where I set it to "public_html" if it isn't already. I realized as well through that link you gave me that I wuz using the incorrect syntax by not including the tilde symbol (http://localhost/~tom). When I go to it now, I get this error,

----------------------------
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
----------------------------

And from reading that page and the related ones, I can't figure out what else I have to do.

Thanx again!
 
Old 02-05-2006, 01:40 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Right, that's because your home directory has 700 permissions, and the webserver, which probably runs as 'nobody' or 'apache' needs to read the files there. You need to change permissions of your /home/username directory to 701 and the public_html directory to the same. Plus of course all files _in_ the public_html directory must be readable by apache.

If you don't like the security implications of this (and I know I don't) you can change the group owner of these directories to the apache group and have them 710 instead.

Sorry, I thought that would be mentioned in the guide.
 
  


Reply



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
Web server setup apocolpse Linux - Newbie 2 08-14-2005 10:09 AM
setup mailserver/web server/ftp server hariiyer Linux - Networking 1 11-27-2004 01:16 AM
web server setup ? my-unix-dream Linux - Newbie 1 06-21-2004 01:29 AM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM
Linux Server Setup and Localhost Scarpa Linux - Security 7 07-17-2003 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:43 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
Open Source Consulting | Domain Registration