postinstall-en.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ------------------------------------------------------------------------
  2. INSTALLATION
  3. The ebuild installs most parts of openwebstats automatically, but
  4. you will have to create a database for the apache log records.
  5. You can do this using the following commands as the mysql root user:
  6. > mysql -u root -p -e "CREATE DATABASE ows;
  7. GRANT CREATE, SELECT, INSERT, UPDATE, DELETE ON ows.* TO 'ows'@'localhost'
  8. IDENTIFIED BY 'pass';
  9. FLUSH PRIVILEGES;"
  10. Please do not forget to choose a password that is more sensible than
  11. 'pass' ;)
  12. Now as user "ows":
  13. > mysql -u ows -ppass ows < ${MY_SQLSCRIPTSDIR}/mysql/${PV}_create.sql
  14. You also need to set the MySQL passwords for the ows user in
  15. the ${MY_INSTALLDIR}/config.php file
  16. so that openwebstats can access the database.
  17. If you use a special logfile format for your web server you should
  18. also modify the log format in the config.php file.
  19. Make sure your access_log is readable if you want to use the update
  20. function of the web frontend.
  21. > chmod 644 /var/log/apache2/access_log
  22. Now you can go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR} and use the
  23. application.
  24. ------------------------------------------------------------------------