Move your PHP website to Google Cloud Computing or a Digital Ocean Droplet

good afternoon to you.

I’m experiencing trouble switching a php and mysql-based website over to Google Compute Engine.

This website has been operating on the web host for three years without any issues, and it is currently hosted with a company that uses Cpanel 102.0.31. Everything is functioning flawlessly.

This page was created locally on a computer running WampServer 3.2.0. The WampServer I chose has PHP 7.3.12, MySQL 8.0.18, and Apache 2.4.41 installed.

I discovered cloud hosting because this website is seeing a lot of traffic. I have tried using Digital Ocean droplets for two weeks, despite not being familiar with command line usage, but to no effect. I was able to set up the server, which comes pre-configured with the most recent version of Apache (2.4.10) and several other software packages, including PHP 7.3.13.

sudo add-apt-repository ppa:ondrej/php

<FilesMatch \.php$>
      # For Apache version 2.4.10 and above, use SetHandler to run PHP as a fastCGI process server
      SetHandler "proxy:unix:/run/php/php7.3-fpm.sock|fcgi://localhost"
    </FilesMatch>

Some of the problems I encounter is

  1. Log in page not working
  2. Information not saved to database
  3. And the website not behaving as it used to be

I have installed the latest version of php 8.2 before on the droplet but it is even worse in its behavior.

I felt this problem might be because of version incompatibility. I then thought if I can install the WampServer 3.2.0 that I am using on my local computer, may be the whole problem will be solved since the environment is the same. But I don’t know if this is possible with digital ocean and how to go about it.

I’ve registered with the Google Cloud Platform. What do you think? Can WampServer 3.2.0 be installed on Google Compute? If so, will this fix the issue with the website’s downtime? Or there is an alternative remedy. Even if I were confident that the suggested answer would be successful, I wouldn’t even know where to start. I therefore need knowledge on how I can accomplish it.

This does not sound like a question for this Community. Perhaps you can ask on Stack Overflow.

Thank you for response, I will ask at stack Overflow

If you have any idea on this topic inform me