Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > a6532362fc9ebdc51b791bc7675fc393 > files > 1

mastershaper-0.44-5mdv2009.0.src.rpm

first create sb_shaper database:
--------------------------------
shell> mysql -u root

mysql> create database db_shaper;

mysql> GRANT ALL PRIVILEGES ON db_shaper.* TO 'shaper'@'localhost'
    -> IDENTIFIED BY 'shaper_pass' WITH GRANT OPTION;

mysql> FLUSH PRIVILEGES;

apache sudoers to execute shaper_loader.sh script
--------------------------------------------------
visudo or vi /etc/sudoers
add this line:
apache ALL= NOPASSWD: /var/www/shaper/shaper_loader.sh

now copy needed php5-shaper files to web shaper directory:
----------------------------------------------------------
mkdir /var/www/shaper/jpgraph
cp /usr/share/php5-jpgraph/*.php /var/www/shaper/jpgraph/
cp /usr/share/php5-jpgraph/*.dat /var/www/shaper/jpgraph/
cp /usr/share/php5-jpgraph/*.inc /var/www/shaper/jpgraph/


WARNING:
--------
please modify line 111 /var/www/shaper/jpgraph/jpg-config.inc
change:
DEFINE("USE_IMAGE_ERROR_HANDLER",true);

to:
DEFINE("USE_IMAGE_ERROR_HANDLER",false);

now modify line 158:
DEFINE("CACHE_FILE_GROUP","wwwadmin");

to:
DEFINE("CACHE_FILE_GROUP","apache");

otherwise jpgraph will not be able to draw graph.


now copy needed php-layersmenu files to /var/www/shaper/phplayersmenu
---------------------------------------------------------------------------
mkdir /var/www/shaper/phplayersmenu
cp -a /usr/share/php-layersmenu/* /var/www/shaper/phplayersmenu/

link shaper to /var/www/html
----------------------------
ln -sf /var/www/shaper /var/www/html/shaper

no you can open a web browser and go to:
----------------------------------------
http://localhost/shaper
default "admin" password is "changeme"


now Please read the very good MasterShaper Manual available in
/usr/share/doc/mastershaper-version/ directory