CandyCane インストール
DocumentRoot作成
mkdir /var/www/www.candycane.co.jp
cd /var/www/www.candycane.co.jp
CandyCaneをダウンロード
wget https://github.com/yandod/candycane/archive/master.zip
unzip candycane-master.zip
rm -rf candycane-master.zip
mv candycane-master htdocs
cd htdocs
chmod -R 777 app/tmp/
chmod -R 777 app/Config
chmod -R 777 app/files
chmod -R 777 app/Plugin
chown -R apache:apache /var/www/www.candycane.co.jp
Apacheの設定
vim /etc/httpd/conf.d/www.candycane.co.jp.conf
********************************************************************
#
# httpd configuration settings for use with mailman.
#
# Listen for virtual host requests on all IP addresses
#NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/var/www/www.candycane.co.jp/htdocs"
ServerName www.candycane.co.jp
DirectoryIndex index.html index.php
ErrorLog logs/www.candycane.co.jp_error_log
CustomLog logs/www.candycane.co.jp_access_log common
<Directory "/var/www/www.candycane.co.jp/htdocs">
# AuthType Basic
# AuthUserFile /etc/httpd/.htpasswd
# AuthName "Basic Certification"
# require valid-user
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
********************************************************************
candycane用のDBを構築
**********************************************************
mysel -u root -p
create database candycane default character set utf8;
grant all privileges on candycane.* to candy_user@localhost identified by 'candy_password';
flush privileges;
exit;
**********************************************************
hosts 設定
vim /etc/hosts
127.0.0.1 localhost.localdomain localhost www.candycane.co.jp
Apache再起動
service httpd configtest
service httpd restart
httpd -S