Quote:
Originally posted by linutzy
Man you guys will have to excuse me but I'm going through the man pages like crazy. I will choose to delete the file, are there any reasons why I should keep it.
Also after doing a google search are there any "beginner guide to home admin for apache2 sites" I'm dedicated to running this box the right way not a half-a$$ed way?
Also I hope you don't mind me asking but to start things off I have two users. I want one to have cgi access and both to have PHP/MYSQL access. The users are already created using adduser, just wondering if I have forgotten something? PHP and MYSQL have been installed via a .deb package using stable 3.1
Once the /apache-default/ file is deleted do I have to make any other changes in other directories in /var/www so that the users can have :www.example.com/~username/ load their page, and where do I put the index.html file to load the start page for www.example.com.
I'll keep reading but only have an old apache 1.3 book. I really and I mean really do thank you for the help. I'm looking at all the noob impossible statements in all the apache directories.
|
Deleting the files can be pretty risky. When apache finds and directory which is empty (no starting document like index.html), it wil show (when the current module is loaded (default)) the directory content instead of a page. My advice is to create an empty html document and place that in your website's document root (probably /var/www).
You do not have to change the settings to give each local user its own webspace. Every user has his own webspace which can be found in /home/<user>/public_html/ and can be reached by
http://<ip adress or servername>/~<user>/.
By default the public_html directory will not be created within the user home directory's, so you have to create a directory called public_html in /etc/skel. The files in /etc/skel will automatically be copied into new user accounts by adduser. No other program should reference the files in /etc/skel. You have to create this directory by yourself for the allready existing users.
So when you create a new user after you have made the public_html directory in /etc/skel, every new user automaticly has the public_html directory within his home directory.
Quote:
Once the /apache-default/ file is deleted do I have to make any other changes in other directories in /var/www so that the users can have :www.example.com/~username/ load their page, and where do I put the index.html file to load the start page for www.example.com.
|
index.htm files for the users webspace (
http://server/~user/): /home/<user>/public_html
index.htm files for the normal url (
http://server/): /var/www