Migration from Apache to Litespeed help

Hello

I’m hoping I can find some help here. I have setup cyberpanel/litespeed and I’ve migrated my Wordpress site using Duplicator over from an Azure App Service (Apache based server). Since I’ve migrated over to Litespeed, I have been inundated with errors all over the site, most of them include these two:

Uncaught Error: Call to undefined method …
Parse error : syntax error, unexpected ‘endforeach’ (T_ENDFOREACH)

Why would my site run seamlessy on Apache, but after migration all these errors are produced? Is there some kind of configuration I need to do?

Here are the server details:
Apache Server: PHP Version 7.4.26
Litespeed Server: PHP Version 7.4.29

Any help is appreciated.
Many thanks
Kahl

if we talk only about Wordpress then try use Wp-Migration …
but if we talk whole server
sry i cant help :frowning:

Thanks! Are you suggesting I should use this plugin to migrate over and see if that helps?

yes… there is many tutorial at youtube for migration Wordpress and very easy to use

Thanks

I have been able to migrate over, but my site doesn’t work like it did. I now have errors I never had before even though the site is an exact clone

it will helped if you provide
-screenshoot cyberpanel version
-Wordpress version
-/home/user/ chmod chown
-current problem

what you wanto to do
what is your final goal (expectation_

Please how me content in htaccess

Thank you. Here is my .htaccess file

Wordpress Version is 5.9.3

Here is my site one page on my live site:
https://slabd.com.au/complete-through-dates/

Here is the exact same page hosted by cyberpanel/litespeed with debugging turned on (I’ve used duplicator to clone the site). Notice the table wont display.
https://cornerhost.com.au/complete-through-dates/

It seems that any of the pages that I have coded return all sorts of errors. I don’t understand why they are occuring. I’m trying to make my site compatible with cyberpanel so that I can migrate it over.

Thanks for helping!

image
same server ?
image

No, two different servers. i’m trying to migrate servers. Moving from Apache to Litespeed/CyberPanel

those ip is same…
you should fix that first before do migration
then it will look like

olddomainname.oldserver.tld = website full running
newdomain.newserver.tld = blank wordpress

at this step if at newdomain.newserver.tld wordpress running well and no error then you can go to next step. migration the wp

The ips you posted are different though? How are they the same?

Lol sorry
yeah that different
sorry someone just contact me at email and i missed
i though i was reply to him

forgive me… little crowded on my head…

well
then you can try to cleanup the new server and use default wp installation
after everything is run well
you can migrate

Thanks for you input. I don’t think that is the probelm. It’s a fresh image, I have 2 other sites running on it that are working fine, it is just this site this isolated site that has an issue.

ok then

sorry cant help
because as far as i know
wordpress is only about files and db

and if we want to find the problem we only can find it by tracing from part to part

forgive me because i cant help

Thanks for trying. Appreciate your help

1 Like

Did you migrate original htacces or use new wp generated one?

The problem lies with duplicator plugin. Duplicator modifies the htaccess all on its own and sometimes it messes up. Hence I stopped using duplicator and I manually transfer the website. Duplicator also edits wp-config file to add the site address.

You can try updraft plugin too as thats more popular and error-free.

This can also be related to table format of your database. Your old server might be using MyISAM and shifting to InnoDB can have some issues too.

But checking your provided site, it seems its something to do with your theme. Just try to change the theme and see if the errors are gone. and then revert to this current theme.
Try to restart the server too.

The original htaccess was migrated. What would be the best action to take in this case?