Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php.ini]

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

0
votes
0answers
9 views

How can I ensure php recognises changes made in the php.ini file?

I've set up a new ubutu server. I have output the settings in a debug page, and can see the configuration file location: Configuration File (php.ini) Path: /etc/php/7.2/apache2 and have edited ...
-2
votes
1answer
64 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
0answers
71 views

How to tell Apache 2.4 / PHP 7 where php.ini is

I am setting up an Apache 2.4 server and PHP 7 on a Windows 10 laptop to migrate some websites from PHP 5.6 to 7.x. Apache is in c:\apache24, PHP is in c:\php (running as a module). php.ini is also ...
0
votes
1answer
48 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
20 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
0answers
9 views

php takes load of resources loading php.ini [duplicate]

I have weird issue in my server. php takes a lot of resources when trying to open php.ini (CPU 197%) the php process is triggered by apache when apache trying to load configuration files (i.e. ...
0
votes
0answers
98 views

Windows apache service cannot find PHP modules, while httpd can

I'm installing apache on a Windows environment and have gotten httpd.exe installed, and I have set up apache as a service. When I run httpd.exe I'm getting no problems, but when I use net start apache,...
0
votes
1answer
274 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
102 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
0answers
17 views

php.ini based on hosting resources for max performance? [duplicate]

I have moved my website to new host with bigger resources assigned to my account. This is still shared hosting, litespeed server. The resources I have on server are bellow. My questions is - how ...
0
votes
1answer
429 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
240 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
226 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
4k 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
68 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
57 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 ...
1
vote
3answers
1k 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
138 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 - ...
1
vote
1answer
141 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. ...
2
votes
4answers
566 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
111 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
372 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
5k 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
447 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 ...
-4
votes
1answer
127 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 ...
1
vote
1answer
6k 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
403 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 ...
1
vote
2answers
1k 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 ...
1
vote
1answer
4k 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
473 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
683 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
124 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
265 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
1k 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
555 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
6
votes
2answers
2k 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
2k 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
70 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
897 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
4k 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
1k 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
112 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
vote
1answer
3k views

php.ini not being loaded [closed]

I have been trying to configure my Apache server all day, however I am having major issues with getting a php.ini file to be loaded. When I try to connect to my database I get this error: Call to ...
0
votes
1answer
92 views

How to override the previous defined PHP value via Ansible PHP role?

I'm trying to apply override PHP's opcache.max_accelerated_files setting via geerlingguy's Ansible Role for PHP onto geerlingguy/centos6's VM using the following lines (as part of provisioning script):...
0
votes
1answer
408 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...
0
votes
1answer
869 views

Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version or for each domain account? [closed]

My server runs Cloudlinux 5.11 with CageFS and PHP Selector. Default PHP version is 5.3. I have one account using PHP 5.3, one account using PHP 5.5, and one account using PHP 5.6. I'm trying to ...
0
votes
2answers
890 views

Installing libevent extension for php on Centos

How to install the libevent extension for php on Centos 7? I spent many many hours trying this, googling many times and really really struggled, so I'm going to document my own answer to this in the ...
2
votes
3answers
606 views

How can I get my mediawiki to stop thinking I have cookies disabled?

I've searched half a day for how to resolve this issue, and can't figure it out. Shortly after I made my wiki a simple private wiki according to the instructions at Mediawiki's website, it started ...
0
votes
1answer
799 views

Configure Linux and PHP to send email via script instead of SMTP

I have a server with a static IP and also a domain pointing to it. Because it is behind a firewall that blocks SMTP (ingoing and outgoing), I am not able to send any EMail from it. To be able to send ...
0
votes
1answer
86 views

Php can't find hash function

I'm using apache with php on amazon linux. I've updated php from 5.3 to 5.5 and apache from 2.2 to 2.4. Now calling echo hash('sha256','wtf'); is behaving in a strange way. It works for a while and ...