setting up php.ini

Alles, was PHP betrifft, kann hier besprochen werden.

setting up php.ini

Postby dorban3 » 13. March 2023 21:26

hi
i want to upgrade my website but i am asked by the software to create a PHP temporary folder using a php.ini file.
i guess this file should be created in the root directory of the site but i need help with the code for it.
i heard i can speed up my websitewith php.ini too?

it's a joomla site
https://avitech.site
dorban3
 
Posts: 1
Joined: 13. March 2023 21:09
XAMPP version: ?
Operating System: windows 11

Re: setting up php.ini

Postby MilesWeb » 05. February 2024 09:21

1. Check if a php.ini file already exists in your server's root directory
2. If not, create a new text file named php.ini
3. Open php.ini and add the following line
- upload_tmp_dir = /path/to/your/temp/folder
- Replace /path/to/your/temp/folder with the desired path (e.g., /home/user/public_html/tmp)
4. Restart Web Server, if possible

Now, follow these steps,
5. Set memory_limit to a higher value (e.g., memory_limit = 256M)
6. increase max_execution_time
7. output_buffering = On
8. Eanable Joomla's caching options
User avatar
MilesWeb
 
Posts: 10
Joined: 19. January 2024 10:40
XAMPP version: 8.0.30
Operating System: linux


Return to PHP

Who is online

Users browsing this forum: No registered users and 12 guests