LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-30-2005, 03:46 AM   #1
sorno
LQ Newbie
 
Registered: Aug 2004
Posts: 21

Rep: Reputation: 15
how to let linux publish my website?


my school use unix, and i can make a directory called public_html in home directory, then i can put my website in it. the website can be browse by others with address like http://xxxxx.edu/~username
is it anyway to do it in my own linux??i am using fedora 3.
 
Old 06-30-2005, 03:59 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Apache

Apache

Apache
 
Old 06-30-2005, 04:06 AM   #3
sorno
LQ Newbie
 
Registered: Aug 2004
Posts: 21

Original Poster
Rep: Reputation: 15
o, i thought linux have apache when i installed it...><
mac os x is easier to do then...i have a powerbook and just have to check something in sys preference, then it tells me the address of my website, and i just have to put my website into the folder called Sites.
 
Old 06-30-2005, 04:09 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Use Mac OS-X then. I don't have a clue about Fedora,
but Slackware Linux has Apache installed by default.
 
Old 06-30-2005, 04:19 AM   #5
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Quote:
Originally posted by sorno
o, i thought linux have apache when i installed it...><
mac os x is easier to do then...i have a powerbook and just have to check something in sys preference, then it tells me the address of my website, and i just have to put my website into the folder called Sites.
In fedora also apache is installed by default.
 
Old 06-30-2005, 05:05 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
In Mandrake, there's Apache too, so probably in Fedora also. The main pages are in /var/www/html if I remember correctly. And what you describe works exactly the same. It just has to be enabled.

Yves.
 
Old 06-30-2005, 12:31 PM   #7
sorno
LQ Newbie
 
Registered: Aug 2004
Posts: 21

Original Poster
Rep: Reputation: 15
/var/www/html is the place for root, so i think it's not that. my school one is like every user can have their own website. so the public_html folder put in the home folder, that's will be it.
and how to enable it?security level?i checked that http already. server configuration?i dont see apache there...just many service that i don know about ><
 
Old 07-01-2005, 03:24 AM   #8
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Apache is the "httpd" service. As for this particular configuration (to enable ~/public_html), I don't know it (never used it), but it should be somewhere in Apache's config. Go to Apache config dir as root (under /etc), and do that:
Code:
# grep -ril "public_html" config/
Sorry if my instructions are not accurate; I don't have Linux at hand now.

Yves.
 
Old 07-01-2005, 04:30 AM   #9
sorno
LQ Newbie
 
Registered: Aug 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by theYinYeti
In Mandrake, there's Apache too, so probably in Fedora also. The main pages are in /var/www/html if I remember correctly. And what you describe works exactly the same. It just has to be enabled.

Yves.
apache is not installed by default, but it''s quite easy to install it in fedora3 anyway. after i installed it, i can put the website as you say: /var/www/html.
however, i cannot find that apache directory, it's not under etc. and only root can put a website, is it anyway i can let user put their website too??
 
Old 07-01-2005, 09:17 AM   #10
bloodfulldesire
LQ Newbie
 
Registered: Feb 2005
Location: usa
Distribution: suse linux 9.2 pro
Posts: 29

Rep: Reputation: 15
you can change user file permission on the folder i know in suse linux if your log in as root you just right click the folder and click permissions an dyou can change them so user's can read , write , execute or what ever you want the user to do
 
Old 07-01-2005, 09:52 AM   #11
sorno
LQ Newbie
 
Registered: Aug 2004
Posts: 21

Original Poster
Rep: Reputation: 15
actually i mean eash user has his or her own website, it should be a way to do it right?
 
Old 07-01-2005, 09:59 AM   #12
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
You need these lines in httpd.conf
Code:
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>
you may find it useful to set some options for /home/*/public_html for example
Code:
<Directory /home/*/public_html>
    Options +Indexes +FollowSymLinks +Includes
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
 
  


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 Help/How to publish webpage? fhleung Linux - Networking 7 09-19-2014 08:42 PM
How to publish evolution inbox & vFolders to web? logularjason Linux - Software 0 03-21-2005 05:35 PM
Trouble opening index.php file to install eZ publish jedson Linux - Software 2 11-01-2004 07:22 AM
which FTP program to publish a web page ruwach Linux - Software 2 08-07-2004 02:19 AM
Publish Cert on LDAP Server PcHammer Linux - Software 1 05-05-2004 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 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