Skip to main content
26 votes

Nginx editing php.ini changes no reflecting

You need to restart it. I use 7.0 so change the 7.0 to your version. sudo systemctl restart php7.0-fpm
Cristian Benescu's user avatar
15 votes
Accepted

php-fpm: unrecognized service

On ubuntu, I believe the command is: sudo service php5-fpm restart You can find the service name by doing: sudo service --status-all | grep -i fpm
2ps's user avatar
  • 1,126
11 votes

PHP 5.6 undefined function xml_parser_create

First check installed extensions in php with following command php -m After enter check Do you find follwing xml list? xml xmlreader xmlwriter if not then add following line apt-get install php5....
Vivek Parmar's user avatar
11 votes

How do you restart php-fpm?

I had a problem restarting php7-fpm, because I didn't knew how exactly the service was named. This function gave me the answer: service --status-all php7-fpm service in my Ubuntu was called php7.0-...
Gediminas's user avatar
  • 217
9 votes

Where is php.ini-development on Ubuntu LAMP?

php.ini-development file for php7 on ubuntu 16.04 is located in /usr/lib/php/7.0/php.ini-development So you can do the following: make backup copy of your current php.ini: $ sudo mv /etc/php/7.0/...
Misha Aghamalyan's user avatar
7 votes

enabling mysqli extension on centos server

Have you installed mysqli? If not, you'll need to run: yum install php-mysqli If that doesn't work anymore, you could try easyapache and select mysqli.
Jarrod L. J. Gibson's user avatar
7 votes

Getting HTTP/2 Working on Apache 2.4.29 on Debian 8

It's better to upgrade to php7. Install php7.x-fpm and use the mpm_event (or mpm_worker) module: apt-get install php7.x-fpm # install the php-fpm a2enmod proxy_fcgi a2enconf php7.x-fpm a2dismod php7....
ITRO Team's user avatar
5 votes

Connection refused HTTPS on Apache

I finally fixed this by noticing I hadn't installed mod_ssl. sudo yum install mod_ssl
Jack's user avatar
  • 149
4 votes
Accepted

php5.6-fpm curl stops working (Couldn't resolve host)

See here: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1674733 An update caused this problem.
Maarten's user avatar
  • 56
4 votes

Why is there no php.ini file when I install PHP in a docker container?

The container also has /usr/local/etc/php/conf.d and will read and parse every configuration file in that directory. Notice that it will still say Loaded Configuration File => (none), but that it ...
Mike Robinson's user avatar
4 votes

Reconfiguring PHP 5.6 to run on MacOS 10.13 High Sierra

Using PHP5.6 with HighSierra Enable building of shared Apache Handler module Make sure you have the latest version of PHP56 installed along with http option enabled (either install/upgrade/reinstall ...
Raghav Tandon's user avatar
3 votes

Connection refused HTTPS on Apache

I added this in httpd.conf and restarted Apache: Listen 443 And it's working now.
datasn.io's user avatar
  • 279
3 votes

200 OK blank page setting up Wordpress on restore test VM

Just run into almost exact the same problem today. Traced the code and then find the cause. It is because one of the plugins does not throw errors and just EXIT!! You can tell which plugin it is by ...
Jasper's user avatar
  • 63
3 votes

Running phpmyadmin and suphp

The configuration files have changed since the time of the original answer. These files no longer need to be changed: /etc/apache2/mods-available/suphp.conf /etc/suphp/suphp.conf This file: /etc/...
Michael's user avatar
  • 151
3 votes

Why is there no php.ini file when I install PHP in a docker container?

You need to add php.ini file: Run temporary php container docker run -d --name php-tmp php:5-fpm Copy php archive docker cp php-tmp:/usr/src/php.tar.xz . Extract php.ini-development or php.ini-...
Alexander's user avatar
3 votes

Laravel Forge: Unable to create AWS EC2 instance in London Region

In some regions / availability zones there is not enough capacity for the new M5 / C5 / T3 instances. If you can choose AZ (Availability Zone) in the Laravel Forge create dialog try a different AZ in ...
MLu's user avatar
  • 25.7k
2 votes

How do I enable the IMAP functions in PHP?

Check the PHP version: $ php -v Suppose shows 7.0.32. So your FastCGI Process Manager(fpm) tool version is 7.0 Now install IMAP ENABLE and ENJOY!! Follow below commands. # sudo apt-get install ...
Ebrahim Khalilullah's user avatar
2 votes

How do you restart php-fpm?

On Ubuntu 16 with php 5.6 fpm. /etc/init.d/php5.6-fpm restart
MrPHP's user avatar
  • 163
2 votes

How do you restart php-fpm?

On CentOS 7 sudo systemctl enable php-fpm // Just incase is disabled. Also ensures it starts automatically with the server sudo systemctl start php-fpm // Start the service sudo systemctl stop php-...
Fokwa Best's user avatar
2 votes

nginx / php-fpm error logging

When you're using php-fpm, it appears to override the php.ini settings. The logging most likely needs to be configured in .../www.conf. I uncommented these lines in order to grab the PHP logs. ...
EternalHour's user avatar
2 votes
Accepted

Cannot run Apache 2.4 with libapache2-mod-php5

The undefined symbol means you have a mod_php package installed that was compiled against an earlier version of Apache. You should be able to correct this by updating libapache2-mod-php5 to one ...
Unbeliever's user avatar
  • 2,386
2 votes
Accepted

How to Only install php5-mysql

apt-get will install required dependancies, without which the package won't work correctly. I doubt that an actual MySQL server gets installed as a dependancy but you will need additional MySQL ...
HBruijn's user avatar
  • 81k
2 votes

Apache with PHP-FPM not working

I needed to run to make it working: a2enconf php7.4-fpm https://www.linuxbabe.com/ubuntu/enable-http-2-apache-ubuntu-20-04
luky's user avatar
  • 219
2 votes

"Class 'XMLWriter' not found" Error in php | php55w-xml-5.5.24-1.w6.x86_64.rpm is missing

php55w-* packages are webtatic packages and you don't need this if you don't use webtatics PHP installation. Instead, use the relevant version for your installation of PHP. Normally, it should be ...
Sven's user avatar
  • 99.8k
2 votes

enabling mysqli extension on centos server

PHP installation does not include the support for MySQL database by default, so you need to install php-mysql package. The php-mysql package contains a dynamic shared object that will add MySQL ...
John Smith's user avatar
2 votes

php5.6-fpm curl stops working (Couldn't resolve host)

It seems the bug is fixed and released.
Yo-han's user avatar
  • 166
2 votes

Sending email is slow to some domains

Lets start analyzing sendmail's log, especially delay and xdelay. From here: delay: The total message delay: the time difference between reception and final delivery or bounce). Format is delay=...
shodanshok's user avatar
  • 51.1k
2 votes

Install PHP-Mysql without mariadb-libs

php-mysql use the mariadb client library (libmysqlclient) php-mysqlnd use the MySQL Native Driver and provides the same set of extensions (mysql, mysqli and pdo_mysql), so don't have any dependency ...
Remi Collet's user avatar
  • 2,146
2 votes

server reached pm.max_children setting (280), consider raising it

Here's one suggestion for calculating the right number: https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/ the following command will help us to determine the memory ...
JayMcTee's user avatar
  • 4,031

Only top scored, non community-wiki answers of a minimum length are eligible