LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-01-2003, 12:42 PM   #1
lonny
Member
 
Registered: Nov 2003
Posts: 46

Rep: Reputation: 15
Updating webserver under Mandrake 9.2


I recently installed Mandrake 9.2. I have the apache webserver running under the var/www/html directory. The problem is that my user "bob" can only use the /home/bob directory. I would like to make bob's home directory to /www/html and also give him permissions to use this directory. How could I do this and what would I want to set the permissions of the /www/html/ directory to?
ex. drwxrwxr-x?
 
Old 12-01-2003, 03:16 PM   #2
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
why not have "bob" make a directory in the /home/bob/ called "public_html" that is 777 (world everything)

That is how apache handles user accounts, instead of sharing the Docroot with everyone. You will have to navigate to say http://yourdomain.com/~bob, but in the apache config file you can set the alias to .com/bob, and all he has to do is put an index.html file in there, and he's got his own webspace.
 
Old 12-01-2003, 03:52 PM   #3
PDR60
Member
 
Registered: Aug 2003
Location: Oakland, TN
Distribution: Debian, Kubuntu
Posts: 257

Rep: Reputation: 30
Or you could fire up an FTP server and give that user no home directory but a directory called "bob" or whatever in the /var/www/html. That way you could give bob rights to only his "bob" folder in the html directory. Its also much easier to admin.
 
Old 12-01-2003, 04:15 PM   #4
lonny
Member
 
Registered: Nov 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks I figured it out. Also now that I can ftp to that directory, Apache looks for index.shtml for a home page. Is there a way to change this. I wanted to use index.php instead. I think that php is also installed in mandrake 9.2 if im not mistaken.
 
Old 12-01-2003, 04:31 PM   #5
PDR60
Member
 
Registered: Aug 2003
Location: Oakland, TN
Distribution: Debian, Kubuntu
Posts: 257

Rep: Reputation: 30
Php is a module that you will need to install. I do most of my config with Webmin so setting up the individual servers is a snap. You can get to webmin by typing https://localhost:10000 on the machine or by substituting the ip address if your not on the machine. Webmin makes the config easy. Just go to servers -> apache and there is your config. If you need some help just drop me a line.
 
Old 12-01-2003, 07:38 PM   #6
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
yeah man,
Quote:
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm index.xml
</IfModule>
add in there whatever you want. You could have jimbob.txt to be the "index" page if you wanted to, and any file named "jimbob.txt" would be the file that apache displays when entering a directory with that file there
 
Old 12-01-2003, 11:59 PM   #7
lonny
Member
 
Registered: Nov 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Hey looks like mandrake 9.2 comes pre installed with php. I also checked the config file u mentioned and index.php was already in there! Bouyaa!
 
  


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
mandrake 10.1 - webserver problem... amachine7 Linux - Networking 2 12-14-2004 05:28 PM
Mandrake Webserver and Other Newbie Questions anon111 Linux - Newbie 3 10-29-2004 08:09 PM
Setting up a webserver with Mandrake Linux 10.1 MercuryRaz0r Linux - Networking 18 10-26-2004 02:19 AM
ftp and webserver (mandrake) dcq Linux - Newbie 1 06-27-2003 11:02 AM
Mandrake webserver on NT network behind firewall slipsy Linux - Networking 1 02-10-2003 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:46 PM.

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