Migration of Joomla to a new server (Amazon Lightsail)

Need help installing Joomla! 4.x? For all Joomla! 4.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Dada1991
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Jan 20, 2022 9:09 am

Migration of Joomla to a new server (Amazon Lightsail)

Post by Dada1991 » Mon Mar 21, 2022 9:27 am

I want to deploy my joomla instance on Amazon Lightsail.

I'm using Joomla 4. As Amazon LIghtsail provide only Joomla v3.10 instance, I deploy a NodeJS instance.

I installed:
  • php (version 7.3.31 - sudo apt-get install php, sudo apt-get install php-pgsql)
  • My database
  • My joomla folder in /stack/apache/htdocs
I restarted my web server but it looks like my instance doesn't read php file.

When I go to my joomla index.php ([removed]), it shows me only the text file.

What can be the problem ?
Last edited by pe7er on Mon Mar 21, 2022 3:33 pm, edited 1 time in total.
Reason: removed link to Joomla site because of safety

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24982
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Migration of Joomla to a new server (Amazon Lightsail)

Post by pe7er » Mon Mar 21, 2022 3:45 pm

I don't know Amazon Lightsail. However the issue that you describe (php files not being interpreted and readable as text) is because you might be missing an Apache module.
For PHP 7.3, have you installed libapache2-mod-php7.3 ?

btw: why are you installing PHP 7.3.31?
That version is end-of-life and not supported anymore: https://www.php.net/supported-versions.php
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

Dada1991
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Jan 20, 2022 9:09 am

Re: Migration of Joomla to a new server (Amazon Lightsail)

Post by Dada1991 » Tue Mar 22, 2022 2:28 am

pe7er wrote:
Mon Mar 21, 2022 3:45 pm
I don't know Amazon Lightsail. However the issue that you describe (php files not being interpreted and readable as text) is because you might be missing an Apache module.
For PHP 7.3, have you installed libapache2-mod-php7.3 ?

btw: why are you installing PHP 7.3.31?
That version is end-of-life and not supported anymore: https://www.php.net/supported-versions.php
Thanks for your reply (and your private message).
Yes, my php files are not being interpreted and readable as text.
I didn't choose the version of php, I used sudo apt-get install php.
libapache2-mod-php7.3 is alreasy installed on my instance.

guest20230913
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 155
Joined: Thu Apr 07, 2011 11:42 pm

Re: Migration of Joomla to a new server (Amazon Lightsail)

Post by guest20230913 » Tue Mar 22, 2022 3:56 am

Why wouldn't you want to not use Amazon EC2? I recommend installing RHEL or Amazon Centos and the current version of PHP from Remi. It's reliable and secure.

Remi's RPM repository - Blog: https://blog.remirepo.net/en

Dada1991
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Jan 20, 2022 9:09 am

Re: Migration of Joomla to a new server (Amazon Lightsail)

Post by Dada1991 » Tue Mar 22, 2022 9:54 am

I will try to deploy a ubuntu instance but I would like to know why my php files are not readable by my apache server on a NodeJS amazon instance.

How to make readable php with apache ?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Migration of Joomla to a new server (Amazon Lightsail)

Post by Webdongle » Tue Mar 22, 2022 10:05 am

Is it localhost on your computer or a remote Host?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Dada1991
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Thu Jan 20, 2022 9:09 am

Re: Migration of Joomla to a new server (Amazon Lightsail)

Post by Dada1991 » Tue Mar 22, 2022 11:17 am

Webdongle wrote:
Tue Mar 22, 2022 10:05 am
Is it localhost on your computer or a remote Host?
It's a remote instance.


Locked

Return to “Installation Joomla! 4.x”