The installation of WordPress is simple and straightforward. Really. So I’m not going to detail the installation process, which is well documented here. However, the permalink feature does not work out of the box on a standard CentOs 5 distribution. Some changes have to be made in the apache configuration files to enable mod_rewrite in your WordPress directory.
Let’s say you installed WordPress in the root of your website. By default on your CentOs’s apache, the document root of your website is located in /var/www/html.
- create an empty a .htaccess file in this directory.
- WordPress should be able to read/write this file when updating your settings in the admin pages, so make sure the user running apache has the right to write this file. If not, chmod/chown it. Usually this should do the trick:
chown apache:apache /var/www/html/.htaccess - now edit the /etc/httpd/conf/httpd.conf file. Search the following:
- Change this line to:
AllowOverride All
- Restart Apache
[root@optusnet]# service httpd restart
- Now you can change your permalink settings in the admin pages of WordPress, which will modify the .htaccess file created above.
<Directory “/var/www/html”>
…
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
This allows apache to read and interpret the .htaccess located in you document root.
Remarkable related information! I have been searching for some thing like that for quite a while today. Thanks!
Truly difficult to find qualified people on this issue, nevertheless, you be understood as you are aware of exactly what you are preaching about! Bless you
very interesting, thanks
Aloha there! I completely agree with your opinion.
I just want to mention I am just newbie to weblog and truly liked this web page. Probably I’m going to bookmark your blog post . You definitely come with amazing well written articles. Thanks a lot for revealing your website page.
Thank you for this article and for your site on the whole. I’ve just subscribed to your news feed.
Thanks for having such genuinely awesome web log. I wish you updated it more often.