php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
Questions tagged [php.ini]
272 questions
0
votes
0 answers
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 restart php7.4-fpm but still the changes have not…

Sting
- 1
0
votes
1 answer
FCGIWrapper not picking up php.ini file path
I'm using Fast CGI with PHP, and it runs great except I just noticed it's not picking up the php ini path. It seems not to pick up the -c argument at all and says no configuration file is loaded when I do phpinfo()
I'm using:
AddHandler fcgid-script…

user27422
- 135
- 1
- 7
0
votes
1 answer
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 = vmtest
listen =…

CrazyRabbit
- 439
- 4
- 13
0
votes
1 answer
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/ is sendmail_path set to
sendmail_path =…

Junek
- 3
- 3
0
votes
1 answer
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 2021] [:error] [pid 25301] [client…

FiddlingAway
- 123
- 6
0
votes
2 answers
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 tasked with connecting to the MySQL DB from PHP.…

Dan
- 101
- 5
0
votes
1 answer
Can't 'php artisan migrate' inside docker
Trying to run 'php artisan migrate' in docker returned following error
Illuminate\Database\QueryException
could not find driver (SQL: select * from information_schema.tables where table_schema = admin and table_name = migrations and table_type…

Kamil
- 1
- 1
- 1
0
votes
1 answer
Our WordPress Auction Website increases CPU Spikes hosted in dedicated server
We have hosted our WordPress website in the dedicated server(CENTOS 7.9 kvm [server]) with 8 CPU. Our website is auction based website. So normally 20 auctions will be in live.
But our website reaches high CPU usage and spikes. We have tried to…

HARI BASKER
- 1
- 1
0
votes
0 answers
500 Gateway with EC2 m5.2xlarge
I have an EC2 m5.2xlarge
with wordpress and the following server configuration:
https://pasteboard.co/JwP5Ecg.png
How is possible to receive a 500 Gateway Error for importing a csv with 50 users (45 is working)?
It seems the error appears after one…

Ponzio Pilato
- 103
- 5
0
votes
0 answers
Installing PCNTL module for PHP7.4 on Amazon Linux
I'm using amazon linux2 and trying to install pcntl extension for php7.4.9. There are no package for pcntl after run yum search pcntl, so
I manually copied file pcntl.so to /usr/lib64/php/modules and created /etc/php.d/20-pcntl.ini, file.
But I got…

HoangNK
- 1
- 2
0
votes
0 answers
PHP seems to ignore my curl.info of my php.ini
I posted the same question on StackOverflow, but someone told me that I should ask it here: https://stackoverflow.com/questions/61894424/php-seems-to-ignore-my-curl-info-of-my-php-ini.
I'm using WAMP on Windows with several version of PHP. The one I…

Pøziel
- 1
- 2
0
votes
0 answers
PHP FPM Very slow after some 20-30 minutes works after reload/restart (on high traffic website)
PHP is running very slow like loads forever.
Below is the www.conf file values
; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This…

AngularDev
- 1
- 1
-1
votes
1 answer
How do I change PHP settings in FastCGI running on NGINX (Debian 8)
The upload_max_filesize is set to 2 MB and I am having issues changing it. I am used to changing such settings in a php.ini file, however, I was unable to find such file on my server. I assume FastCGI does not have such a file?
I was able to find…

Oliver Chalk
- 1
- 1
- 3
-1
votes
1 answer
How can I change the path of my php.ini conf?
A few days ago, I compiled PHP 5.5 from sources and installed it on my Debian 8.5 server but I got some issues. I decided to remove it and re-install PHP through package. But I still got issues because the path of my php.ini did not change.
What I…

kevin-ta
- 11
- 1
- 5
-1
votes
1 answer
php.ini 500 error when register_globals = On
i am using PHP Version 5.4.44 and have a setting in my php.ini as
register_globals = Off
i am trying to set it as register_globals = On
but it is not working and through me an error as 500
please help me.

Tufail
- 1