Advertisement

500 error on Amazon Linux 2

Need help installing Joomla! 5.x? For all Joomla! 5.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
Post Reply
trvail
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 03, 2024 11:21 pm

500 error on Amazon Linux 2

Post by trvail » Wed Jul 03, 2024 11:25 pm

Hello,

I just installed LAMP on an AWS linux 2 server, all updated. I followed these instructions https://forum.phparea.com/thread/how-to ... mla-on-aws, installing the latest joomla zip, but I got an error about php versioning, as the default is php 5 or something. I upgraded and the site threw a 500 error. I started a new EC2 server from scratch, and instead installed the Php 8.2 via the amazon linux extras install and got the exact same error.

Any suggestions to put me in the right direction would be greatly appreciated! I am brand new to Joomla, but coming from installing many Wordpress installations over the years.

Thank you!
Tim

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

Re: 500 error on Amazon Linux 2

Post by pe7er » Thu Jul 04, 2024 4:07 am

Welcome to Joomla forum!

How did you check the PHP version?
The PHP CLI version can differ from the PHP used by your webserver (Apache/Nginx/OpenLiteSpeed/etc).
Joomla uses mainly the webserver PHP versionl and the CLI only for Command Line Interface scripts.

CLI PHP check:

Code: Select all

$ php -v
Webserver PHP check:
create a file check.php and add

Code: Select all

<?php phpinfo();
and open it via a web browser.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

trvail
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 03, 2024 11:21 pm

Re: 500 error on Amazon Linux 2

Post by trvail » Sat Jul 06, 2024 6:38 pm

Thank you, but both are 8.2. I checked via the console / cli and the phpinfo.php method.

The php / web server puts out:

PHP Version 8.2.19
System Linux (ip).amzn2.x86_64 #1 SMP Tue Jun 18 14:00:06 UTC 2024 x86_64
Build Date May 21 2024 22:57:37
Build System Linux
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
Additional .ini files parsed /etc/php.d/20-bz2.ini, /etc/php.d/20-calendar.ini, /etc/php.d/20-ctype.ini, /etc/php.d/20-curl.ini, /etc/php.d/20-exif.ini, /etc/php.d/20-fileinfo.ini, /etc/php.d/20-ftp.ini, /etc/php.d/20-gettext.ini, /etc/php.d/20-iconv.ini, /etc/php.d/20-mysqlnd.ini, /etc/php.d/20-pdo.ini, /etc/php.d/20-phar.ini, /etc/php.d/20-sockets.ini, /etc/php.d/20-sqlite3.ini, /etc/php.d/20-tokenizer.ini, /etc/php.d/20-zip.ini, /etc/php.d/30-mysqli.ini, /etc/php.d/30-pdo_mysql.ini, /etc/php.d/30-pdo_sqlite.ini

rustdev
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Sep 17, 2024 9:05 pm

Re: 500 error on Amazon Linux 2

Post by rustdev » Tue Sep 17, 2024 9:27 pm

This may not address your question directly but I think there are better ways to deploy Joomla on AWS.

The easiest and quickest is to use AWS Lightsail - Amazon's VPS service with a fixed monthly price. They provide Joomla image that can be deployed with a few clicks. See Lightsail quick start guide

If you need something more scalable and secure, then consider deploying Joomla container on ECS and use RDS for database.

Beanstalk is another option, however its popularity is declining and ECS is a better PaaS alternative.

MarkRidsdale
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat May 28, 2016 8:25 pm

Re: 500 error on Amazon Linux 2

Post by MarkRidsdale » Thu Sep 19, 2024 10:35 pm

I have used AWS Lightsail for a couple of years now. I originally used the Joomla blueprint, but switched to the LAMP blueprint some months ago.

I have a fairly simple process for installing my site, which I use when Amazon release a new version with an uplift in part of the stack. I've had no issues & am happy to share my process & what I have found.

Advertisement

Post Reply

Return to “Installation Joomla! 5.x”