How to Install WolfCMS on CentOS 5 in five minutes flat

Here's another one of our famous 5 minute install guides. This one is for Centos 5.6 and WolfCMS (aka FrogCMS) version 0.75.

Once again this assumes a clean install of CentOS 5, with nothing else on the box. If your setup is slightly different you will need to make allowances.

Install our pre requisites

# Install the necessary software
yum install -y httpd mysql-server php53 php53-mysql wget
# Turn on the Services
chkconfig httpd on
chkconfig mysqld on
# Start the services
service httpd start
service mysqld start

Download WolfCMS and put the files in /var/www/html

cd /tmp
wget http://wolfcms.googlecode.com/files/wolfcms_075.tar.gz
tar -xzf wolfcms_075.tar.gz
chown -R root:root wolfcms/
mv wolfcms/* /var/www/html/
# Cleanup
rmdir wolfcms
rm -f wolfcms_075.tar.gz

Setup WolfCMS

# Configure the .htaccess file
cd /var/www/html/
mv _.htaccess .htaccess
# Fix the permissions
chmod 777 config.php public/ 
# Fixup the htaccess to allow for clean URLS
sed -i -e 's@wolf/@/@' .htaccess
sed -i -e 's@RewriteBase /wolfcms/@RewriteBase /@' .htaccess

Configure Apache to all .htaccess overrides

# Enable overrides for /var/www/html directory
# If the default config changes, then the linenumber will need to be updated 
sed -i -e '327,327s@AllowOverride None@AllowOverride All@' /etc/httpd/conf/httpd.conf
service httpd restart

Create the MySQL database

echo 'CREATE DATABASE wolf;' | mysql
echo "GRANT ALL PRIVILEGES ON wolf.* TO 'wolf'@'localhost' IDENTIFIED BY 'this_is_your_password';" | mysql
echo "FLUSH PRIVILEGES;" | mysql

(NB: We haven't set a root mysql password. This would be a good idea on a production server.)

Continue the setup from the website. eg http://<your-server-name-or-ip/

Enter the database details as per the MySQL database creation command.

Manually enable ModRewrite

Now for some reason frog fails to detect ModRewrite, so we need to turn it on manually. (Change USE_MOD_REWRITE to true in config.php)

sed -i -e '36,36s@false@true@' config.php

Cleanup

rm -rf wolf/install/ docs/ readme.txt

And now you are done!

— Andrew


Next entry

Previous entry

Similar entries


Comments

No comments yet.


Pingbacks

Pingbacks are open.


Post your comment





Site theme originally by styleshout.com