LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-04-2009, 09:43 AM   #1
Mat1337
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 1
/var/www & public_html


Hi guys.

I just got a server going, after about 3 days of experimenting. These are the specs below.

--------------------
CentOS 5.2
Apache + PHP + MySQL + Webmin + Usermin


All via yum, so they're all the latest versions.
--------------------

Question:

The directory for the website is /var/www/html - How do I get it like cPanel, where each user has there own public_html directory?

cPanel: /home/ACCOUNT/public_html




Thanks
 
Old 01-04-2009, 10:03 AM   #2
Mat1337
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 1
OK, it's Apache Module mod_userdir - How do I turn it on/change it to?


Ta
 
1 members found this post helpful.
Old 01-04-2009, 11:25 AM   #3
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
Assuming the module is enabled:

http://httpd.apache.org/docs/1.3/mod/mod_userdir.html
 
1 members found this post helpful.
Old 01-04-2009, 10:10 PM   #4
Mat1337
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 1
Don't worry guys...
 
Old 03-16-2009, 04:18 AM   #5
public_domain
LQ Newbie
 
Registered: Feb 2008
Location: seattle
Distribution: CENTOS
Posts: 5

Rep: Reputation: 0
getting the user/public_html

this is accomplished with USERMIN. using WEBMIN >Usermin Configuration > Available Modules >Apache Options Files. the user logs into {site}:20000 and gets their interface from there. at this time, i am not sure how the public gets to that user webpage but i see there is an .htaccess thing available.
 
Old 01-19-2011, 05:06 AM   #6
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
I got the same problem and find this post useful. What I want is to let my user account to have their own public_html directory, so that they can access by www.domain.com/~user


How to ensure the userDir module in apache is load/enabled? Am I asking the wrong question? Please help

Last edited by fhleung; 01-20-2011 at 01:23 AM.
 
Old 01-20-2011, 08:35 PM   #7
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
To enable the apache module, type
Code:
a2enmod
that the Debian way, anyone know howto in other distribution like Fedora?
 
Old 01-27-2011, 03:09 AM   #8
public_domain
LQ Newbie
 
Registered: Feb 2008
Location: seattle
Distribution: CENTOS
Posts: 5

Rep: Reputation: 0
username webpage

How to ensure the userDir module in apache is load/enabled?
i use phpinfo - the mods are listed there; i'm sure there is a cli for that but i cant ever remember them
Am I asking the wrong question? not sure. havent used it in a long while and cant even recall the address syntax... but usermod of some kind because i believe that webmin runs that show - not the regular server apache thing.
here is a link! http://books.google.com/books?id=FyU...ed=0CD4Q6AEwBg

also http://doxfer.webmin.com/Webmin/WU-FTPDServer
 
Old 02-21-2011, 09:34 PM   #9
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Enable the apache module --- a2enmod

Quote:
Originally Posted by Mat1337 View Post
OK, it's Apache Module mod_userdir - How do I turn it on/change it to?
To enable the apache module, type
Code:
a2enmod
thats the Debian way, anyone know howto in other distribution like Fedora?
 
Old 02-24-2011, 05:28 AM   #10
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
bump
 
Old 02-24-2011, 03:23 PM   #11
tenmei08
LQ Newbie
 
Registered: Jan 2011
Location: Roatan Honduras
Distribution: Debian Lenny, Squeeze, Ubuntu Various
Posts: 13

Rep: Reputation: 5
CentOS enable Apache modules

From the link shown below, I found this:
Quote:
For centos/ fedora and other redhat based distributions, things work different than in Ubuntu/ Debian, you need to modify *.conf file stored in /etc/httpd/conf.d/ directory. So for example if you don`t want to use the module expire, to disable this module, you need to rename expire.conf to mod_expire.bkp and then restart apache.
Link

Last edited by tenmei08; 02-24-2011 at 03:24 PM.
 
  


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
Moving /var/www/ 2-tone-joe Linux - Server 2 12-01-2007 02:27 PM
Who should own /var/www and it's contents? morrolan Linux - Server 4 04-03-2007 03:55 PM
VSFTPD /var/www mmethe Linux - Software 2 05-10-2005 05:37 AM
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 12:02 PM
thanks boss....... now i don't have a /var/www joesbox General 4 11-08-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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