Internet
Technologies

Spring 2012
course
navigation

Apr 5

aside

Google's Project Glass
Flashback Trojan controls 500000 Macs

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');
I didn't find the exact solution anywhere, but I was pointed towards it by looking through the comments on this page: http://www.chrisabernethy.com/why-wordpress-asks-connection-info/
And the Wordpress Codex article on wp-config.php: https://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content
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".
http://cs.marlboro.edu/ courses/ spring2012/internet/ notes/ Apr_5
last modified Thursday April 5 2012 1:19 am EDT