[SOLVED] Joomla 5 installation OK, but getting PHP config "FROM MARS" Topic is solved

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
radiator8
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 06, 2018 6:05 am

[SOLVED] Joomla 5 installation OK, but getting PHP config "FROM MARS"

Post by radiator8 » Sun May 19, 2024 10:07 pm

So I installed Joomla 5, it went ok. Joomla! 5.1.0 Stable
Running PHP 8.1.27

php -i reports config values (examples)
memory_limit => 256M => 256M
sys_temp_dir => /var/www/tmp => /var/www/tmp
output_buffering => 0 => 0
post_max_size => 32M => 32M

But Joomla complains:

WarningThe PHP temporary folder is not set.
This folder is the folder that PHP uses to store an uploaded file before Joomla can access this file. Whilst the folder not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue.

WarningSmall PHP maximum POST size.
This is the maximum amount of data that can be sent via POST to the server. This includes form submissions for articles, media (images, videos) and extensions. This value is less than 16MB which may impact on uploading large extensions. This is set in the php.ini under post_max_size.

WarningMaximum PHP file upload size is too small.
The maximum file size for uploads is set to less than 16MB which may impact on uploading large extensions. This is set in php.ini in both the upload_max_filesize and post_max_size settings of your PHP settings (located in php.ini and/or .htaccess file). The value of post_max_size must be greater than the value of upload_max_filesize.

In system | System Information | PHP Settings, Joomla shows

PHP Settings
Setting Value
Upload Max Filesize 2M
Post Max Size 8M
Memory Limit 128M


none of the above is true, so where is Joomla seeing this?

I am trying to upload a new template, but it will not let me citing the 2M Upload max filesize value (whihc is actually set to 30M in php.ini)

Also, joomla confirms that it's using the same php.ini that I checked for correct values (System Information | PHP Configuration):
Loaded Configuration File /etc/php.ini
Last edited by radiator8 on Sun May 19, 2024 10:56 pm, edited 1 time in total.

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

Re: Joomla 5 installation OK, but getting PHP config "FROM MARS"

Post by toivo » Sun May 19, 2024 10:36 pm

The values reported by Joomla may come from an .htaccess file or a php.ini file in the main Joomla folder or even in the administrator folder.
Toivo Talikka, Global Moderator

radiator8
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 06, 2018 6:05 am

Re: Joomla 5 installation OK, but getting PHP config "FROM MARS"

Post by radiator8 » Sun May 19, 2024 10:55 pm

ah.. OK have solved my issue. I kept restarting the httpd service ( thinking it was restarting the PHP service, and reloading the php.ini) but what was really being used by joomla was PHP-FPM

The solution was systemctl restart php-fpm (after I made those PHP.ini changes an hour ago...)

I guess a reboot would have sufficed, as well.

the clue was staring me in the face the whole time, in the Joomla System Information | PHP Settings where it says:

WebServer to PHP Interface fpm-fcgi

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

Re: [SOLVED] Joomla 5 installation OK, but getting PHP config "FROM MARS"

Post by pe7er » Wed May 22, 2024 7:02 am

Good to see that you've solved it. Thanks for sharing your solution!
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com


Post Reply

Return to “Installation Joomla! 5.x”