Web Hosting Talk







View Full Version : Personal WebServer | Need Help


LynxPrime
03-25-2004, 03:23 AM
I was making my own personal web server with a lot of the bells whistles such as mysql and php ftp and so on, or my family. I just wish to get down a dirty so to say, I would like to setup this server all by my self not like the servers I have online.

I ran into a few things when I was trying to setup the public_html in the user home dir

This is what I got in the httpd.conf


<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable
UserDir public_html

#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
#UserDir public_html

</IfModule>

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

when I type http://IP/~user ie http://192.168.0.100/~mike

I get a 403 error, I checked the permissions and they seem to be right the public_html chmod is set to 775.

Server is running fedora core 1, 2.0 apache, webmin, usermin, virtualmin.

HOUSCOUS
03-25-2004, 03:32 AM
Do not have index file.

LynxPrime
03-25-2004, 04:30 AM
i do have a index file index.php and that didnt work then i did a simple index.htm


Forbidden
You don't have permission to access /~mike on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.0.48 (Fedora) Server at 192.168.0.100 Port 80

ksstudio
03-25-2004, 12:17 PM
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
#Listen 3000
#Listen 12.34.56.78:80

Change to :
Listen 192.168.0.100

LynxPrime
03-25-2004, 12:49 PM
did that already but i have it with the port ill try it

well it said a "Port must be specified"

same thing it dont work
may i post my whole conf?

i think i have to mess with the Virtual Hosts right?
please note that im not looking at my servers conf, i wish to do this by hand and with people help thx you

LynxPrime
03-26-2004, 03:37 PM
any1 know good sites

i tryed

http://google.com/linux

i got some good stuff, but i seem not to be able to work it out.

daru
03-26-2004, 08:17 PM
what it says in the error_log ?

LynxPrime
03-29-2004, 04:09 AM
crap i installed cPanel got an error on install and had to format the server... ill get every runing again and ill let u know.

thx you for the reply

LynxPrime
03-29-2004, 04:03 PM
im a goof ball!!

i found out why thx you for your ideas
but all i did, and over looked was the


NameVirtualHost *:80


should have put


NameVirtualHost 192.168.0.97:80


closed thx you all :)