In which NGINX directory must add the configuration for Joomla?

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
hackermade
Joomla! Intern
Joomla! Intern
Posts: 84
Joined: Thu Jan 25, 2024 9:15 am

In which NGINX directory must add the configuration for Joomla?

Post by hackermade » Wed May 01, 2024 5:39 am

Greetings, i have set up a Ubuntu vps and installed the LEMP stack on it, but in the nginx (/etc/nginx) configuration directory there are numerous directories and config files I was wondering where must place the configuration for Joomla?
Screenshot 2024-05-01 at 8.39.09 AM.png


Thanks in advance!
You do not have the required permissions to view the files attached to this post.

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

Re: In which NGINX directory must add the configuration for Joomla?

Post by pe7er » Wed May 01, 2024 5:53 am

Joomla's configuration.php should be in the webroot of the Joomla website.

If you mean the Nginx configuration for the websites running on Nginx (like your Joomla website) :
Nginx configuration files reside in:
/etc/nginx/sites-available/ on Ubuntu (for sites running on that Nginx instance)
/etc/nginx/nginx.conf on Gentoo and Raspbian (Debian optimized for Raspberry Pi)
You can find more info about configuring Nginx for Joomla website on the documentation website:
https://docs.joomla.org/nginx
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

hackermade
Joomla! Intern
Joomla! Intern
Posts: 84
Joined: Thu Jan 25, 2024 9:15 am

Re: In which NGINX directory must add the configuration for Joomla?

Post by hackermade » Wed May 01, 2024 6:09 am

Hi, and thanks for the reply. The nginx.conf is not for global config?

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

Re: In which NGINX directory must add the configuration for Joomla?

Post by Per Yngve Berg » Wed May 01, 2024 9:30 am

Yes it is. There shall be a folder for each site under "Sites Available" with a set of configuration files.
https://docs.joomla.org/Nginx

hackermade
Joomla! Intern
Joomla! Intern
Posts: 84
Joined: Thu Jan 25, 2024 9:15 am

Re: In which NGINX directory must add the configuration for Joomla?

Post by hackermade » Wed May 01, 2024 11:38 am

I set it this exact way, and I got the following error...Note that there is no "autoload_psr4.php" file.

http://130.162.233.174/installation/index.php
Screenshot 2024-05-01 at 2.38.21 PM.png
You do not have the required permissions to view the files attached to this post.


Post Reply

Return to “Installation Joomla! 5.x”