wilcal Posted September 13, 2005 Report Share Posted September 13, 2005 A quick question here about the lastest beta release of 2006, the Apache webserver. All previous versions of Mandrake/Mandriva have a default page with loads of information about Apache. That has now been simplified down to a blank page except for the words: It Works! Ok fine, It works and the latest RPM for Webmin (1.220) installs just fine and it tells me that Apache is running. But Creating a public_html directory in a users root is not reachable. Example /home/testuser/public.html/index.html In a browser http://127.0.0.1/ gets you the It works page but http://127.0.0.1/~testuser/ gets you nothing even though it exists anyone else run into this? This process in 2005 LE runs just fine without having to manage anything. Thanks Quote Link to comment Share on other sites More sharing options...
uralmasha Posted September 14, 2005 Report Share Posted September 14, 2005 (edited) I came across this problem in RC1/Beta4. The user directories are disabled by default and/or the mod_userdir is not installed, either, as far as I can tell. You can fix it in 2 ways: 1) Install drakwizard (as of 13 Sept it installs) and then go to MCC-> Sharing-> Setup a web server , and enable the feature in the wizard dialog. In my case It also had to install some module, I believe it was mod_userdir, but I am not entirely sure. By crutinizing the original httpd.conf with that created by the wizard, the wizard seems to be replacing in the configuration of acess rights all default directories names names for cgi, cgi-protected-scripts, icons to /var/www/html , so you'll have to check it afterwards, if it matters for you. 2) Install the module and modify httpd.conf to load the module and enable user dirs, and specify their name. I get this new chunk in the httpd.conf: # add usermod dir support <IfModule mod_userdir.c> UserDir public_html </IfModule> <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory> hope this helps Edited September 14, 2005 by uralmasha Quote Link to comment Share on other sites More sharing options...
wilcal Posted September 14, 2005 Author Report Share Posted September 14, 2005 I came across this problem in RC1/Beta4.....hope this helps Yes, sure does. Just confirming that it happens is fine. I'm sure it will all be corrected by the time 06 goes official. 2006 0.3 installed Gnome but never turned it on because they were waiting for the newer version. There were also some RPM install errors. Quote Link to comment Share on other sites More sharing options...
wilcal Posted September 23, 2005 Author Report Share Posted September 23, 2005 (edited) I came across this problem in RC1/Beta4.The user directories are disabled by default and/or the mod_userdir is not installed, either, as far as I can tell. In my case It also had to install some module, I believe it was mod_userdir, but I am not entirely sure. As it turns out the public_html user directory is turned off in cooker by default and you do have to "turn it on" by installing the "mod_userdir" module. I am not an Apache expert so how do you "install the mod_userdir module". Is it an RPM? Or just that it is part of the Apache code and the text that you recommeded above installs it. thanks Edited September 23, 2005 by wilcal Quote Link to comment Share on other sites More sharing options...
wilcal Posted September 23, 2005 Author Report Share Posted September 23, 2005 I found this: http://rpm.pbone.net/index.php3/stat/4/idp...S.i586.rpm.html and will try it this weekend to see if it works on cooker. I doubt it. Quote Link to comment Share on other sites More sharing options...
uralmasha Posted September 25, 2005 Report Share Posted September 25, 2005 (edited) Wilcal, By "install" I meant urpmi apache-mod_userdir That's the best way to install things on Mandriva (before another installer, "smart" comes true). After that you'll have to add some lines to httpd.conf fille, like those I posted above. You may need to add the following line as well, better next to other "loadModule" commands: LoadModule userdir_module modules/mod_userdir.so (although I have it commented, still user_dir does get loaded :unsure: ) You'll have to do service httpd restart before you'll see the changes. Edited September 25, 2005 by uralmasha Quote Link to comment Share on other sites More sharing options...
wilcal Posted September 26, 2005 Author Report Share Posted September 26, 2005 (edited) This "Bug" has been officially acknowledged, and assigned, in the Cooker Bugzilla. Visit: http://qa.mandriva.com/show_bug.cgi?id=18775 for it's status. Edited September 26, 2005 by wilcal Quote Link to comment Share on other sites More sharing options...
wilcal Posted September 26, 2005 Author Report Share Posted September 26, 2005 (edited) Wilcal,By "install" I meant urpmi apache-mod_userdir .......... Thanks..The Mandriva Bugzilla team has acknowledged the fault and assigned it. I would expect that the next release should be a lot easier to let users have their own webpages function. I agree with you that you can get into the code and tweek things to work but that goes entirely against the concept that Mandriva should be an easy to install and set up OS. And that includes all it's functions. Even the webserver. What used to be an automatically working funtion now requires a code tweek to make it work. And MCC is broken when asked to set the function to working. Lets see what happens on the next release. I am just getting started with underestanding how Bugzilla works and this was my first post there. All seems fair and responsive. Thanks for the help Edited September 26, 2005 by wilcal Quote Link to comment Share on other sites More sharing options...
uralmasha Posted September 26, 2005 Report Share Posted September 26, 2005 wilcal, but have you managed to get your user directory pages accessible? BTW, I am not entirely sure it is a bug, as this behaviour (no user-dir module and configuration by default, simple test page "it works") is in fact mentioned on the release notes... The question is, who ever reads release notes.... (ah, I see the same reaction on bugzilla). Quote Link to comment Share on other sites More sharing options...
wilcal Posted September 26, 2005 Author Report Share Posted September 26, 2005 wilcal, but have you managed to get your user directory pages accessible? BTW, I am not entirely sure it is a bug, as this behaviour (no user-dir module and configuration by default, simple test page "it works") is in fact mentioned on the release notes... The question is, who ever reads release notes.... (ah, I see the same reaction on bugzilla). <{POST_SNAPBACK}> Sure. Your can set up users all you want. But if you create a public_html directory that cannot be accessed outside that users account. Logged in as the user you can open the files using Mozilla/Firefox. The test page does work and you can change that to whatever you want. Apache is running. I think they have to think of a scheme in MCC to first allow the Users to set this up and still maintain the security they are looking for. FWIW back in the bad ole days of Mandrake 9.2 that version defaulted to allowing proxy which meant pretty quickly your webserver got used by every spammer that could find you. Quote Link to comment Share on other sites More sharing options...
wilcal Posted September 26, 2005 Author Report Share Posted September 26, 2005 Wilcal,By "install" I meant urpmi apache-mod_userdir Is this what you are talking about: ftp://mandrake.contactel.cz/Mandrakelinux...i586/media/main apache-mod_auth_external-2.0.54_2.2.9-3mdk.i586.rpm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.