On Tue, 11 Dec 2007, Vincent Bray wrote:

On 11/12/2007, Hiep Nguyen <[EMAIL PROTECTED]> wrote:
thanks.  couple more questions:

how do i install/enable mod_status so i can use apachectl status?

I don't remember exactly. There's either going to be a specific config
file for it in /etc/httpd/conf.d or else you should search
/etc/httpd/conf/httpd.conf for server-status.

where is the apache test page?  i don't see anything in /var/www/html/.

You should remove /etc/httpd/conf.d/welcome.conf and restart the
server. That's what's showing the centos start page.

i noticed /var/www/html/ is root. am i suppose to upload anything to this
folder using root account? if not what account do i use to upload?

This really depends on what you need to serve. If you just want to
serve a few static resources then putting things in that directory
should be fine. On the other hand if you want multiple sites then
you'll need to learn about virtual hosts and settle on a directory
layout (pretty much everyone has their own preferred way). You should
also chown that directory so you can work in it without needing root,
or create a web authoring group etc.

also, what account do i use to start up httpd service?

Root. It's always necessary to be root to start services which listen
on network ports <=1024.

right now, i login as root and execute apachectrl start, but i would like
to automatic start up this service during boot.

chkconfig httpd on

as you know, i'm a newbie to apache.

We all were once :-)

--
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


thanks vincent.

this server is mainly for internal use only, but it can be used for public later. so i want to take time to put in security measures.

no need for virtual host here, b/c i have only one site. however, i'm not sure what to do with /var/www/html/ folder as far as ownership concern.

should i change to apache user or something else? i'll have couple people in this office upload files (.pdf, .php, .js, .doc, .xls, etc...) to /var/www/html/ folder and i don't want to give root password to them.

if i leave as root, can i create a few accounts and let them use these accounts to upload files? is there any problem when the folder is root and files are not root owner?

please let me know what are most people use?

thanks,
t. hiep

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to