All Questions
161
questions
0
votes
0
answers
35
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
...
0
votes
2
answers
172
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
622
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
254
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 ...
2
votes
0
answers
201
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
489
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/ ...
1
vote
1
answer
259
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
256
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
288
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
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 ...
0
votes
1
answer
309
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
516
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
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
615
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....
0
votes
1
answer
244
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
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
783
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
529
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
265
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 ...
3
votes
0
answers
710
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 ...
-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
14k
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,...
6
votes
1
answer
5k
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
1
answer
291
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
1
answer
565
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)
...
11
votes
2
answers
7k
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
1
answer
6k
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
1
answer
4k
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 ...
3
votes
1
answer
13k
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
1
answer
961
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
1
answer
2k
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
2
answers
2k
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
3
answers
985
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
1
answer
2k
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
1
answer
130
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 ...
-3
votes
2
answers
133
views
Server not recognizing that wget is installed on OS X Yosemite [closed]
I'm trying to install some software (called Prohits, used for mass spectrometry data management) on a localhost server I set up. One of the requirements for the install is that I have wget installed. ...
0
votes
1
answer
651
views
Get PHP extension APC not running on Ubuntu 14.04.3 - undefined symbol: php_pcre_exec
I installed the PHP extension APC on the server but I get it not running. It gets not listed in phpinfo(). After activating the php error log I get the following error:
PHP Startup: Unable to load ...
2
votes
2
answers
6k
views
How to disable PHP mail function on one apache virtualhost?
I want to disable PHP function mail via Apache2 virtual host configuration file. I want to do it for one virtual host, not for all virtual hosts, and I don't want disable this function in php.ini
How ...
1
vote
1
answer
3k
views
php open_basedir not working as expected on synology nas
I'm trying to install gitlist on my synology NAS (DSM 5.2).
I downloaded and configured gitlist in config.ini and pointed it to my repositories folder (/var/services/homes/git/repo).
But when I try ...
-1
votes
1
answer
386
views
php.ini 500 error when register_globals = On
i am using PHP Version 5.4.44 and have a setting in my php.ini as
register_globals = Off
i am trying to set it as register_globals = On
but it is not working and through me an error as 500
please ...
0
votes
0
answers
1k
views
E: Unable to locate package php5-apcu
trying to install APCu on Ubuntu:
apt-get install php5-apcu
Getting an error:
E: Unable to locate package php5-apcu
Following someone's suggestion I added:
deb http://packages.dotdeb.org wheezy-...
0
votes
0
answers
1k
views
php.d/*.ini files loading for root but not other users (CLI)
Using PHP from the commandline, as root, everything in the php.d/ directory is loaded as expected:
root@tlsv2-eepweb-01:/home/web>php --ini
Configuration File (php.ini) Path: /etc
Loaded ...
1
vote
1
answer
581
views
PHP timeout is zero and memory limit is 1024M and script timeout?
on my work server i set PHP settings to be 1024M memory limit and max execution time to zero
after all this the script still timeout !!
what are other options to make script runs forever if i want
...
0
votes
1
answer
1k
views
Do I require setting the full path to files in php.ini?
I have "merged" php with apache bin directory, however for years I have been hardcoding the path to files as follows :
curl.cainfo = d:/server/bin/cacert.pem
-
browscap = d:/server/bin/browscap.ini
...
1
vote
0
answers
218
views
Possible have 2 php.ini file or 2 extension_dir in php.ini?
i got Fatal error: Class 'mysqli' not found in C:\apache2triad\htdocs\index.php on line 8 error. I checked php.ini file and saw extension=php_mysql.dll is uncommented.Everything is normal. But in php....