Re: apachectl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 11 Dec 2007, Vincent Bray wrote:

On 11/12/2007, Hiep Nguyen <hiep@xxxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux