Joomla 5 installation on Ubuntu gives error 500

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
dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Fri Nov 17, 2023 7:29 pm

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.
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

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9872
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla 5 installation on Ubuntu gives error 500

Post by AMurray » Fri Nov 17, 2023 10:03 pm

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?
Regards - A Murray
General Support Moderator

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Fri Nov 17, 2023 10:51 pm

AMurray wrote:
Fri Nov 17, 2023 10:03 pm
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?
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?

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Sat Nov 18, 2023 12:50 am

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
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".

andrew913
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Tue Apr 05, 2022 11:33 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by andrew913 » Sat Nov 18, 2023 1:21 am

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.

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sat Nov 18, 2023 2:10 am

Webdongle wrote:
Sat Nov 18, 2023 12:50 am
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
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)
andrew913 wrote:
Sat Nov 18, 2023 1:21 am
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.
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

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17510
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Joomla 5 installation on Ubuntu gives error 500

Post by toivo » Sat Nov 18, 2023 4:04 am

dtcdarkraven wrote:
Sat Nov 18, 2023 2:10 am
i never heard of those tools before, are they an addon to joomla itself?
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.
Toivo Talikka, Global Moderator

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sat Nov 18, 2023 1:34 pm

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 ^_^

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Sat Nov 18, 2023 2:50 pm

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".

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sat Nov 18, 2023 3:21 pm

Webdongle wrote:
Sat Nov 18, 2023 2:50 pm
https://forumpostassistant.github.io/docs/ ?
Results in a White page, perhaps it requires joomla to already be installed?

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Sat Nov 18, 2023 4:06 pm

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".

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31061
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Per Yngve Berg » Sat Nov 18, 2023 6:41 pm

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

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sun Nov 19, 2023 3:27 pm

Per Yngve Berg wrote:
Sat Nov 18, 2023 6:41 pm
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
to be fair, i did not even look. i uploaded "everything" in the zip ( atleast inside the folder inside the zip ;) ) and assumed if it was required it would be there :P.

see the attachments for the conf files uploaded in txt form :D
You do not have the required permissions to view the files attached to this post.

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sun Nov 19, 2023 4:42 pm

Webdongle wrote:
Sat Nov 18, 2023 4:06 pm
No it should run without Joomla files. Perhaps run a php info file?
Php info runs without issues.

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Sun Nov 19, 2023 5:22 pm

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".

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31061
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Per Yngve Berg » Sun Nov 19, 2023 5:28 pm

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.

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sun Nov 19, 2023 5:55 pm

Webdongle wrote:
Sun Nov 19, 2023 5:22 pm
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
Per Yngve Berg wrote:
Sun Nov 19, 2023 5:28 pm
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.
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.

nginx config file included as a txt
Webdongle wrote:
Sun Nov 19, 2023 5:22 pm
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
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.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31061
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Per Yngve Berg » Sun Nov 19, 2023 6:06 pm

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.

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Sun Nov 19, 2023 6:45 pm

Per Yngve Berg wrote:
Sun Nov 19, 2023 6:06 pm
www-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.
Thus correctly using CHOWN (after uploading via ftp) should CH(ange) OWN(ership) to www-data
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".

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sun Nov 19, 2023 6:50 pm

Webdongle wrote:
Sun Nov 19, 2023 6:45 pm
Per Yngve Berg wrote:
Sun Nov 19, 2023 6:06 pm
www-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.
Thus correctly using CHOWN (after uploading via ftp) should CH(ange) OWN(ership) to www-data
https://docs.joomla.org/Installing_Joom ... ermissions

Another option would be to upload the files using the servers file manager.
indeed, and i have done so, the owner of the files and folders is currently www-data

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Sun Nov 19, 2023 8:33 pm

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".

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Sun Nov 19, 2023 8:44 pm

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".

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Sun Nov 19, 2023 9:17 pm

Webdongle wrote:
Sun Nov 19, 2023 8:33 pm
So Ownership issues can be ruled out then?
yes.., for sure.

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Mon Nov 20, 2023 2:06 am

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:

Image

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9872
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla 5 installation on Ubuntu gives error 500

Post by AMurray » Mon Nov 20, 2023 8:57 am

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
General Support Moderator

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Mon Nov 20, 2023 11:06 am

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".

dtcdarkraven
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Nov 17, 2023 7:21 pm

Re: Joomla 5 installation on Ubuntu gives error 500

Post by dtcdarkraven » Mon Nov 20, 2023 11:51 am

AMurray wrote:
Mon Nov 20, 2023 8:57 am
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.
"help me" links to the documentation
Webdongle wrote:
Mon Nov 20, 2023 11:06 am
Also use the server not ftp to upload the file.
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?

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

Re: Joomla 5 installation on Ubuntu gives error 500

Post by Webdongle » Mon Nov 20, 2023 11:57 am

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".


Post Reply

Return to “Installation Joomla! 5.x”