Joomla 5 installation on Ubuntu gives error 500
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
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
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Joomla 5 installation on Ubuntu gives error 500
greetings, I have been looking trough the forums and saw many people with an error 500 , at all sorts of stages. my situation seems to be slightly different.
I am running an Nginx server with php 8.1 enabled and working according to php-info.
after uploading joomla 5.0.0 to /var/www/html en accessing the website in order to start the installation process i get forwarded to the /installation directory and presented with the joomla error 500 page , the same happens on any other directory with or without the installation directory present.
at first i suspected some sort of database error as I had not yet seen a way i had to configure that, and I do intend to run the database on an external server. after some searching I found a config file were those settings could be entered, though it did mention it was a fallback/alternative. never the less I entered all the data and tried again, to no avail.
fpa-en.php gives me a completely blank page so no information to provide there.
hopefully someone might know whats biting me in the proverbial back end today.
I am running an Nginx server with php 8.1 enabled and working according to php-info.
after uploading joomla 5.0.0 to /var/www/html en accessing the website in order to start the installation process i get forwarded to the /installation directory and presented with the joomla error 500 page , the same happens on any other directory with or without the installation directory present.
at first i suspected some sort of database error as I had not yet seen a way i had to configure that, and I do intend to run the database on an external server. after some searching I found a config file were those settings could be entered, though it did mention it was a fallback/alternative. never the less I entered all the data and tried again, to no avail.
fpa-en.php gives me a completely blank page so no information to provide there.
hopefully someone might know whats biting me in the proverbial back end today.
Last edited by toivo on Fri Nov 17, 2023 8:30 pm, edited 1 time in total.
Reason: mod note: moved from 4.x Installation, retitled
Reason: mod note: moved from 4.x Installation, retitled
- AMurray
- Joomla! Exemplar
- Posts: 9327
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Joomla 5 installation on Ubuntu gives error 500
blank page indicates PHP errors, you need to turn on PHP error reporting and/or debug. Do this on the server side rather than in Joomla.
Are the directory permissions correct 755 for folders, 644 for files?
Are the directory permissions correct 755 for folders, 644 for files?
Regards - A Murray
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
I have checked permissions of the WWW folder , and even tried to go as far as chmod 777 all of it , this did nothing to it. I assume i will need to enable reporting of errors in the php.ini then restart the service?
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
Have you tried chown?
This could be an Ownership issue not permissions issue. If you did not install Joomla as SU(Super User) then you could have Ownership issues.
Please read https://docs.joomla.org/Installing_Joom ... ermissions it's an old document but might shed a little light on your problem
This could be an Ownership issue not permissions issue. If you did not install Joomla as SU(Super User) then you could have Ownership issues.
Please read https://docs.joomla.org/Installing_Joom ... ermissions it's an old document but might shed a little light on your problem
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Intern
- Posts: 51
- Joined: Tue Apr 05, 2022 11:33 pm
Re: Joomla 5 installation on Ubuntu gives error 500
If you have Akeeba Admin Tools installed, you need to temporarily disable the htaccess file and use the default Joomla htaccess instead to run fpa.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
during the installation process of Nginx I have chown the www folder, I did so again for good measure. and i'm sad to report it did not alleviate the error , just to be sure. what user should be the owner of the files and folder? as is it seems to be the main user. (called ICE) (see link for more detail: https://gyazo.com/cfb3ede0e279b3290101f179441befd8)Webdongle wrote: ↑Sat Nov 18, 2023 12:50 amHave you tried chown?
This could be an Ownership issue not permissions issue. If you did not install Joomla as SU(Super User) then you could have Ownership issues.
Please read https://docs.joomla.org/Installing_Joom ... ermissions it's an old document but might shed a little light on your problem
i never heard of those tools before, are they an addon to joomla itself?
I have encountered this error when trying to install joomla , any addons etc. would have had to come after the initial setup. which im being prevented from running , the htaccess from joomla was uploaded with all the other files from the joomla zip
- toivo
- Joomla! Master
- Posts: 16962
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Joomla 5 installation on Ubuntu gives error 500
Admin Tools is a free third party extension and there is a paid Pro version available. The same developer also wrote the highly recommended Akeeba Backup.dtcdarkraven wrote: ↑Sat Nov 18, 2023 2:10 ami never heard of those tools before, are they an addon to joomla itself?
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
I have checked everything i could think off, php works perfectly. no errors are being logged. I have also changed the owner of the folder/files to www-data this did not help either. this should be everything double checked for file permissions.
perhaps i am missing some php modules?
not sure where to go from here in troubleshooting the problem.
thank you all for your help and suggestions so far. the plugins mentioned before look really interesting and usefull once i get the setup to run ^_^
perhaps i am missing some php modules?
not sure where to go from here in troubleshooting the problem.
thank you all for your help and suggestions so far. the plugins mentioned before look really interesting and usefull once i get the setup to run ^_^
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
Results in a White page, perhaps it requires joomla to already be installed?
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
No it should run without Joomla files. Perhaps run a php info file?
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- Per Yngve Berg
- Joomla! Master
- Posts: 30487
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Joomla 5 installation on Ubuntu gives error 500
Nginx does not use a .htaccess file.
Please post your nginx.conf and fpm-cgi.conf
Recommend using a separate Linux User for the site.
https://docs.joomla.org/Nginx
Please post your nginx.conf and fpm-cgi.conf
Recommend using a separate Linux User for the site.
https://docs.joomla.org/Nginx
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
to be fair, i did not even look. i uploaded "everything" in the zip ( atleast inside the folder inside the zipPer Yngve Berg wrote: ↑Sat Nov 18, 2023 6:41 pmNginx does not use a .htaccess file.
Please post your nginx.conf and fpm-cgi.conf
Recommend using a separate Linux User for the site.
https://docs.joomla.org/Nginx

see the attachments for the conf files uploaded in txt form

You do not have the required permissions to view the files attached to this post.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
Can you post the php info results or would you prefer not to post them? You could email them to me if you like so I can see the environment? info@ mydomain
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- Per Yngve Berg
- Joomla! Master
- Posts: 30487
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Joomla 5 installation on Ubuntu gives error 500
The user that Joomla will run as is configured here: include=/etc/php/8.1/fpm/pool.d/*.conf
In that folder there shall be a <sitename>.conf file.
Same with nginX. In /etc/nginx/sites-enabled/*; there shall be a file for the site.
In that folder there shall be a <sitename>.conf file.
Same with nginX. In /etc/nginx/sites-enabled/*; there shall be a file for the site.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
this VM is only going to host 1 site , another VM will eventually proxy it towards the VM , everything is prety default. the user configured for the default pool is www-data.Per Yngve Berg wrote: ↑Sun Nov 19, 2023 5:28 pmThe user that Joomla will run as is configured here: include=/etc/php/8.1/fpm/pool.d/*.conf
In that folder there shall be a <sitename>.conf file.
Same with nginX. In /etc/nginx/sites-enabled/*; there shall be a file for the site.
nginx config file included as a txt
i have yet to secure and change it all, there is little harm in sharing it. i cannot add it as an attachment, so i have uploaded it to info@ the domain mentioned in your profile
You do not have the required permissions to view the files attached to this post.
- Per Yngve Berg
- Joomla! Master
- Posts: 30487
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Joomla 5 installation on Ubuntu gives error 500
www-data is the user the web server is running as. You cannot login with this user via frp, causing files to have the wrong user.
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
Thus correctly using CHOWN (after uploading via ftp) should CH(ange) OWN(ership) to www-dataPer Yngve Berg wrote: ↑Sun Nov 19, 2023 6:06 pmwww-data is the user the web server is running as. You cannot login with this user via ftp, causing files to have the wrong user.
https://docs.joomla.org/Installing_Joom ... ermissions
Another option would be to upload the files using the servers file manager.
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
indeed, and i have done so, the owner of the files and folders is currently www-dataWebdongle wrote: ↑Sun Nov 19, 2023 6:45 pmThus correctly using CHOWN (after uploading via ftp) should CH(ange) OWN(ership) to www-dataPer Yngve Berg wrote: ↑Sun Nov 19, 2023 6:06 pmwww-data is the user the web server is running as. You cannot login with this user via ftp, causing files to have the wrong user.
https://docs.joomla.org/Installing_Joom ... ermissions
Another option would be to upload the files using the servers file manager.
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
So Ownership issues can be ruled out then?
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
Got the php info but don't notice anything untoward.
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
additonally i have tried to install 4.4.0 instead, by removing the 5.0.0 files , uploading 4.4.0 , chown and chmod it all correctly. and i get the exact same joomla styled page stating it returned a 500 error it looks something like this:


- AMurray
- Joomla! Exemplar
- Posts: 9327
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Joomla 5 installation on Ubuntu gives error 500
as I earlier suggested, turn on error reporting. That will give you the actual error causing the "500" error. Did you click the button "Help me resolve this" Or did that redirect to this forum - I can't remember if it has tips for resolution or just a link to this forum.
Regards - A Murray
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
Also use the server not ftp to upload the file.
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Nov 17, 2023 7:21 pm
Re: Joomla 5 installation on Ubuntu gives error 500
"help me" links to the documentationAMurray wrote: ↑Mon Nov 20, 2023 8:57 amas I earlier suggested, turn on error reporting. That will give you the actual error causing the "500" error. Did you click the button "Help me resolve this" Or did that redirect to this forum - I can't remember if it has tips for resolution or just a link to this forum.
when i properly chmod and chown the folder/files that should not make a difference should it? when I tried running joomla on my main webserver , it ran without problem, on there i am using php 7.x so joomla 4.4 works, 5 errors out on the PHP version. I uploaded onto it with FTP aswel. am i maybe missing some php extensions or something in the config?
- Webdongle
- Joomla! Master
- Posts: 43243
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 5 installation on Ubuntu gives error 500
Noi it shouldn't make a difference. But we are scraping the bottom of the barrel for ideas now.
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".