Questions tagged [php.ini]
php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
272
questions
0
votes
2
answers
45
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
520
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
243
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
474
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
197
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
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 ...
0
votes
1
answer
478
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
774
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
426
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
635
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 ...
1
vote
1
answer
256
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 ...
-1
votes
1
answer
252
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 ...
1
vote
0
answers
278
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 ...
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 = ...
0
votes
1
answer
85
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 ...
0
votes
0
answers
32
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 ...
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 ...
5
votes
0
answers
2k
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.
; ...
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 ...
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 ...
4
votes
1
answer
4k
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 ...
9
votes
1
answer
11k
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 ...
0
votes
1
answer
307
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 ...
1
vote
1
answer
497
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?
2
votes
0
answers
171
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....
0
votes
1
answer
1k
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, ...
0
votes
1
answer
591
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, ...
2
votes
1
answer
1k
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....
-2
votes
1
answer
131
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 (...
0
votes
1
answer
861
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 ...
0
votes
1
answer
238
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 ...
0
votes
1
answer
4k
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='...
1
vote
1
answer
537
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 ...
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 ...
0
votes
0
answers
781
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 ...
1
vote
1
answer
643
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 = ...
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....
1
vote
1
answer
521
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?
1
vote
1
answer
264
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 ...
3
votes
3
answers
11k
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 ...
0
votes
1
answer
391
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 -
...
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.
...
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, ...
0
votes
0
answers
314
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 ...
3
votes
0
answers
703
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 ...
0
votes
1
answer
7k
views
IIS 502 - Web server received an invalid response while acting as a gateway or proxy server
Good day all,
i am a newbie in windows server environment forgive me for any technical jargon. I created a php web application in an enterprise environment i.e following the 3 tier architecture(db ,...
-1
votes
1
answer
3k
views
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 ...
-3
votes
1
answer
427
views
Prevent php script from overriding php.ini [duplicate]
How can I prevent php scripts from overriding max_execution_time value ?
Someone found a way to inject malicious code on a server through wordpress... We are in the process of patching the ...
6
votes
2
answers
33k
views
Why is there no php.ini file when I install PHP in a docker container?
I'm using docker-compose to setup a minimal nginx + php-fpm application but for some reason there is no php.ini file on the docker container (I know because phpinfo() says Loaded Configuration File: (...
0
votes
1
answer
775
views
php.ini is not read after upgrading to PHP 5.6.25 from RHSC on RHEL7 with SELinux. How to debug?
Configuration: I run a web server with RHEL7 with the SELinux kernel module and php-fpm. By default, RHEL7 ships with PHP 5.4. This version of PHP is too old for my software, so I've upgraded to PHP ...