Apr 5
aside
coming
For next week: read about email. (May start today if time.)
wordpress
Finish looking at wordpress - discuss what you've done.
simeon says
I found a solution to our annoying problem.
Everything else being correct (permissions, etc. like we went over in
class today), you need to add the following line to your wp-config.php
file (in your wordpress directory with everything else):
define('FS_METHOD', 'direct');
Then just trying a few things out until something worked.
Most things I ran across first were much more complex and didn't end
up working, so this was surprisingly simple.
Super glad to be able to use the normal interface now.
Jim replies
Nice catch.
The first page you reference says in part :
[wordpress needs to] create a temporary file and
confirm[s] that the file just created is owned by
the same user that owns the script currently being run.
In the case of installing plugins, the script being
run is wp-admin/plugin-install.php.
This may seem a little counter-intuitive, since the only
thing WordPress really needs to be able to do is write
to the wp-content/plugins directory.
"A little counter-intuitive" ? Hmmm. I have no idea
why that particular requirement is in place. If true,
then probably setting the owner (not just the group)
of all the relavent php scripts to "web" would also
fix the problem. That is not at all obviously a
good thing to do. I don't see why they expect that -
it's not something that would have occurred to me to try.
I guess that wp-config.php directive says in effect
"do that anyway if you possible".