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
0answers
15 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
20 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 ...
0
votes
1answer
257 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 ...
1
vote
1answer
972 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
0answers
117 views

php.ini not applying in phpinfo()

I have a website running on CentOS. I have a problem where changes in my php.ini file aren't reflected in phpinfo(). More concretely, I set allow_url_fopen = Off So I checked these lines: ...
0
votes
1answer
182 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
0answers
50 views

php mail() not working after successfully installed postfix

Recently, I've successfully installed postfix and configured. Then, I had tried sending an email via "echo" in ubuntu , to avail. However, the PHP mail() function is not working and showing nothing in ...
0
votes
1answer
53 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?
0
votes
0answers
45 views

Apache goes down when I run grep commands on SSH2 using PHP SSH2 connect

I am trying search by keyword in the whole log folder by using grep command and I am sending it through ssh2_connect from php to a remote server, when i run the script it puts down the APACHE and goes ...
1
vote
0answers
39 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
67 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
160 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
391 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
79 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
441 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
77 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
2k 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
230 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
1k 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
461 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
402 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
11k 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
187 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
140 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
4k 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
218 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
548 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
1k 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
151 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
501 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
1k 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
268 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 ...
4
votes
2answers
11k 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
581 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 ...
2
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
8k 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
682 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 (...
3
votes
1answer
2k 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
162 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
392 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) ...
0
votes
1answer
2k views

pgsql is not loading (centOS 6.8)

*First of all don't answer "php.ini >> uncomment extension=pgsql.so and restart httpd". did that millions of times, did not solve my problem. *Tried hundreds of methods described in different sites ...
0
votes
1answer
1k views

Adding multiple extensions to PHP.INI

I have two extensions I want to add. Do I add these separately like: extension=php_ftp.dll extension=php_openssl.dll Or are they added like an array? extension=php_ftp.dll,php_openssl.dll
10
votes
2answers
4k views

How can I create separate configuration files for php (cli) and php-fpm on an arch linux

Is it possible to create separate php.ini files for php (cli) and php-fpm, like it is possible on debian and ubuntu with two folders /etc/php/7.0/cli and /etc/php/7.0/fpm? I will be also cool if I ...
0
votes
1answer
3k views

Yet another request entity too large issue, Apache

When I try to upload any kind of file to my server/website I get an Request Entity Too Large error. (Trying to upload a 1.73mb picture produces a 413 error while a 25.6kb picture does not) I tried ...
0
votes
1answer
76 views

What is using php_error.log in /var/log on my Nginx server

On my Nginx server in /var/log there is php5-fpm.log and php_error.log The php_error.log has all kind of notices so that it's size grows to hundreds of Mb's. I tried to find which php.ini managed this ...
0
votes
1answer
2k views

php.ini exists but is not loaded

I know this gets asked a lot here but I've done my homework and cant seem to solve my particular problem. It doesn't seem like my php.ini file is being loaded, even though php -i and php --ini say it ...
-1
votes
1answer
6k views

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 ...
3
votes
1answer
2k views

php 7 ignores ini files, but claims to load

Ubuntu 16.04, Lighty 1.4.35, PHP 7.0.4-7ubuntu2 (in a Hyper-V VM) I browsed all (or at least many) of the other questions about php.ini. No matter what value I set for any of the directives; ini_get ...
-2
votes
1answer
136 views

Apache Extended Logs of php files

I am using apache and I want to log each php or any script file with its location which runs for more than 30 seconds or so. I tried to find solutions extensively, but no luck has come true. Is this ...

1
2 3 4 5 6