Jump to content

Ioncube permission error


Recommended Posts

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?

Link to comment
Share on other sites

  • WHMCS Support Manager

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.

Link to comment
Share on other sites

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... 😕

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated