Have installed 9.1. Finally got Apache 2 up an running. Now am trying to get UserDir to work correctly. (I am fairly new to Linux) Followed the example in both the conf file and on the Apache Web site. Both state the following is acceptable and should work. UserDir enabled UserDir disabled root I then uncommented UserDir public_html I then try to restart Apache and it fails saying that the enabled command must be followed by user names that are enabled.... Anyone have any ideas that would help? Thanks
Steven B.Chasin wrote:
Have installed 9.1. Finally got Apache 2 up an running. Now am trying to get UserDir to work correctly. (I am fairly new to Linux)
Followed the example in both the conf file and on the Apache Web site. Both state the following is acceptable and should work.
UserDir enabled UserDir disabled root
I then uncommented UserDir public_html
I then try to restart Apache and it fails saying that the enabled command must be followed by user names that are enabled....
Anyone have any ideas that would help?
Thanks
The message is correct. The ¨enabled" and "disabled" commands are for explicit control over who's directories may be accessed. You need to list at least one enabled user if you wish to use that command. Good luck, Jim
On Nov 18, 2004, at 18:37, Jim Sabatke wrote:
The message is correct. The ¨enabled" and "disabled" commands are for explicit control over who's directories may be accessed. You need to list at least one enabled user if you wish to use that command.
According to the example on the Apache web site, just using the enabled command should work to enable all. I take it that is not the case ?
Steven B.Chasin wrote:
On Nov 18, 2004, at 18:37, Jim Sabatke wrote:
The message is correct. The ¨enabled" and "disabled" commands are for explicit control over who's directories may be accessed. You need to list at least one enabled user if you wish to use that command.
According to the example on the Apache web site, just using the enabled command should work to enable all. I take it that is not the case ?
I used it per user. Maybe it does work that way. I'd be interested to know if it does. Jim
On Nov 18, 2004, at 23:34, Jim Sabatke wrote:
According to the example on the Apache web site, just using the enabled command should work to enable all. I take it that is not the case ?
I used it per user. Maybe it does work that way. I'd be interested to know if it does.
I just tried it with including the name of the specific user I want enabled and I still get no where. The actual error I receive, both locally and via another computer on the home network is an Access Forbidden Error 403. My thinking is it is a permissions problem but for the life of me I can't seem to see where the problem is. The error log reads: [Thu Nov 18 23:28:29 2004] [error] [client 192.168.1.10] client denied by server configuration: /home2/sbchasin/public_html [Thu Nov 18 23:28:49 2004] [error] [client 192.168.1.3] client denied by server configuration: /home2/sbchasin/public_html/index.html 10 is the remote box, and 3 is the local box. Permissions for /home2, /home2/sbchasin/, and /home2/sbchasin/public_html are all dwrxr-xr-x. I also tried dwrxr--r-- and that didn't work either. Thanks Steve
On Thu, Nov 18, 2004 at 05:37:43PM -0600, Jim Sabatke wrote:
Steven B.Chasin wrote:
Have installed 9.1. Finally got Apache 2 up an running. Now am trying to get UserDir to work correctly. (I am fairly new to Linux)
Followed the example in both the conf file and on the Apache Web site. Both state the following is acceptable and should work.
UserDir enabled UserDir disabled root
I then uncommented UserDir public_html
I then try to restart Apache and it fails saying that the enabled command must be followed by user names that are enabled....
Anyone have any ideas that would help?
Thanks
The message is correct. The ¨enabled" and "disabled" commands are for explicit control over who's directories may be accessed. You need to list at least one enabled user if you wish to use that command.
The "UserDir disabled" functions as a blacklist, while the "UserDir enabled" generally enables the stuff. There is no need to list individual users, although it is certainly possible. Pete
On Thursday 18 November 2004 23:49, Steven B.Chasin wrote:
Have installed 9.1. Finally got Apache 2 up an running. Now am trying
I assume you installed the apache2 rpms from 9.1, correct?
to get UserDir to work correctly. (I am fairly new to Linux)
Followed the example in both the conf file and on the Apache Web site.
What conf file?
Both state the following is acceptable and should work.
UserDir enabled UserDir disabled root
I then uncommented UserDir public_html
I then try to restart Apache and it fails saying that the enabled command must be followed by user names that are enabled....
Anyone have any ideas that would help?
Hmm, Did you read /etc/apache2/mod_userdir.conf? Cheers, Leen
On Nov 18, 2004, at 18:42, Leendert Meyer wrote:
On Thursday 18 November 2004 23:49, Steven B.Chasin wrote:
Have installed 9.1. Finally got Apache 2 up an running. Now am trying
I assume you installed the apache2 rpms from 9.1, correct?
Fresh install from the 9.1 CD's and then online update. I have had them for a while, but didn't have a free box.
to get UserDir to work correctly. (I am fairly new to Linux)
Followed the example in both the conf file and on the Apache Web site.
What conf file?
mod_userdir.conf
Both state the following is acceptable and should work.
UserDir enabled UserDir disabled root
I then uncommented UserDir public_html
I then try to restart Apache and it fails saying that the enabled command must be followed by user names that are enabled....
Anyone have any ideas that would help?
Hmm, Did you read /etc/apache2/mod_userdir.conf?
Yes, and my understanding is that UserDir enabled should enable for all and should work.
Cheers,
Leen
On Friday 19 November 2004 04:29, Steven B.Chasin wrote:
On Nov 18, 2004, at 18:42, Leendert Meyer wrote:
On Thursday 18 November 2004 23:49, Steven B.Chasin wrote:
Have installed 9.1. Finally got Apache 2 up an running. Now am trying
I assume you installed the apache2 rpms from 9.1, correct?
Fresh install from the 9.1 CD's and then online update. I have had them for a while, but didn't have a free box.
to get UserDir to work correctly. (I am fairly new to Linux)
Followed the example in both the conf file and on the Apache Web site.
What conf file?
mod_userdir.conf
Both state the following is acceptable and should work.
UserDir enabled UserDir disabled root
I then uncommented UserDir public_html
I then try to restart Apache and it fails saying that the enabled command must be followed by user names that are enabled....
Anyone have any ideas that would help?
Hmm, Did you read /etc/apache2/mod_userdir.conf?
Yes, and my understanding is that UserDir enabled should enable for all and should work.
Ok, as a test, I removed the packages apache2, apache2-prefork, and apache2-mod_php4, I removed the /etc/apache2 directory, and I removed /etc/sysconfig/apache2 (after making backups ;). I re-installed those packages, did 'SuSEconfig --module apache2', and restarted apache2 with 'rcapache2 restart'. Out of the box, I had access to http://localhost/~leen/. So without configuring a thing. BTW, there is also a 'UserDir public_html' in default-server.conf. I did this initially on 9.2, but being paranoid, also on 9.1, with the same result. I hope this is of use to you. ;) Cheers, Leen
On Nov 19, 2004, at 14:48, Leendert Meyer wrote:
Ok, as a test, I removed the packages apache2, apache2-prefork, and apache2-mod_php4, I removed the /etc/apache2 directory, and I removed /etc/sysconfig/apache2 (after making backups ;).
I re-installed those packages, did 'SuSEconfig --module apache2', and restarted apache2 with 'rcapache2 restart'.
Out of the box, I had access to http://localhost/~leen/. So without configuring a thing.
BTW, there is also a 'UserDir public_html' in default-server.conf.
I did this initially on 9.2, but being paranoid, also on 9.1, with the same result.
I hope this is of use to you. ;)
I shall try that then... Thanks Steve
On Fri, Nov 19, 2004 at 08:48:03PM +0100, Leendert Meyer wrote:
Ok, as a test, I removed the packages apache2, apache2-prefork, and apache2-mod_php4, I removed the /etc/apache2 directory, and I removed /etc/sysconfig/apache2 (after making backups ;).
I re-installed those packages, did 'SuSEconfig --module apache2', and restarted apache2 with 'rcapache2 restart'.
Out of the box, I had access to http://localhost/~leen/. So without configuring a thing.
Exactly, the needed module mod_userdir is loaded by default, and the needed configuration is all there.
BTW, there is also a 'UserDir public_html' in default-server.conf.
I did this initially on 9.2, but being paranoid, also on 9.1, with the same result.
I hope this is of use to you. ;)
Use the following commands to check whether wwwrun has access to a public_html directory: su - -s /bin/bash wwwrun cd /home cd username cd public_html ls exit Peter
* Steven B.Chasin
Have installed 9.1. Finally got Apache 2 up an running. Now am trying to get UserDir to work correctly. (I am fairly new to Linux)
Followed the example in both the conf file and on the Apache Web site. Both state the following is acceptable and should work.
UserDir enabled UserDir disabled root
I then uncommented UserDir public_html
I then try to restart Apache and it fails saying that the enabled command must be followed by user names that are enabled....
Anyone have any ideas that would help?
IIANM, <user>/public_html is accessable by default. Undo the changes you have made, you did keep track, and try again. YaST2 -> System -> Editor for sysconfig files -> Network -> WWW -> Apache -> HTTPD_SEC_PUBLIC_HTML -> Yes (default) -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Nov 18, 2004, at 19:08, Patrick Shanahan wrote:
IIANM, <user>/public_html is accessable by default. Undo the changes you have made, you did keep track, and try again.
YaST2 -> System -> Editor for sysconfig files -> Network -> WWW -> Apache -> HTTPD_SEC_PUBLIC_HTML -> Yes (default)
I just checked and i do not have HTTPD_SEC_PUBLIC_HTML as an option.....
* Steven B.Chasin
I just checked and i do not have HTTPD_SEC_PUBLIC_HTML as an option.....
then search for public_html and follow. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
participants (5)
-
Jim Sabatke
-
Leendert Meyer
-
Patrick Shanahan
-
poeml@cmdline.net
-
Steven B.Chasin