janiosarmento Posted January 22, 2019 Share Posted January 22, 2019 I updated my WHMCS installation, but all I got was a BSOD. Checking the logs I found: [Tue Jan 22 10:05:52 2019] [warn-ioncube] mmap cache can't open /home/meuportofacil/public_html/vendor/composer/../mtdowling/jmespath.php/src/JmesPath.php - Permission denied (pid 2063 I checked entire account permissions (ran a script to chmod files to 644, directories do 755, and set correct owner to all of them), tried even chmod 777 (I know), but the error remained. So, I had to rollback to previous version. Any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 22, 2019 WHMCS Support Manager Share Posted January 22, 2019 Hi @janiosarmento, A permissions mask of 644 is fine for the PHP files. From my research the other possibility cause of this error is user/group ownership of JmesPath.php: https://forums.cpanel.net/threads/mmap-cache.577221/ The correct user/group will depend upon your specific server configuration. But for a fairly stock cPanel server, the file ownership and group should be the same as the user directory name. Eg. On a cPanel box with the WHMCS files at /home/david/public_html/ files should be owned by david, and the group should be david. 0 Quote Link to comment Share on other sites More sharing options...
janiosarmento Posted January 22, 2019 Author Share Posted January 22, 2019 Thanks for your reply. As I said before, I adjusted all permissions, including file owner, exactly as you suggested. But no success. I opened a ticket, I hope someone from technical support would be able to help. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 22, 2019 WHMCS Support Manager Share Posted January 22, 2019 Hi @janiosarmento, As this is a server configuration matter, the assistance we can provide will be limited. But we shall do our best! Please bear with us as following a new release is our busiest time. 0 Quote Link to comment Share on other sites More sharing options...
janiosarmento Posted January 22, 2019 Author Share Posted January 22, 2019 I understand that you state it is a server matter, but I don't understand why WHMCS 7.6 works fine, but WHMCS 7.7 fails to run. It is the same server, in order to put my site back to track I just did `rsync --delete` from my backup to live server. I hope I don't get stuck on an older version forever... 😕 0 Quote Link to comment Share on other sites More sharing options...
janiosarmento Posted January 22, 2019 Author Share Posted January 22, 2019 I managed to solve my issue. Actually, I can't explain what really worked, or why, but that's what I did. First, I decompressed the full release zip file on my own computer. Then I rsynced the files from my computer to server: rsync -vaPtrz ~/my/whmcs/location/whmcs/ root@my.server.ip:/home/myuser/www/ I think the key here is retaining the same permissions inherited from the zip file. Then, I had to ssh my server and run: php ~/myuser/www/install/update.php That was because I got stuck with a screen stating my database mismatched version with installed files, and it was not possible to run it within web interface. From this point on, it was just a regular update, with a few "next, next, finish" clicks. Thanks for everything. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.