Page 1 of 1

[phpBB] Permission denied (cache)

Posted: Mon Jan 26, 2009 1:06 pm
by cpreston
My site got hacked, so I had to rebuild things. phpbb2 is working without magic seo, but when I renable it, it works like this:

1. Forums and old posts open just fine.
2. New posts generate an error when you open them. The browser says this:
Warning: fopen(/home/cpreston/public_html/phpBB2/cache/fancy-data/phpbb-topics-95705) [function.fopen]: failed to open stream: Permission denied in /home/cpreston/public_html/phpBB2/includes/magic_seo_url.php on line 1268

I've checked the following:
1. fancy-data is set to 777
2. The file it's trying to open is there, and it's permissions are 644

Help! My board is a very popular part of my site.

Re: [phpBB] Permission denied (cache)

Posted: Mon Jan 26, 2009 1:21 pm
by cpreston
I answered my own question.

The problem was that I had restored the board to a point in time BEFORE the hack happened. I also restored the fancy-data directory, but I didn't remove it first. The result was that there were some cache files that referenced posts that didn't exist. Then when someone created a new post that generated the same post ID, magic SEO opened the same file name, appended the data to the file, thus generated a single file with multiple post entries in it. All I had to do was delete any cache files that were generated since the point in time the restore was done from. Magic SEO recreates the cache files.

FWIW, I think this could also be addressed in the code. When making a cache file for a new post (when the post is made), there could be a check to see if the file already exists. If it does, the file should be removed then recreated.

Re: [phpBB] Permission denied (cache)

Posted: Mon Jan 26, 2009 4:31 pm
by inveo
This problem was caused by incorrect permissions of cache files. Obviously, Magic SEO URL has no problem when cache file already exists (than is updated), but because you have uploaded all cache files with incorrect permissions, this action cold not be performed and therefore you received error message "Permission denied".

Cart  
(empty)

Cart Check out  »

Prices are tax inclusive.

The VAT rate for your country (US) * is 0,0 % because it is not a member of the European Union (EU).

* Please create an account if your country does not match.

Community feed
  • [Zen Cart] Can't execute Magic SEO URLs sitemaps
    I installed Magic SEO URLs Sitemaps Add-On for ZenCart MSU4.x/MSU5.x 2.0 on my server, when I try to generate sitemaps using: https://www.pechesudv155.owally.com/sitemaps.php I received :...
    by peter@pechesud.com
  • [phpBB3] Sharing users between phpBB / PrestaShop
    Hi i have 2 question 1- prestashop module support phpBB 3.3 ? 2- why we can not login in prestashop and phpbb with same user?
    by zohall
  • [phpBB3] AJAX Userinfo Extension
    Hi! I'm having trouble with this extension: https://www.phpbb.com/customise/db/exte ... _userinfo/ I tried asking support from the author but for no avail, since now. My request for support...
    by Lord Phobos
  • [phpBB3] Upgrade to phpBB 3.2.3
    Hello.. after Upgrade to phpBB 3.2.3 I am getting this message.. How can I solve this issue..? Thank you
    by ingbrzy
  • [phpBB3] URL path changed
    Hello.. I have changed my site path after moving to new hosting and now can not activate SEO module.. new path http://www.miuios.cz/domains/miuios.cz/ could you help me? thank you
    by ingbrzy2
Join our support forum » Pre-Sales Questions »
Featured Testimonials

Great plugin definitely has help increase the speed of my website. Thanks for the support!

Amina, the owner of Mao Loves Art , La Boite A Idees Ltd.

I installed the WordPress and WooCommerce Accelerator from Inveostore and it was really easy to configure - unlike some other caching plugins, it did not break the more complicated bits of my site and my PageSpeed score has gone from E to B even on a shared hosting plan. Luke was really helpful and the support response was very quick - I am...

Mark, the owner of Digital Marketing Works

More Testimonials »