Tim,
I think you may have hit it. From his previous post it looks like his
wordpress directory (and probably everything in it) is owned by AARON, not
QTMHHTTP.


Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777



Timothy P Clark <timclark@xxxxxxxxxx>
Sent by: web400-bounces@xxxxxxxxxxxx
12/09/2010 03:57 PM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>


To
web400@xxxxxxxxxxxx
cc

Subject
Re: [WEB400] WhoAmI in PHP and getting Wordpress plugins to work without
FTP






Aaron,

I haven't done much work with WordPress, but referring to the code snippet

in the blog entry that you referenced in your original post and the
description of getmyuid() at
http://php.net/manual/en/function.getmyuid.php, it seems to me that the
problem is that the owner of the WordPress scripts is different than the
profile running the web server.

if( function_exists(âgetmyuidâ) && function_exists(âfileownerâ) ){
$temp_file = wp_tempnam();
if ( getmyuid() == fileowner($temp_file) )
$method = âdirectâ;
unlink($temp_file);
}

As you can see, the important thing is that the owner of the newly created

file (whose owner I expect to be QTMHHTTP) is the same as the owner of
the script file that is being executed (wp-admin/includes/file.php
apparently).

I would check who owns wp-admin/includes/file.php and if it is other than
QTMHHTTP, do a chown QTMHHTTP on (at least) wp-admin/includes/file.php.

Tim


date: Thu, 9 Dec 2010 14:18:20 -0600
from: Aaron Bartell <aaronbartell@xxxxxxxxx>
subject: Re: [WEB400] WhoAmI in PHP and getting Wordpress plugins to
work without FTP

Here are the authorities for wp-content, and actually the authorities
all
the way up to /www/zendsvr

Work with Authority

Object . . . . . . . . . . . . : /www/zendsvr/htdocs/wp_aaron/wp-content
Type . . . . . . . . . . . . . : DIR
Owner . . . . . . . . . . . . : AARON
Primary group . . . . . . . . : *NONE
Authorization list . . . . . . : *NONE

Type options, press Enter.
1=Add user 2=Change user authority 4=Remove user

Data --Object Authorities--
Opt User Authority Exist Mgt Alter Ref

*PUBLIC *RWX X X X X
AARON *RWX X X X X
NOBODY *RWX X X X X
QPGMR *RWX X X X X
QTCP *RWX X X X X
QTMHHTP1 *RWX X X X X
QTMHHTTP *RWX X X X X
WORDPRESS *RWX X X X X
ZENDADMIN *RWX X X X X

Aaron Bartell
www.MowYourLawn.com/blog
www.OpenRPGUI.com
www.SoftwareSavesLives.com



On Thu, Dec 9, 2010 at 1:51 PM, Bryce Martin <BMartin@xxxxxxxxxxxx>
wrote:

Is an FTP server installed in Pase by default? Could it be that you
don't
have an FTP server running in PASE? Also, the permissions on your
wp-content directory could be giving you issues, I would check those.
Its
not considered safe to have wp-content left open with any write
permissions, so make sure that they didn't get changed.


Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.