This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Nb: we assume that scripts are run from root dir, same as eZP4 | |
/** | |
* @var \eZ\Publish\API\Container $SC | |
*/ | |
$SC = require('bootstrap.php'); | |
// Log in as Admin | |
$repo = $SC->getRepository(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Nb: we assume that scripts are run from root dir, same as eZP4 | |
/** | |
* @var \eZ\Publish\API\Container $SC | |
*/ | |
$SC = require('bootstrap.php'); | |
// Log in as Admin | |
$repo = $SC->getRepository(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install the script | |
wget https://raw.github.com/gggeek/ezab/master/abrunner.php | |
# execute it | |
php abrunner.php -s ezpublish4.ezsc -u / -c "1 2 4 8 16" -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install php-apc | |
sudo mv /etc/php5/apache2/conf.d/xdebug.ini /etc/php5/apache2/conf.d/xdbg.ini.bak | |
sudo service apache2 restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install webhttrack | |
sudo /usr/lib/httrack/htsserver /usr/share/httrack/ | |
# from host operating system, connect to http://192.168.56.101:8080/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in file settings/override/ezperformancelogger.ini.append.php: | |
[GeneralSettings] | |
LogMethods[] | |
LogMethods[]=csv | |
[csvSettings] | |
FileName=var/log/ezperflog.csv | |
[GeneralSettings] | |
TrackVariables[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in override/ezperformancelogger.ini.append.php | |
TrackVariables[]=accumulators/mysqli_query/count | |
TrackVariables[]=accumulators/mysqli_query | |
# in settings/override/site.ini.append.php | |
[DebugSettings] | |
DebugOutput=enabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in file index.php, on line 198, add: | |
eZExecution::addCleanupHandler( array( 'eZPerfLogger', 'cleanup' ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd extension/ezperformancelogger/bin/scripts | |
chmod 755 ezmuninperflogger_ | |
sudo ln –s /var/www/ezpublish4/extension/ezperformancelogger/bin/scripts/ezmuninperflogger_ /usr/share/munin/plugins/ezmuninperflogger_ | |
# patch /var/www/ezpublish4/extension/ezperformancelogger/bin/scripts/ezmuninperflogger_ : hashbang line is wrong, use instead | |
#!/bin/bash | |
# create (as root) /etc/munin/plugin-conf.d/ezmuninperflogger | |
[ezmuninperflogger_*] | |
env.php /usr/bin/php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install graphviz | |
sudo pecl config-set preferred_state beta | |
sudo pecl install xhprof | |
# enable xhprof by creating a config. file for php: | |
sudo vi /etc/php5/apache2/conf.d/xhprof.ini | |
#in there put: | |
extension=xhprof.so | |
sudo service apache2 restart |
OlderNewer