Olivier
Olivier5mo ago

Ioncube on a plesk server

Hi, I have vps with plesk on it, i am going to install ioncube on it because i have a website hosted (As a ''customer''.)that needs it for whmcs on the back to work. But because of it being hosted it has restricted rights to my server, it has it's own space and can't interact with the the main vps directories. Because of this, it can't see some files of the ioncube installed on my server.
23 Replies
DirtyJ
DirtyJ5mo ago
Are you saying that PHP can't see the .php files in your web root or ioncube isn't running due to not being fully installed? Using the ioncube wizard (on their homepage) should show if it's been installed correctly, if it isn't, that's something that'll need to be turned on in Plesk if available If PHP can't see the files, then you're going to need to check that the web user and group recursively own all files and directories (chmod/chown) in the web root and can read/write to those files as needed
Olivier
OlivierOP5mo ago
hi thank you for your response
Olivier
OlivierOP5mo ago
No description
Olivier
OlivierOP5mo ago
this is the message I am getting, see this txt file for a better overview of the paths
Olivier
OlivierOP5mo ago
Is it okay if I private message you about giving a user access to these paths?
DirtyJ
DirtyJ5mo ago
The user shouldn't have access to the global PHP configurations, though if you have root access to the Plesk server you can just
plesk bin php_handler --extension-install ioncube_loader -id plesk-php81-fpm
plesk bin php_handler --extension-install ioncube_loader -id plesk-php81-fpm
We try to keep all support forums to this channel so it can benefit our community and anyone with additional knowledge can chime in
Olivier
OlivierOP5mo ago
Ofcourse, just for privacy reasons of my ip and users I will try it later this day, keeping you updated I do not really understand what you have written here do i need to copy and paste it 1 on 1? because that doesn't work
Olivier
OlivierOP5mo ago
oh it did work in the websites space
No description
Olivier
OlivierOP5mo ago
but now there is another problem I accidentally installed a php 8.3 version before I think was following a tutorial but it really messed things up don't really understand what this is saying exactly
DirtyJ
DirtyJ5mo ago
This shows that ionCube for PHP 8.1 is successfully installed Do you have a new error or other issue appearing?
Olivier
OlivierOP5mo ago
yeah but as you see whmcs still doesn't work
No description
DirtyJ
DirtyJ5mo ago
I'd enable the display_errors directive in your php.ini temporarily or go check the error logs in the error_log directive file path (also in the ini)
Olivier
OlivierOP5mo ago
this one?
No description
Olivier
OlivierOP5mo ago
It is really weird, used cpanel before, and that always worked without issues. Plesk has better overview in my opinion, but is a bit more secure in a good and bad way
DirtyJ
DirtyJ5mo ago
Viewing Website Error Log
To view the error log for a particular website Go to Websites & Domains > the site’s domain name > click ...
DirtyJ
DirtyJ5mo ago
Plesk preconfigures the error_log location, so you can just go find it there
Olivier
OlivierOP5mo ago
errors don't give errors about whmcs, because it isn't installed I think, the installer needs ioncube. can someone maybe call with me to solve the issue?
DirtyJ
DirtyJ5mo ago
If you reach out to WHMCS support they can take a look in there for you, included with your license Also if you can send the error message I might be able to tell you what's wrong
Olivier
OlivierOP5mo ago
i did today, they said they can't call with me and look to the problem, nice
Olivier
OlivierOP5mo ago
i am not going for the security things because of all the right and roles problems @DirtyJ do you have time to maybe hop on a call, or later?
DirtyJ
DirtyJ5mo ago
They won't call (I won't have time to this weekend either), but if you can set up temporary access details they can review the logs for you and find any issues if they're related to the WHMCS product itself or common PHP misconfigurations. Likely, if the installer won't show at all, then there's an issue with the PHP environment or the system requirements haven't been met
Olivier
OlivierOP5mo ago
we can close this ticket, I am in a talk with the plesk support