View Issue Details

IDProjectCategoryView StatusLast Update
0019999phpList 3 applicationAutomatic updaterpublic10-07-19 18:57
Reportergrindlay 
PrioritylowSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version3.4.2 
Target VersionFixed in Version 
Summary0019999: Updater problem persists when file permission set to the account owner
DescriptionRe https://mantis.phplist.org/view.php?id=19652
on Cpanel/WHM servers, files are often owned by the account user e.g. user:user
The 644 file and 755 dir permissions are the same.
ON my server, this is causing an error when the updater checks, presumably in the checkWritePermissions() function on line 142 of /updater/index.php
I can't understand why but is there any code I can add to debug ?
TagsNo tags attached.

Activities

grindlay

26-06-19 16:52

reporter  

Capture.PNG (19,242 bytes)
Capture.PNG (19,242 bytes)

grindlay

26-06-19 16:58

reporter   ~0062504

Should have said, the server uses PHP-FPM, the replacement for suPHP and suEXEC

samtuke

01-07-19 11:12

administrator   ~0062521

@grindlay "I can't understand why but is there any code I can add to debug ?" -- yes you can check to see what checkWritePermissions() is returning (if it passes or fails), and also check what actual permissions are reported using e.g. fileperms(). I'm confused by your report as PHP-FPM is not a replacement for suPHP or suEXEC as far as I am aware; they are different things with different purposes.

grindlay

10-07-19 18:57

reporter   ~0062553

As you can see from the screen shot, checkWritePermissions() is returning something, I'm just not sure what - I'll try to add some debug code.
PHP-FPM is an alternative Apache PHP handler to suPHP with better performance and security.