Skip to main content

Questions tagged [php.ini]

php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 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] [...
X3R0's user avatar
  • 123
0 votes
0 answers
70 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 ...
Dan's user avatar
  • 215
1 vote
3 answers
3k 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: ;...
ingh.am's user avatar
  • 283
0 votes
1 answer
94 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 ...
Alireza Mirhabibi - IRAN's user avatar
0 votes
0 answers
316 views

php-fpm - How to log `NOTICE`s to stdout, everything else (`E_ALL`) to stderr?

As far as I understood the configuration docs, it is only possible to enable/disable specific log levels: # ini, E_NOTICE disabled entirely. error_reporting=E_ALL & ~E_NOTICE display_errors=stderr ...
goulashsoup's user avatar
0 votes
2 answers
317 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 ...
Massimo Sparavigna's user avatar
0 votes
0 answers
1k 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-...
lastnoob's user avatar
  • 101
0 votes
0 answers
339 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 ...
Hunktydunkaty's user avatar
0 votes
0 answers
963 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 ...
Sting's user avatar
  • 1
2 votes
0 answers
243 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. ...
Jhoedram's user avatar
  • 153
0 votes
1 answer
1k 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 ...
CrazyRabbit's user avatar
0 votes
1 answer
532 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/ ...
Junek's user avatar
  • 3
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 ...
Carlos Roldán's user avatar
0 votes
1 answer
559 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 ...
FiddlingAway's user avatar
0 votes
2 answers
863 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 ...
Dan's user avatar
  • 101
1 vote
1 answer
280 views

CLI php errors on FreeBSD Server

I manage a FreeBSD server running usual AMP setup. Apache, Mysql, Php-fmp Everything is working fine. In order to help out with speeding up a couple of Wordpress sites; we run php cli to run the ...
Tamer Ziady's user avatar
-1 votes
1 answer
317 views

PHP performance improvement for 32GB RAM

I have two EC2 instances. One with 1GB RAM and 1vCPU and the second with 32GB RAM and 12vCPU. I am running a script on cron job but I still have the same performance in both. I tried changing ...
Karthik Malla's user avatar
1 vote
0 answers
374 views

Some PHP extensions available only for root user

I have installed PHP 7.4 (from remi) on CentOS 8 since I need that version on CLI. The issue is with extensions, when I check modules (php -m) as root user I for example have redis enabled there, but ...
mixerowsky's user avatar
0 votes
1 answer
4k views

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 = ...
Kamil's user avatar
  • 1
0 votes
1 answer
87 views

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 ...
HARI BASKER's user avatar
0 votes
0 answers
34 views

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 ...
Ponzio Pilato's user avatar
0 votes
0 answers
1k views

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 ...
HoangNK's user avatar
5 votes
0 answers
3k views

PHP-FPM: pm.process_idle_timeout for PM = static or dynamic

I'm working with CentOS 8 and PHP-FPM setting for PM = static or dynamic does not allow an option for pm.process_idle_timeout. ; The number of seconds after which an idle process will be killed. ; ...
Bernard K.'s user avatar
0 votes
0 answers
1k views

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 ...
Pøziel's user avatar
0 votes
0 answers
1k views

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 ...
AngularDev's user avatar
4 votes
1 answer
5k views

mysqli.cache_size in php.ini | how to use it?

My company has an Apache server running PHP 5.4. My task is to update it to PHP 7.4. The old php.ini file includes a mysqli.cache_size property. I can't find any documentation on this property. Does ...
Mathew Alden's user avatar
10 votes
1 answer
12k views

"failed to open stream: Read-only file system" when trying to create file outside webroot with php

I'm trying to setup nextcloud on a RaspberryPi 3 running arch linux (alarm) for a week now. I've setup apache, php with php-fpm, postgresql and installed nextcloud-testing from the AUR (because ...
random access's user avatar
0 votes
1 answer
339 views

Wordpress installation fails Ubuntu, PHP-FPM and Nginx

Wordpress installs without any issues. No error log in FPM, Nginx and WP-Debug. However it is not working. I believe the issue is related with FPM. When I carry all the WP code (no-change) into ...
Bora Alp Arat's user avatar
1 vote
1 answer
657 views

Allowed characters in php-fpm pool name

php-fpm allows to configure individual pools. [poolname] user = ... group = ... listen = 127.0.0.1:9000 ... Which characters are allowed within the square brackets in the first line?
turbophi's user avatar
2 votes
0 answers
206 views

Is it possible to use Opcache to specific website only?

I run few wordpress websites on single Vps server. (Ubuntu 18.04 + Nginx + php7.3 + mariadb) I was changed code like below to use opcache in php.ini. opcache.enable=1 opcache.enable_cli=1 opcache....
Seomari's user avatar
  • 21
0 votes
1 answer
2k views

Which apache/httpd (root or www-data) user, who load /etc/php.ini when webserver startup?

I want to secure my php ini access right. We know that apache/httpd master process, is owned by root. Then it spawn new child process in www-data user. If /etc/php.ini loaded by apache as root user, ...
Iwanio's user avatar
  • 11
0 votes
1 answer
698 views

openlitespeed mongodb extension installation for lsphp

I'm trying to use mongodb with lsphp. Currently I've manually compiled mongodb.so following this and I can see mongodb.so at /usr/local/lsws/lsphp7/lib/php/extensions/no-debug-non-zts-20160303 . Now, ...
Marungsha Brahma's user avatar
2 votes
1 answer
2k views

Should I add `/dev/urandom` into PHP `open_basedir`?

My system is centos 7.4,with Apache 2.4.6 and PHP 5.4. I have following setting in /etc/php.ini open_basedir =.:/tmp/:/var/lib/php/session/ session.save_path = "/var/lib/php/session" session....
kittygirl's user avatar
  • 985
-2 votes
1 answer
208 views

Multiple websites on same server

When running multiple websites on same server: root/website1 root/website2 root/website3 What should be done to make these websites run intependently - I mean to completely restrict access of PHP (...
acoder's user avatar
  • 101
0 votes
1 answer
1k views

Can't upload larger files to server

I have a Ubuntu 16.04 server with apache 2.4 and php 7.1. The php.ini has the following settings: max_file_uploads 20 memory_limit 512M post_max_size 256M upload_max_filesize 128M Folder ...
user482716's user avatar
0 votes
1 answer
296 views

PHP7 extensions aren't reading correctly from config file

I'm setting up a WordPress installation on my Windows server. I have an IIS site set up to look at the correct folder. Right now, in the folder is a php_info file so that I can see which PHP is ...
drethedevjs's user avatar
0 votes
1 answer
5k views

php-fpm ignores file .user.ini

I have the following file .user.ini in /var/www/html/nextcloud upload_max_filesize=511M post_max_size=511M memory_limit=512M mbstring.func_overload=0 always_populate_raw_post_data=-1 default_charset='...
sebelk's user avatar
  • 702
1 vote
1 answer
639 views

Apache2 php_admin_flag opcache.enable on is ignored

I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server. When I try to enable opcache in a vhost the changed setting isn't applied. If I enable opcache globally in the php.ini everything is ...
oivlis111's user avatar
0 votes
1 answer
3k views

How to enable a the php_soap extension from .user.ini (no acces to php.ini)

Our application is being hosted on GoDaddy (plesk). We need to enable 'php_soap' extension for our application to work. We contacted the customer support that we don't have access to php.ini file to ...
7asobate-'s user avatar
0 votes
0 answers
816 views

trying to install oauth pecl extension

I'm trying to install the pecl oauth package with PHP 7.2 and don't know what I'm doing wrong. I ran this: sudo pecl install oauth and it seemed to work. It said this: Build process completed ...
raphael75's user avatar
  • 135
1 vote
1 answer
665 views

Postfix is Still Sending out SPAM despite closing the Famous "Open Relay"

Lets pretend for a second there , my client's website is thatshowithappened.com A couple of weeks ago our server was an open relay , we fixed that. And now after putting smtpd_relay_restrictions = ...
Fahad's user avatar
  • 301
0 votes
1 answer
17k views

Class 'ZipArchive' not found. how to configure zip on php apache

Following is the error message that i am receiving I searched through internet and did installed zip using sudo yum install php70-php-pecl-zip when i do yum list installed, it shows me that "zip....
Muhammad's user avatar
  • 103
1 vote
1 answer
584 views

Why should I disable PHP's ini_set() on a server?

I'm starting to manage a VPS, and I have read that I should disable the ini_set() function. but I couldn't find a proper explanation on why I should do this. Any good well-explained reason?
Fahed's user avatar
  • 121
1 vote
1 answer
278 views

Problems with session data permissions, multiple UIDs on multiple PHP-FPM pools

I run an nginx server with 40 identical webapps on 40 different ports in 40 different PHP-FPM pools. Each pool is run on a separate user. My sessions.save_path in php.ini is /tmp/php_sessions. Let's ...
Magnus's user avatar
  • 255
3 votes
3 answers
12k views

PHP sessions directory keeps filling until overflowing

I have a problem with my PHP session data folder. It seems to not be expiring sessions and has hit some sort of limit, presumably the filesystem limit for files in a directory. Requests that involve ...
Tony H's user avatar
  • 133
0 votes
1 answer
396 views

Installing PHPExcel for Phabricator

I have installed Phabricator using the official Bitnami image on Google Compute Engine. It's working great, but when I try to use export to excel button in Maniphest, it shows the following error - ...
noob's user avatar
  • 141
3 votes
1 answer
1k views

Why is PHP max_input_vars setting needed?

I have a bit weird question. Why is PHP setting max_input_vars needed? PHP has a memory limit. So even if somebody sends 10M variables, the request will be terminated because of memory shortage. ...
Alex's user avatar
  • 133
3 votes
4 answers
3k views

Does PHP cgi have its own set of .ini files that differ from PHP cli?

The server is: CentOS Linux release 7.4.1708 (Core) , 3.10.0-693.5.2.el7.x86_64 PHP 5.4.16 (cli) (built: Nov 15 2017 16:33:54) I wasn't able to get PHP SOAP to work without an error from web pages, ...
Edward_178118's user avatar
0 votes
0 answers
346 views

PHP.ini override isues on CentOS 7 / PHP 5.6

I wanted to increase my servers upload_max_filesize, so I downloaded the PHP.ini file from /etc/ made the change locally and then uploaded the file via FTP. During the upload the FileZilla mentioned ...
Dan382's user avatar
  • 211
3 votes
0 answers
763 views

php_value overrides with Apache using a front controller

I am trying to set specific server side value for virtual paths used to upload files. All my URLs are virtual and requested are dispatched by a front controller. I have the following config in my ...
Nicolas Bouvrette's user avatar

1
2 3 4 5 6