last day (15 days later) » 

18:08
0
Q: Wordpress plugin update/install failure

AureliusI've been reading all sorts of information all over the web on this topic. I just installed Wordpress on my Fedora 22 box, x64. The installation went perfectly, I'm able to access the site, but cannot update plugins at all. I've seen two different directions so far: 1) Set up the FTP server tha...

Yeah, you are already on the right track. You need to find out, under which user your PHP script gets executed, to then set the needed permissions. You can try $processUser = posix_getpwuid(posix_geteuid()); print $processUser['name']; in a PHP script to get the user name.
I'm far from a PHP user. How can I run that?
Put it into a .php file and then access it via the browser just like you do with your WordPress install. :|
Just tried that, as I remember I did the phpinfo() thing in info.php. However, replacing that with the code you mentioned generated a 500 server error.
Just put it exactly the way as in that page (scroll down to the first comment): php.net/manual/en/function.get-current-user.php
18:08
Makes no difference what's in the file, I'm getting a 500 server error. This might point to the fact that I couldn't find the php process before.
Chat is fine. ;)
So your phpinfo is still working?
It also contains the username ... it's under the heading "Environment".
No, the phpinfo is not working
Returns a 500 error, though the wordpress site is still up
That doesn't really make any sense ...
It really seems as though the php process isn't running, but wouldn't it have to be for the wordpress to work?
so what does your phpinfo file contain?
Ya, if WordPress runs the PHP process must be alive.
18:16
Right now, it has <?php
$processUser = posix_getpwuid(posix_geteuid());
print $processUser['name'];
?>
but I also had <?php phpinfo(); ?>
and <?php phpinfo(); ?> also results in 500 now?
Yup
It was working before I installed wordpress
Thank you so much for taking the time to help me
and if you just put phpinfo(); into the wordpress index.php after the opening <?php ...
I'll try that
lol now the front page has phpinfo in it
I'll try replacing the code with the checkuser code
whoa, getting 500 error
The information about the user should also be in the phpinfo output somewhere under "Environment", but it should be fine either way.
18:19
Okay, let me check that again
I think your SELinux maybe doesn't like posix_geteuid().
I'm not getting any SELinux errors, that I can see anyway
what am I looking for in phpinfo?
In the section "Environment" there is a variable "USER".
Not seeing one. I see admin is root@localhost but that's the only username I can see
this is under the heading Apache Environment, right?
There should be "Environment" only.
18:23
oh wait, I found the Environment heading way down, still no USER variable
... did you follow a tutorial to setup the Apache? Do you know which request handler is used?
mod_php or php-fpm maybe?
however, instead of changing to iptables, I just edited my current firewalld settings as I didn't want to rewrite them all for iptables
could that be the issue?
No, I don't think so.
I am able to access port 80 and the front page, so that's what I thought as wel
Networking/firewalls shouldn't change anything about file permissions ....
yeah, exactly.
18:26
and the ftp ports are open, I can connect from my laptop, but WP doesn't like those creds.
but that's a whole other issue, I think.
yeah, the WP ftp handler isn't that great ... but it must work without it.
I would be happy to give you SSH access if you want to poke around, but that's asking a lot. It's all good if you can't figure it out
asking a lot of you I mean
hmmm ... guess that would be the fastest way. I would be fine to have a quick look. But please change the password - you shouldn't give random strangers on the internet your root-password and the chat protocols are public. ;)
:P okay. I will change my user's password, and forward the port22. Give me five minutes
sorry, every time I want to change my routers settings I have to reboot it
such a pain
Can you give the link to the phpinfo in the meanwhile, or is it internal only?
18:34
Its internal right now
I will forward port 80 as well, if you want
my IP is 174.119.138.5, just give me two more seconds to get it all set up
That would be great, ... I could swear the user info must be somewhere in there. ;)
okay, port 22 is open
username mrowsell
password aurel!us
let me know if it lets you in
I'll add port 80 now
port 22 still blocked :(
argh, stupid router. It didn't save, just a minte
ok :)
18:42
omfg I hate this router so much. I need to bridge it to my nice D-Link when Ig et the chance
It's one of the combo ones
man, it just keeps resetting the access page after 2 minutes past reboot, and then I can't get back in
that's annoying. Too bad ...
its okay, just had to switch to ethernet
or not...
Urgh.
thanks for your patience
I'll try once more, and if I can't then I'll have to try something else
Ok, I'm sure we can make it without SSH. ;)
hopefully. alright, I'm about to toss this router out the window. it just refuses to connect after the first 30 seconds....
hmmm ... okay. :p
Back to phpinfo ...
Could you just copy & paste the whole content here?
18:50
Sure thing
Its huge
ya, dunno if chat can handle it.
oh wait, do you have teamviewer?
or put it into a pastebin.com ...
you could just use that
its already set up on that pc
Ah okay. Which version?
I got 11.
18:52
same
its number is....
901 909 197
password e9v54z
there we go
:)
can you show the phpinfo?
yup
oops must have removed it
one sec
there it is
your username is apache ;-)
but that's what the directories are set to be owned as
where is the wordpress site?
18:56
it's all under /var/www/html
might need to sudo that
aurel!us
:)
thanks so much man
hummm
I think I ran sudo chmod -R 755 /var/www/html
I know, very strange
Doesn't look quite right to me, yet. :|
19:01
and that's what happens when I try to update
and you have "direct" still in your wp-config?
I see.
the two lines below I tried before, didnt help so I commented them out
Must work. :|
Lets try 775 ...
ummm ... this doesn't make any sense.
19:04
there must be a log somewhere with more detail on what directory it's trying to create?
I'm pretty sure it must be SELinux.
okay, let's take a look
AHA
you are totally right!!!!
top solution or bottom?
I see what the problem is now
that tutorial had the wrong selinux string
now we have a different error
it's going to need this on the whole directory, just a minute, I think I know what to do
I guess you need to somehow enable it for anything in wp-content including subfolders ... :|
yeah, ... I had the same thought. ;)
Unfortunately I'm not into SELinux at all ;)
BAM. there it is!!
19:09
thank you for pointing that out!!
I will add this as an answer
Dude, you rock
You solved it yourself I would say. :p
it threw me off because usually SELinux give a notification every time there's an error
I didn't go in an check manually
In the end hindsight is 20/20 I would say. Glad it's working now.
Okay. I'm off for a round of gaming now .... have a nice evening. ;)
Thanks so much!
You are welcome. :)
19:16
Are you on Steam?
if so, feel free to add me ... I'm mraureliusr

last day (15 days later) »