Questions tagged [php.ini]
php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
277 questions
0
votes
2
answers
115
views
php --info shows different configuration than phpinfo()
I’m running the official image wordpress:6.8.1-php8.2-apache of WordPress in a Kubernetes pod. I tried using Duplicator to create a backup, but it failed to finish. In the Duplicator logs, I saw the ...
0
votes
1
answer
572
views
How to fix Apache PHP rejecting post requests which are over 40MBs
My php Laravel API when put behind apache2 (with ssl) when making a post request which is roughly 40Mbs in size, it gives a 500 internal error with following log
[Wed Jul 10 21:08:51.397912 2024] [...
0
votes
0
answers
242
views
Long running PHP script get terminated and other separate PHP cmd line processes as well
Env: Ubuntu 22.04.4 LTS PHP 8.1 CMD line scripts started with the & and left to run in the background
I have 3 separate PHP scripts which I started from an SSH session and are placed in the ...
1
vote
3
answers
11k
views
Enabling gd extension in PHP for wordpress deployment
My Wordpress site was warning me that:
Error The required module, gd, is not installed, or has been disabled.
I started looking into this and found that it is disabled by default in php.ini:
;...
0
votes
1
answer
183
views
How to find optimum configuration in php.ini on openlitespeed?
I want to increase performance on pagespeed insights, but the problem is I don't know how to use all capacity of hardware on this server ! and I need your help please.
I think litespeed not using all ...
0
votes
2
answers
779
views
Failure to Update Maximum Upload Limit Set By Hosting Provider and PHP Max Input Vars
Hi I deployed a VM with Wordpress only I can't update the Maximum Upload Limit Set By Hosting Provider value from 2M to 40M.
I also can't update the PHP Max Input Vars value , despite we have modified ...
0
votes
0
answers
2k
views
Can't enable the PHP DOM extension
I have a server that has PHP 7.4.3 installed, but it doesn't load PHP-DOM.
It's not listed in php -m or php -i, nor when I load PHP on a page.
Here's what I tried so far:
Ran sudo apt-get install php-...
0
votes
0
answers
439
views
WampServer and error 404
Having just installed Wampserver on my system in order to test a PHP form I have created via Dreamweaver, I'm continually getting the Error 404 message on my screen despite following the installation ...
0
votes
0
answers
1k
views
php.ini file is edited but still changes are not reflecting
I used phpinfo() in the code and it shows that the Loaded Configuration File is /etc/php/7.4/fpm/php.ini, I edited the upload_max_filesize to 500M and restarted the fpm service using, sudo systemctl ...
2
votes
0
answers
308
views
Webmail application (php) slow when consulting messages via IMAP. What to optimize to improve speed?
I have configured a couple of webmail applications (open source), to consult external email accounts (gmail). The applications are in Php and Mysql.
Once installed, I can link my mail through IMAP. ...
0
votes
1
answer
2k
views
php_admin_value on php-fpm pools aren't working
My php-fpm pools look like this (as per https://www.php.net/manual/en/install.fpm.configuration.php#example-24 this is a very valid synthax:)
[vmtest]
prefix = /srv/users/vmtest
user = vmtest
group ...
0
votes
1
answer
591
views
PHP mail() returning FALSE but whole rainloop works - Postfix, Dovecot, PHP 7.3
I had this problem earlier but somehow managed to repair it.
One month after I had to reinstall Dovecot and Postfix and the same error appeared.
In my php.ini which is located at /etc/php/7.3/apache2/ ...
2
votes
1
answer
1k
views
Apache with HTTP/2 and per-directory upload_max_filesize
I just upgraded my apache2 server on Debian 9.13 Stretch to start using HTTP/2. As far as I'm concerned, that requires switching from mod_php to PHP-FPM.
The problem is that PHP-FPM does not obey ...
0
votes
1
answer
816
views
Prevent logging of a specific warning in PHP error log
Is it possible to prevent logging of a specific type of PHP warning? I do not want to disable warnings entirely, I just want to disable error logging of things like this:
[Wed May 12 11:20:17.630952 ...
0
votes
2
answers
1k
views
RHEL PHP 7.3.5 with mysqlnd and apache
I'll start by stating I'm not a server admin by trade, so I've been struggling with this task.
PHP 7.3.5 was already installed on RHEL7 running Apache. I have installed MySQL successfully and now I am ...