March 9, 2008

Jinzora fiddling

Category: Jinzora — Josh @ 8:19 am

I am twiddling and fiddling with Jinzora again today. I have a new server and am moving everything over to it. During my jinzora installation and setup I noticed that the Metadata retreival was not going to well. I found the site that I has a nice addon for metadata retreival http://www.darkhart.net/projects/33-jinzora/44-jinzora-addons

I used the jz_custom_metadata-1.2.0b1 version on my previous install of Jinzora. It works well.

Note: Ensure that ./jinzora2/services/settings.php is 0777, otherwise you can not update the metadata search settings through the GUI to use the custom metadata search. This is in lieu of setting entire jinzora directory to 0777 as seen here

I also ran into the page caching problem again detailed here. I was frustrated for about an hour until I went back and read my notes.

Notes for installing eaccelerator on Debian:
Ensure that php5-dev and make packages are installed (possibly others I did not need to install anything else)

Execute the following commands
# export PHP_PREFIX=”/usr”
# $PHP_PREFIX/bin/phpize
# ./configure –enable-eaccelerator=shared –with-php-config=$PHP_PREFIX/bin/php-config
# make
# make install
——
copy eaccelerator.ini from source directory to /etc/php5/conf.d/eaccelerator.ini and modify default value if you need.

extension=”eaccelerator.so”
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/var/cache/eaccelerator”
eaccelerator.log_file = “/var/log/apache2/eaccelerator_log”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=””
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″
——

# mkdir /var/cache/eaccelerator
# chmod 0777 /var/cache/eaccelerator
# /etc/init.d/apache2 restart
# ls -al /var/cache/eaccelerator

You should see directories [0-9] and [a-f] in /var/cache/eaccelerator
after browsing around in jinzora execute the following to check if accelerator is creating cache files.

# find /var/cache/eaccelerator -type f -exec ls -l {} \+

additionally (or eventually) you should see information being logged to /var/log/apache2/eaccelerator.log
I have my shared memory size set to 128M so it may just be keeping everything in memory and not pulling it from cache.

No Comments »

No comments yet.

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> .