LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   /var/www & public_html (https://www.linuxquestions.org/questions/linux-server-73/var-www-and-public_html-694861/)

Mat1337 01-04-2009 08:43 AM

/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

Mat1337 01-04-2009 09:03 AM

OK, it's Apache Module mod_userdir - How do I turn it on/change it to? :p


Ta

bmarx 01-04-2009 10:25 AM

Assuming the module is enabled:

http://httpd.apache.org/docs/1.3/mod/mod_userdir.html :)

Mat1337 01-04-2009 09:10 PM

Don't worry guys...

public_domain 03-16-2009 03:18 AM

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.

fhleung 01-19-2011 04:06 AM

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

fhleung 01-20-2011 07:35 PM

To enable the apache module, type
Code:

a2enmod
that the Debian way, anyone know howto in other distribution like Fedora?

public_domain 01-27-2011 02:09 AM

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

fhleung 02-21-2011 08:34 PM

Enable the apache module --- a2enmod
 
Quote:

Originally Posted by Mat1337 (Post 3396739)
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?

fhleung 02-24-2011 04:28 AM

bump

tenmei08 02-24-2011 02:23 PM

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


All times are GMT -5. The time now is 12:02 PM.