|
Hi Scott,
I was using whoami based on the example in this URL:
http://php.net/manual/en/function.exec.php
Though maybe because I am running on an IBMi it doesn't work the same.
Your suggestion of
echo exec('id -un')
produces "qtmhhttp" (without the quotes)
Could it be a case issue?
Note I did run the following commands but it still isn't allowing PHP to
write to the directory it is trying to write to:
CHGAUT OBJ('/www/zendsvr') USER(QTMHHTTP) DTAAUT(*RWX) OBJAUT(*ALL)
SUBTREE(*ALL)
CHGAUT OBJ('/www/zendsvr') USER(*PUBLIC) DTAAUT(*RWX) OBJAUT(*ALL)
SUBTREE(*ALL)
CHGAUT OBJ('/www/zendsvr') USER(ZENDADMIN) DTAAUT(*RWX) OBJAUT(*ALL)
SUBTREE(*ALL)
CHGAUT OBJ('/www/zendsvr') USER(NOBODY) DTAAUT(*RWX) OBJAUT(*ALL)
SUBTREE(*ALL)
CHGAUT OBJ('/www/zendsvr') USER(WORDPRESS) DTAAUT(*RWX) OBJAUT(*ALL)
SUBTREE(*ALL)
Note that USER(WORDPRESS) is both a user in WordPress and an IBMi profile.
I just wanted to test that out to see if it was the case.
I am not sure how much more wide open I can make it other than to do the
above for '/' (root folder), and I don't really want to do that.
Oh, and Jim, I tried a CHGAUT for QPGMR without luck.
Aaron Bartell
www.MowYourLawn.com/blog
www.OpenRPGUI.com
www.SoftwareSavesLives.com
On Thu, Dec 9, 2010 at 12:08 PM, Scott Klement<web400@xxxxxxxxxxxxxxxx>wrote:
Hi Aaron,
I use the 'whoami' command regularly on FreeBSD. But AFIAK, it has
never existed in PASE or QShell. Did you install/write your own whoami
tool? Or did IBM add one in a newer release? (I'm still stuck on v5r4,
and it's driving me nuts.)
But anyway, I'd start by checking to see if you have a 'whoami'.
Assuming that you don't, I'd try using the 'id' command instead. For
example:
echo exec('id -un');
This is off the top of my head, untested. Hope it helps.
On 12/9/2010 10:36 AM, Aaron Bartell wrote:
Hi all,user
I was able to get WordPress up and running on my IBM i with relative ease
and now I want to install additional plugins. The issue is that if the
profile used by the currently running script doesn't have access to thehttp://hecode.com/why-wordpress-asks-for-connection-info-when-i-try-to-install-new-plugin/
folder where the plugin is going to be installed, then it will prompt you
for FTP login information.
Here is an article that talks about the issue:
as
In the article then recommend creating a simple php script with the
following:
echo exec('whoami');
I did that, and it is executing successfully (no ZendServer error logs or
warnings) but it returns blanks, so that doesn't help. I have even gone
far as giving *PUBLIC all authority to the entire directory structurewith
the following command (running V6R1):
CHGAUT OBJ('/www/zendsvr') USER(*PUBLIC) DTAAUT(*RWX) OBJAUT(*ALL)
SUBTREE(*ALL)
Still no go.
Anybody else resolve this?
Aaron Bartell
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.