The following components must be installed so Pubwich can work:
-
Duplicate
cfg/config.sample.php
tocfg/config.php
(optional: if you want to use a custom theme, duplicate
themes/default
tothemes/your_theme_name
and edit thePUBWICH_THEME
constant incfg/config.php
to"your_theme_name"
. -
Edit the newly created
config.php
to fill the blank spaces with your informations (API keys, usernames, site’s URL, etc.) and to modify the arguments passed toPubwich::setServices()
. -
Modify your
crontab
file (by runningcrontab -e
) and add the following line:*/<N> * * * * <PHP> -f <ABSOLUTE_PATH>/cron/cron.php
Then replace the following elements:
<N>
Cache expiration (in minutes)<PHP>
The path to PHP executable binary (usually/usr/bin/php
or/usr/local/bin/php
, usewhich php
to find it)<ABSOLUTE_PATH>
Absolute path to Pubwich directory
Example:
*/10 * * * * /usr/bin/php -f /home/myusername/public_html/pubwich/trunk/cron/cron.php
-
Change the permissions on the
cache
directory to make it writeable for all ($ chmod -R 0777 cache
). -
Everything should be working now (when browsing to the
index.php
file!).