--------------------
For cPanel
--------------------
There are 3 ways to fix it.
1. Go to WHM >> Server Configuration >> Tweak Setting, and choose ioncube on 'Loader to use for internal cPanel PHP'.
Run command
service cpanel restart
Then check your RVsitebuilder again.
2. Run:
perl /var/cpanel/rvglobalsoft/rvsitebuilder/panelmenus/cpanel/scripts/autofixphpini.pl
Then check your RVsitebuilder again.
3. Edit php.ini for internal cPanel PHP manually. To do this way is only a last choice. Php.ini is likely to be reverted back after updating cPanel and you will need to redo it again.
• Find your internal cPanel php.ini by calling the https://{SERVER_IP}:2087/cgi/rvsitebuilder/rvdebug.php. It will display phpinfo page. Find the php.ini path.
• SSH to the server as root.
• Edit php.ini, insert these 2 lines under the extension_dir line.
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so"
• Run this command
/usr/local/cpanel/bin/install_php_inis
• Restart cPanel services
/usr/local/cpanel/startup
• Check your RVsitebuilder again.
Using these instructions for only in case the autofixphpini.pl doesn't help you.
Run this command manually.
perl /scripts/phpextensionmgr --prefix /usr/local/cpanel/3rdparty install IonCubeLoader
Create or update /scripts/postupcp to run above command every after cPanel upcp.
#!/usr/bin/perl
if (-f '/var/cpanel/rvglobalsoft/rvsitebuilder/panelmenus/cpanel/scripts/autofixphpini.pl') {
system('perl /var/cpanel/rvglobalsoft/rvsitebuilder/panelmenus/cpanel/scripts/autofixphpini.pl');
}
if (-f '/scripts/phpextensionmgr') {
system('perl /scripts/phpextensionmgr --prefix /usr/local/cpanel/3rdparty install IonCubeLoader');
}
1;
Make sure /scripts/postupcp permission is 700. You also need to test it by running /scripts/postupcp and check RVsitebuilder again.
------------------------
For DirectAdmin
------------------------
1. Open /usr/local/directadmin/plugins/rvsitebuilder/user/php.ini to edit
2. Insert the following line under the extension_dir line.
zend_extension = "/ioncube/ioncube_loader_lin_5.2.so"
NOTE: the number 5.2 is standing for your current "php version", please replace it by yours.
3. Restart Directadmin services
/etc/init.d/httpd restart
/etc/init.d/directadmin restart
sudo systemctl restart httpd.service sudo systemctl restart directadmin.service
4. Check your RVsitebuilder again.
Comments
0 comments
Article is closed for comments.