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
2answers
28 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
1answer
56 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
1answer
31 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
0answers
20 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
0answers
62 views

PHP memory_limit does not work / is ignored on Nginx (CentOS 7)

I've browsed, maybe, 20 questions regarding this topic and I still cannot get it to work. I'm aware there are many questions asking the same, but none of them seem to help. I need to increase PHP7.4 ...
0
votes
1answer
647 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
0answers
11 views

Double path directive in php.ini

When configuring path specific parameters within a [PATH="D:\inetpub\website"] inside php.ini, I must specify the path and rules twice, else the main configuration is used. For exemple : [...
0
votes
1answer
37 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
0answers
17 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
0answers
245 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 ...
0
votes
0answers
76 views

Customize templates of php.ini for different PHP versions in VestaCP

I'm new in VestaCP. I needed multiPHP so I setup it and everything works well. Then I had to setup ionCube loader for two PHP version (7.4 & 5.6) because of two websites that uses different PHP ...
1
vote
0answers
484 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
0answers
384 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
0answers
388 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 ...
2
votes
1answer
1k 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 ...
6
votes
1answer
4k 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
1answer
187 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 ...
0
votes
1answer
98 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
0answers
60 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
1answer
268 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
1answer
272 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, ...
1
vote
1answer
738 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
1answer
82 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
1answer
522 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
1answer
99 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
1answer
3k 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
1answer
302 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
1answer
2k 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
0answers
572 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
1answer
460 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
1answer
13k 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
1answer
296 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
1answer
170 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 ...
2
votes
3answers
6k 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
1answer
301 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 - ...
2
votes
1answer
759 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
4answers
2k 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
0answers
179 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
0answers
541 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
1answer
6k 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
1answer
2k 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
1answer
321 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 ...
5
votes
2answers
19k 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
1answer
613 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 ...
3
votes
2answers
2k views

php session.save.path that is not from my ini file

I have set up a custom php.ini for a dev site (the production site will eventually be on the same server) - it sets the session.save path to a directory specific to the site. You can see the result ...
3
votes
1answer
10k views

Changing session.save_path in php.ini not working

Fedora 25 + PHP 7 + Apache 2.4.23 Hello, after I change session.save_path in php.ini and restart apache, I can successfully verify that it's modified with: $ php -i | grep session.save_path However,...
0
votes
1answer
758 views

How to use PHP memcached for session storage with Auto Scaling?

I already have memcached installed in my servers and I've modified the default php.ini to: session.save_handler = memcached session.save_path = "127.0.0.1:11211" I'm using Amazon EC2 instances (...
5
votes
1answer
3k views

Stop reusing PHP_VALUE for different sites with PHP-FPM

I noticed the following behavior or PHP-FPM: Take a look at these two Nginx configs: server { listen 80; server_name example.com; location / { fastcgi_pass 127.0.0.1:...
0
votes
1answer
168 views

Unicode characters in my PHP configuration

Earlier today I was having an issue where I couldn't setup my PHP7 remote interpreter on PhpStorm I ended up finding out that I have unicode characters in my PHP configuration: I have no idea how ...
0
votes
1answer
421 views

Determinate witch Php cache system is currently used

How can i find what php cache system is used by my server (APC/opcache/Zend...) ? If I run this command line, i've no information : php -v PHP 5.4.45-0+deb7u5 (cli) (built: Aug 30 2016 20:15:34) ...

1
2 3 4 5 6