Category: "Tips for PHP"
b2evolution Further Performance Tuning
I have upgraded my blog from b2evolution 3.x to 5.0.7. I have experienced a lot of performance issues. I did some performance tuning. Maybe they are useful for you. Firstly, I cleaned all unpublished comments. That makes the database much smaller and faster to run. Moreover, I went to System->General, and unchecked Log hits for every public page. That save the execution time for each page. Then I deleted all hit logs in database. For the same reason, I wish the database to be smaller. These information is not very useful. I have other analytically software to track the visitor count. I wish those tips can help you have a better b2evolution.
b2evolution.Widget Cache
I just upgraded my blog to b2evolution.5.0.7. I found it ate a lot of memory. The workaround is enable all levels of caching. Moreover, please do not forget to enable widget cache. The widget ate a ton of memory!
Gantry's CSS LESS compiler Error
I just got a new website built which is a Gantry template. I got some error, e.g. Fatal error: Out of memory. That is from Gantry's CSS LESS compiler. I tried to comment out the codes to by-pass compiler. It does not 100% work. Finally, I put a request to web host for increasing the buffer to 128MB. Then all works fine.
(Note that, I know you can use define function in php to increase your memory buffer, but some web hosts will not allow it.)
Error:'evo_hitlog' is marked as crashed and should be repaired
I got this error 'evo_hitlog' is marked as crashed and should be repaired. The cause of this error is evo_hitlog is full. You go to mysql, and type 'repaire table evo_hitlog'. Or just simply in run the command in phpmyadmin,TRUNCATE TABLE evo_hitlog;
Installation error - Could not create directory plug-in
When I install a new plug-in, I got this error:
"JFolder::create: Could not create directory plug-in"
Later, I found out the cause. The parameters in configuration.php are not configured correctly.
Please make these two lines in configuration.php pointed to the correct directory.
Code
var $log_path = '/home/user/public_html/logs'; | |
var $tmp_path = '/home/user/public_html/tmp'; |