• Just upgraded from ver 5 and I am having major issues with the new file system API

    I prefer to use the ftpsock method to install w3tc but that deosn’t work at all.

    I then set wp-content to 777 and for fs_method Direct all of the files install correctly (the cache folder ) the (object cache and advanced-cache files) and the plugin operates normally as far as I can tell.

    However I am presented with the error unable to chmod wp-content back to 755. So I do that my self and then I am presented with the persistent error unable to chmod file permissions (not exactly that) that won’t go away.

    If I reset fs_method back to normal then I am presented with an ftp form on every screen.

    I think something is borked in the setup class of the 9.6 and 9.7 versions. The File permsions are correct and in test function creates the test_dir and seems to create the test file but as far as I can tell it throws FilePermissionsException somewhere.

    My Apache is ran under the user Apache while my php uses SuExec under the web user and the ftp credentials I supply are the web user. All files are owned by web user unless owned by Apache.

    I have tried setting cache owned by apache and setting cache owned by web user with perm 777.. no luck

    I know I am not alone and I know that there are other threads with this issue already! I don’t mean to post a new topic but I haven’t even seen a good resolution to any thread started so far!

    For now I am switching back to 9.5 which works great.

    Thank you for writing this plugin it is one of my favorites!

    https://www.ads-software.com/extend/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter exbm

    (@exbm)

    I got the plugin to install with no problems.

    My Old Server Configuration :

    php as MOD_php
    Apache configured with suExec:webuser:psalcn
    apache ran as apache:apache
    Safe_mode ON

    New Sever Configuration :

    PHP as Fast_cgi
    Apache configured with suExec webuser:paslcn
    Apache ran as apache:apache

    With the new configuration the plugin was able to install using fs_direct.. rather then having to install using the ftpsock.

    I think the problem is even though suExec is in effect it doesn’t matter for PHP because PHP was ran under apache and so got apache:apache as a user. Once I changed it to FastCGI then php would execute under the user.
    I am just spit balling here but it might be that if you run php under apache.. it can’t modify files. The files are owned by apache:apache some aspects of hte file system api fall under suExec and are ran as webuser:psa ??????

    Thread Starter exbm

    (@exbm)

    with the update I went from ~1 sec for initial request to under 200ms reponse time!

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Glad everything worked out. Will investigate compability issue with suEXEC. Thank you for bringing issue to my attention.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Major Permissions Problem with 9.7’ is closed to new replies.