Yac Documentation

Yac stores data in text files under the /files folder, so you will need to make this folder and its content writable by the web server software.

Basic requirements

  • PHP 5.3 or above
  • Support for .htaccess
External or third party modules may have aditional requirements.


Nothing complicated to do, no need for shell access, just upload to your web server root, set the correct permissions (chmod 775 or 777) on the /files folder, setup an .htaccess file at the root of your server with this content:

RedirectMatch 403 ^.*/files/
RedirectMatch 403 ^.*/system/
RedirectMatch 403 ^.*/php/
RewriteEngine on
Options -Indexes
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)1$
RewriteCond $1 !^(ajx.php) 
RewriteRule ^([^.]+)$ %2?page=$1 [QSA,L]

Global configuration

Edit values in /system/config.php :

// config
define("SITE_OWNER","Your name");
define("SITE_NAME","Your site name");
define("SITE_SLOGAN","An awsome site powered by Yac CMS");

// edit mode
define("EDIT_MODE","raw");	// raw edit, no transform
//define("EDIT_MODE","simple");	// simple  edit, transforms newlines to 
// default password $c['password'] = 'yacdemo'; // home page $c['page'] = 'home';
You will need to do so for each modules having a /config.php file in the module directory. Follow instructions within the module documentation.

Templates and themes

You can setup templates in the /themes directory. A theme is a folder containing the template(s) and all the required html, images, css and javascript files. To create a template, build a html page and store it as theme.php in a folder under the /themes folder. You will need to add the code to it. Just look at the default theme page and copy and paste the PHP code you will find (between the ).

< Download Contribute >