Here are some tips for improving Sharetronix performance and speed.
1. Upgrade your Sharetronix version regularly.Our team is working hard every day to improve Sharetronix and we strongly recommend to upgrade your installation regularly. Since version
1.4.1 you are able to upgrade it without overwriting everything and running the install script - there is a list of changed files which you can overwrite manually. Get the latest Sharetronix version from here:
http://sharetronix.com/opensource/download2. Set fast caching mechanismSharetronix stores a lot of data into a cache for faster access. This cache can be stored on the filesystem or in the database, but it's highly recommended to store it into the server's operating memory (RAM). This can be done in two ways, but you will need a root access to the server. The first way is the
Memcached caching system which can be implemented in PHP with the
Memcache or
Memcached extensions. The second way is the
APC (Alternative PHP cache) extension. If you install one of them, you should set the variable
$C->CACHE_MECHANISM in the Sharetronix configuration file - ./system/
conf_main.php.
3. Install eAccelerator on your servereAccelerator is a free open-source PHP accelerator & optimizer. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by
1-10 times. You can find more information here:
http://eaccelerator.net
4. Set a cronjob for Sharetronix on your serverSharetronix needs some scripts to be ran in background periodically. This can be done very well with Cronjobs, but the problem is that most of the hosting providers don't support cronjobs. So Sharetronix uses very ugly alternative which can cause slow page load sometimes. If your server supports cronjobs, you can fix this by setting the following cronjob to run
every minute with the linux
crontab command:
* * * * * /path/to/your/cli/php /path/to/your/sharetronix/system/cronjobs/worker.php5. Use ImageMagick for image processingBy default Sharetronix uses PHP's GD extension for processing images, which is not good enough. If there is
ImageMagick installed on your server (or you have root access and can install it), it's recommended to use its command line tools for image processing. In the Sharetronix configuration file (./system/
conf_main.php) you need to set the variable
$C->IMAGE_MANIPULATION to "
imagemagick_cli" and the variable
$C->IM_CONVERT to the path to the Convert program (usully
/usr/bin/convert).
6. Set the RPC servers which Sharetronix pings on each new postBy default on each new post Sharetronix pings the
rpc.pingomatic.com RPC server so the post can be indexed faster by Google and other search engines. You can specify more than one RPC servers, but it can cause delays. Important: if your Sharetronix installation is behind-the-firewall (not public) or you just don't want to ping these servers, disable this functionality in ./system/
conf_main.php - set
$C->RPC_PINGS_ON to
FALSE.