Solved

Wordpress WP-Cache plugin - Won't work with Zeus server??

Posted on 2009-07-03
8
1,039 Views
Last Modified: 2013-12-02
Hey guys.

I find my Wordpress driven site rather slow and am trying to do whatever I can to increase its speed. I found a plugin called WP-Cache which should help with load times. However, after I have activated the plugin, I keep getting an error message:

Warning: sem_get() [function.sem-get]: failed for key 0x152b: Permission denied in /primus/users/u84/raoc/public_html/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 98

I've tried finding a solution to this online but no luck. I'm not entirely sure what the issue is. I've looked into the file permission settings and that shouldn't be the problem.

The only thing I can think of is that my site is running on a Zeus web server so there may be some incapability issues. Anyway, if anyone has any suggestions, I can really use the help. Thanks!

P.S. You can find the site here: www.operationlifesaver.ca
Picture-1.png
0
Comment
Question by:Adam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 3

Accepted Solution

by:
razor19 earned 500 total points
ID: 24774708
Hey there -

Try opening wp-cache config file - in the /wp-content/ folder

Look for the line:
//$use_flock = true; //..

Remove the slashes from the front:
$use_flock = true;

See if that works. :)

0
 
LVL 3

Expert Comment

by:razor19
ID: 24774714
Make sure you keep the rest of the line (the // text....) after the semi-colon.
0
 
LVL 1

Author Comment

by:Adam
ID: 24774997
Thanks for the reply razor19.

Just to clarify, do you mean the wp-cache-config.php file that's in the /wp-content/ folder or the wp-cache.php file which is in the /wp-content/plugins/wp-cache/ folder.

Either way, I couldn't seem to find $use_flock = true;

I've attached the code from the wp-cache-config.php below if you want to take a look. Not sure if I'm missing something. Let me know if you would like to see the folder from the wp-cache plugin folder.

Thanks for the help!

<?php
/*
WP-Cache Config Sample File
 
See wp-cache.php for author details.
*/
 
$cache_enabled = false; //Added by WP-Cache Manager
$cache_max_time = 3600; //in seconds
//$use_flock = true; // Set it tru or false if you know what to use
$cache_path = ABSPATH . 'wp-content/cache/';
$file_prefix = 'wp-cache-';
 
// Array of files that have 'wp-' but should still be cached 
$cache_acceptable_files = array( 'wp-atom.php', 'wp-comments-popup.php', 'wp-commentsrss2.php', 'wp-links-opml.php', 'wp-locations.php', 'wp-rdf.php', 'wp-rss.php', 'wp-rss2.php');
 
$cache_rejected_uri = array('wp-');
$cache_rejected_user_agent = array ( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider');
 
// Just modify it if you have conflicts with semaphores
$sem_id = 5419;
 
if ( '/' != substr($cache_path, -1)) {
	$cache_path .= '/';
}
 
?>

Open in new window

0
Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

 
LVL 1

Author Comment

by:Adam
ID: 24775001
And obviously - I'm aware of this line:

$cache_enabled = false;

I have to have keep it disabled or I will keep getting that error message :)

0
 
LVL 3

Assisted Solution

by:razor19
razor19 earned 500 total points
ID: 24775124
I meant the wp-cache-config file.

It's line 10 in the code you posted. :)

//$use_flock = true; // Set it tru or false if you know what to use

Change to:

$use_flock = true; // Set it tru or false if you know what to use
0
 
LVL 1

Author Comment

by:Adam
ID: 24775741
Wow...I can't believe I missed that! Strange though, I even did a search for it and it didn't show up.

Anyway, that seems to have done the trick! Thanks a bunch.

I hope you don't mind me asking you another question but do you know anything about the WP-Super Cache plugin? I was originally hoping to use that one but I was having issues activating the plugin as well. I have read that if you don't have Apache that it probably won't work.

Not sure if you know anything about it - I just figured it wouldn't hurt to ask. Either way, I will reward you the points.

Thanks again.


0
 
LVL 3

Expert Comment

by:razor19
ID: 24777222
Hey Furio - No problem, and LOL  don't worry about missing it, that happens to me all the time. What editor do you use? My editor won't show commented code when I search for it - even though it says it will on their website. Strange. :)

I've heard that the Super-Cache plugin is better, but you're right, i've also heard it doesn't play well with anything other then Apache. Personally, though, I don't have any expierience with it - i've always just used the WP-Cache. I've also heard it conflicts with way more "standard" plugins then WP-Cache.

Cheers dude!

0
 
LVL 1

Author Closing Comment

by:Adam
ID: 31599622
Thanks again for the help razor19. I really appreciate it.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question