But I am in doubt if it is working correctly, the reason for my doubt is:
1) There are no files build in the temp/jpcache, shouldnt cache files be build here?
2) The read me file that comes with jpcache says that one can test by using:
<?php
require "jpcache.php";
echo time();
phpinfo();
?>
So I make a test-1.php file uploaded to the includes/jpcache folder and bring it up in the browser and it shows me "Warning: Cannot modify header information - headers already sent by (output started at /usr/home/virtual/user/www.domain.com/includes/jpcache/test-1.php:1)in /usr/home/user/www.domain.com/includes/jpcache/jpcache-main.php on line 170 1083606424 " and below php version, server info, etc, I expected it would show me the time so I can check if the page is cached but it does not. But it shows me an error and server info.
What should I make out of this, is it working or not and how do I know for shure?
eyefrequency Nuke Soldier
Joined: Aug 04, 2004
Posts: 22
Posted:
Fri Aug 13, 2004 2:42 am
STEP ONE: I think you have multiple problems all acting on one another. First you probably need to take care of the headers problem. To do so, create/modify the .htaccess in your root directory to include the following code:
Code:
PHP_FLAG output_buffering on
Then open your mainfile.php in your nuke directory and make the following alterations. (mind you, the following code might be a little different, depending on your version of php-nuke, but it should be near the top, so try to match it correctly):
Code:
42 = phpversion();
if (42 >= '4.0.4pl1' && strstr(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if (42 > '4.0') {
and change it to:
Code:
42 = phpversion();
if (42 >= '4.0.4pl1')
{
ob_start('ob_gzhandler');
}else if (42 > '4.0') {
STEP TWO: Did your correctly set the permissions of the temp directory along with the jpcache folder inside of it? They need to be set to 777 to allow files to be written to them.
STEP THREE: If your stilling having issues with the cache file being written, then that means you have incorrectly set a value in the installation process. That could mean you didn't set the full path for a directory or file, or you didn't uncomment the option to write to file. Please carefully review the installation directions again if problem persists. Here's a link to straight-forward explanation on how to correctly install and set jpcache: http://www.karakas-online.de/forum/viewtopic.php?t=130
Hope this helps!
eyefrequency Nuke Soldier
Joined: Aug 04, 2004
Posts: 22
Posted:
Fri Aug 13, 2004 2:51 am
Oh yes, I almost forgot. To clarify your question, yes, to truly know if jpcache and gzip are working, a cache file must be written to the jpcache folder in your temp directory. That test php file you tried should have also tipped you off that jpcache wasn't working correctly probably when the numbers at the top left corner kept changing, instead of correctly displaying the same number after refreshes. Once again, if modifying your .htaccess and mainfile.php along with setting your permissions correctly, that means you messed up somewhere along way of configuring jpcache. Remember, you must choose between having jpcache or gzip_mod in Apache doing your compression. That aspect is explained more thoroughly in the link I posted. Good Luck!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum