nlkocx
December 17, 2022, 12:32pm
3
I was able to install. I did
rm /usr/bin/php
ln -s /usr/local/lsws/lsphp81/bin/php /usr/bin/php
Then the script and now I have
PHP 8.1.6 (cli) (built: May 15 2022 23:59:28) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.6, Copyright (c) Zend Technologies
with the ionCube PHP Loader v12.0.4, Copyright (c) 2002-2022, by ionCube Ltd.
with Zend OPcache v8.1.6, Copyright (c), by Zend Technologies
but problem is that whmcs still doesn’t work. Page loads with php 7.4 with ion 10 but php 8.1 ion 12 doesn’t work.
Did you restart ols and cyberpanel’s lscpd systemctl restart lsws && systemctl restart lscpd
nlkocx
December 17, 2022, 12:38pm
5
Yes. I restarted the whole server of CyberPanel
nlkocx
December 17, 2022, 12:39pm
6
The page rn with php 8.1 and Ion V12 gives this on Edge:
This page isn’t working right now
billing.domain.com can’t currently handle this request.
HTTP ERROR 500
nlkocx
December 17, 2022, 12:40pm
8
It works with php 7.4 with Ion V10 but I don’t want to use php 7.4 bc it’s EOL
Sidenote every php version when it reaches EOL has 3 year support lifecycle. Most corporates use these versions until they switch over.
Go to cyberpanel admin dashboard and post a screenshot of your website error log
nlkocx
December 17, 2022, 12:48pm
11
Wait I found.
2022-12-17 12:44:22.195851 [INFO] [10519] RewriteFile [.htaccess] parsed, return 0.
2022-12-17 12:44:22.195853 [INFO] [10519] [config:server:vhosts:vhost:Example] config context /blocked/.
2022-12-17 12:44:22.195856 [INFO] [10519] [config:server:vhosts:vhost:Example] config context /cgi-bin/.
2022-12-17 12:44:22.195860 [INFO] [10519] [config:server:vhosts:vhost:Example] config context /docs/.
2022-12-17 12:44:22.195863 [INFO] [10519] [config:server:vhosts:vhost:Example] config context /protected/.
2022-12-17 12:44:22.195905 [INFO] [10519] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/billing.domain.com/vhost.conf
2022-12-17 12:44:22.196089 [INFO] [10519] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/billing.domain.com/vhost.conf
2022-12-17 12:44:22.196094 [INFO] [10519] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]
2022-12-17 12:44:22.196294 [INFO] [10519] [config:server:vhosts:vhost:billing.domain.com] config context /.well-known/acme-challenge.
2022-12-17 12:44:22.196308 [INFO] [10519] RewriteFile [/home/billing.domain.com/public_html/.htaccess] parsed, return 0.
2022-12-17 12:44:22.196342 [INFO] [10519] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/ccl.conf
2022-12-17 12:44:22.196516 [INFO] [10519] [PlainConf] [virtualHostTemplate:] Finished parsing file /usr/local/lsws/conf/templates/ccl.conf
2022-12-17 12:44:22.196520 [INFO] [10519] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2022-12-17 12:44:22.196567 [INFO] [10519] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/rails.conf
2022-12-17 12:44:22.196726 [INFO] [10519] [PlainConf] [virtualHostTemplate:] Finished parsing file /usr/local/lsws/conf/templates/rails.conf
2022-12-17 12:44:22.196730 [INFO] [10519] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2022-12-17 12:44:22.196768 [NOTICE] [10519] [ZConfManager] No VHosts added, do not send!
2022-12-17 12:44:22.197065 [NOTICE] [10519] Instance is ready for service. m_fdCmd 33, m_fdAdmin 6.
2022-12-17 12:44:22.197171 [NOTICE] [10519] [AutoRestarter] new child process with pid=10521 is forked!
2022-12-17 12:44:22.197382 [NOTICE] [10521] [*:80] Worker #1 activates SO_REUSEPORT #1 socket, fd: 8
2022-12-17 12:44:22.197401 [NOTICE] [10521] [*:443] Worker #1 activates SO_REUSEPORT #1 socket, fd: 9
2022-12-17 12:44:22.197404 [NOTICE] [10521] [UDP *:443] Worker #1 activates SO_REUSEPORT #1 socket, fd: 10
2022-12-17 12:44:22.197415 [INFO] [10521] [UDP:0.0.0.0:443] initPacketsIn: allocated 100 packets
2022-12-17 12:44:22.197418 [NOTICE] [10521] [[::]:443] Worker #1 activates SO_REUSEPORT #1 socket, fd: 11
2022-12-17 12:44:22.197420 [NOTICE] [10521] [UDP [::]:443] Worker #1 activates SO_REUSEPORT #1 socket, fd: 12
2022-12-17 12:44:22.197422 [INFO] [10521] [UDP:[::]:443] initPacketsIn: allocated 100 packets
2022-12-17 12:44:22.197426 [INFO] [10521] [UDP:0.0.0.0:7080] initPacketsIn: allocated 100 packets
2022-12-17 12:44:22.197487 [NOTICE] [10521] AIO is not supported on this machine!
2022-12-17 12:44:22.197504 [NOTICE] [10521] Successfully change current user to nobody
2022-12-17 12:44:22.197507 [NOTICE] [10521] Core dump is enabled.
2022-12-17 12:44:22.197538 [NOTICE] [10521] Setup swapping space...
2022-12-17 12:44:22.197561 [NOTICE] [10521] LiteSpeed/1.7.16 Open starts successfully!
2022-12-17 12:44:22.288624 [NOTICE] [10484] New litespeed process is ready, stops listeners
2022-12-17 12:44:22.288651 [INFO] [10484] Stop all listeners.
2022-12-17 12:44:22.288655 [NOTICE] [10484] Stop listener *:80, fd 8.
2022-12-17 12:44:22.288660 [NOTICE] [10484] Stop listener *:443, fd 9.
2022-12-17 12:44:22.288663 [NOTICE] [10484] Stop listener [::]:443, fd 11.
2022-12-17 12:44:22.288665 [NOTICE] [10484] Stop listener *:7080, fd 13.
2022-12-17 12:44:22.992557 [NOTICE] [10484] Event-loop lingering done.
2022-12-17 12:44:22.992574 [NOTICE] [10484] Shut down successfully!
2022-12-17 12:44:22.992578 [NOTICE] [10484] HttpServerImpl::releaseAll called.
2022-12-17 12:44:22.993131 [NOTICE] [10482] [AutoRestarter] cleanup children processes and unix sockets belong to process 10484 !
2022-12-17 12:44:23.000098 [NOTICE] [10482] [AutoRestarter] child process with pid=10484 exited with status=0!
2022-12-17 12:44:23.000158 [NOTICE] [10482] Server Stopped!
2022-12-17 12:44:57.778158 [NOTICE] [10521] [188..xxx.xxx:33068:HTTP2-15#billing.domain.com] [STDERR] PHP Fatal error: The file /home/billing.domain.com/public_html/install/install.php encoded as type [1/72] cannot be decoded by this version of the ionCube Loader.
in Unknown on line 0
2022-12-17 12:44:58.320141 [NOTICE] [10521] [188..xxx.xxx:33068:HTTP2-17#billing.domain.com] [STDERR] PHP Fatal error: The file /home/billing.domain.com/public_html/install/install.php encoded as type [1/72] cannot be decoded by this version of the ionCube Loader.
in Unknown on line 0
2022-12-17 12:46:50.349433 [NOTICE] [10521] [88.xxx.xxx:44892#billing.domain.com] [STDERR] PHP Fatal error: The file /home/billing.domain.com/public_html/index.php encoded as type [1/72] cannot be decoded by this version of the ionCube Loader.
in Unknown on line 0
nlkocx
December 17, 2022, 12:50pm
12
Which should work bc on my other VM I have:
PHP 8.1.13 (cli) (built: Nov 26 2022 14:29:42) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
with the ionCube PHP Loader v12.0.4, Copyright (c) 2002-2022, by ionCube Ltd.
and it works
Chnage ioncube version. Kindly check the system requirements for whmcs
nlkocx
December 17, 2022, 12:53pm
15
nlkocx:
PHP 8.1.13 (cli) (built: Nov 26 2022 14:29:42) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
with the ionCube PHP Loader v12.0.4, Copyright (c) 2002-2022, by ionCube Ltd.
It needs 2 work my other VM has the same IonCube Loader V12 check below:
PHP 8.1.13 (cli) (built: Nov 26 2022 14:29:42) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
with the ionCube PHP Loader v12.0.4, Copyright (c) 2002-2022, by ionCube Ltd.
nlkocx
December 17, 2022, 12:55pm
16
josephgodwinke:
Go to Websites → mywhmcswebsite.com → File Manager → Fix Permissions
Check .htaccess for any errors. Something like RewriteRule ^(.*) http://www.example.com/$1 [P]
can cause issues etc. Post a screenshot here
Increase your PHP memory limit
All checked & I don’t see a .htacess file
Disable modsecurity or imunifyAV/360 and restart lsws and lscpd
service lsws restart && service lscpd restart
nlkocx
December 17, 2022, 1:00pm
18
They are not installed yet
I saw this: 2022-12-17 12:55:34.478985 [INFO] [84253] RewriteFile [/home/billing.domain.com/public_html/.htaccess] parsed, return 0.
Also one thing. I see this:
Zend Engine v4.1.13, Copyright (c) Zend Technologies (VM WITH WHMCS)
with the ionCube PHP Loader v12.0.4, Copyright (c) 2002-2022, by ionCube Ltd.
Zend Engine v4.1.6, Copyright (c) Zend Technologies (CYBERPANEL)
with the ionCube PHP Loader v12.0.4, Copyright (c) 2002-2022, by ionCube Ltd.
Maybe I need to update Zend Engine?
Can you erase your whmcs installation and set it up afresh? I dont see what else we can do that would not involve setting up ioncube afresh but before we do that setup the whmcs installation.
nlkocx
December 31, 2022, 7:02pm
22
I was able to solve this! WHMCS is now working perfectly as far I see.
system
Closed
December 31, 2022, 10:03pm
23
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.