Piwik

This article describes Piwik Web Analytics in a Nginx web server

Edit /etc/portage/package.use and add "dev-lang/php fpm -exif mysqli pdo gd truetype"

emerge -av dev-lang/php

emerge -av media-libs/gd emerge -av media-libs/freetype

php-fpm.conf

listen = /run/php-fpm.socket listen.owner = nginx

php.ini

always_populate_raw_post_data = -1

date.timezone = your/timezone

Refer to http://php.net/date.timezone to select your proper timezone

mysql -u root -p CREATE DATABASE piwik; USE piwik; grant all privileges on piwik.* to user@localhost identified by 'password'; grant all privileges on piwik.* to user@'%' identified by 'password';

mkdir /var/www/localhost/piwikconfig chmod a+w /var/www/localhost/htdocs/piwikconfig chmod a+w /var/www/localhost/htdocs/piwik/tmp chmod a+w /var/www/localhost/htdocs/piwik/config

super user admin password your@email.com

chmod a-w /var/www/localhost/htdocs/piwikconfig chmod a-w /var/www/localhost/htdocs/piwik/config

<!--Joomla is a powerful PHP content management system.

Preinstall
Edit and add "apache2 php gd pdo" to your USE flags.

Edit /etc/portage/package.use and add "dev-lang/php mysql mysqli postgres" to PHP use flags then merge up LAMP.

PHP5 notes:

must be built with pcre and session USE flags.

If you rebuild php5 changing flags you will need to restart apache2.

Scroll up into the emerge log and setup the root user for mysql running the command printed.

Edit and add   to your   line.

Start up your LAMP stack

Set the LAMP stack to start upon boot

Ebuild Install
It is possible to install Joomla from Portage, but the last version keep on 1.7. Now we can get on with emerging:

Backend
The ebuilds for joomla are very out of date (last ebuild 1.7), for last versions proceed manually.

Setup a directory for joomla in your web server

Pull the latest to your web server:

unpack the zip

Frontend
point your browser @ http://127.0.0.1/joomla/installation/index.php

Name, and describe your site, point at your email and password the admin account. (change the admin account name if you so choose, more secure)
 * Step 1

Click next.


 * Step 2

MySQL
It is a good idea to setup an unprivileged mysql user and database for joomla.

In the web page enter joomla for username and joomla for database

Press next


 * Step 3

Ftp
Select no for now.


 * Step4

Delete the install directory, and go to http://127.0.0.1/joomla/index.php to see your website, and http://127.0.0.1/joomla/administrator/index.php to administer your website.

Extensions
joomla can be crafted into many things with extensions. It can be used for forums, chat, classified ads, web stores, blogs, guest books, and more.

joomla extensions

-->