need help in httpd and .htaccess

Support for webhosts that use CentOS
Post Reply
Nanflexal
Posts: 3
Joined: 2008/10/05 03:40:09

need help in httpd and .htaccess

Post by Nanflexal » 2008/10/05 13:06:58

how to restart httpd in centos-5-i386? and how to enable .htaccess.

Thanks

User avatar
toracat
Forum Moderator
Posts: 7423
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

need help in httpd and .htaccess

Post by toracat » 2008/10/05 16:20:33

If you are new to CentOS and the forums, please read:

http://www.centos.org/modules/newbb/viewforum.php?forum=47

and please also read documentations. You will easily find, for instance,

http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s1-apache-startstop.html

Then, by following the URL on that page, you can get to

http://httpd.apache.org/docs/2.2/howto/htaccess.html

This is just an example of how you can find answers to your questions.

sakuiweb
Posts: 5
Joined: 2008/11/20 10:57:18
Contact:

Re: need help in httpd and .htaccess

Post by sakuiweb » 2008/11/20 13:38:03

to restart httpd run the command:

/etc/init.d/httpd restart

(you should see it stop and start, you may get a warning if the service had not alredy started)

to enable .htaccess you need to grant overwite permisions, the default install httpd.conf has instructions on how to do this,
in short you will need to create a directory tag like the follwing:


#instruction:
#AllowOverride (options go here)
#example 1:
AllowOverride None
#example 2:
AllowOverride All
#example 3:
AllowOverride Options FileInfo AuthConfig Limit

Post Reply

Return to “CentOS 5 - Webhosting Support”