19
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
- 301
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
- 1,086
12
votes
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-...
- 217
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....
- 211
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/...
8
votes
How to Upgrade to PHP 5.5 on Windows Server 2008
This is seems to be covered fairly well in install.txt included in the PHP zip downloads.
Quoting from that file ...
Manual Installation Steps
...
Upgrading from a previous PHP version:...
- 4,467
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....
- 71
6
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.
5
votes
Connection refused HTTPS on Apache
I finally fixed this by noticing I hadn't installed mod_ssl.
sudo yum install mod_ssl
- 149
5
votes
Accepted
APC - tuning apc.mmap_file_mask
/tmp/apc.XXXXXX -> This mmap file mask is a normal filesystem based mmap and uses mkstemp to create a unique temporary file which is mmap'd. The 6 'X's are replaced by the unique string to make the ...
- 1,086
5
votes
Accepted
I just installed LAMP on a new CentOS 7 server - why are my php-openssl commands undefined?
You installed PHP 5.4, but the PHP functions you are trying to use were introduced in PHP 5.5.
Use the remi and remi-php55 repositories to update your system to PHP 5.5 (or choose a later version).
...
- 240k
4
votes
The requested PHP extension ext-mcrypt * is missing from your system
Try the following solution:
sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart
Good luck,
-Iulian
- 428
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.
- 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 ...
- 191
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 ...
- 141
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/...
- 151
3
votes
Connection refused HTTPS on Apache
I added this in httpd.conf and restarted Apache:
Listen 443
And it's working now.
- 279
3
votes
nginx / php-fpm error logging
Are you sure about your assumption for the rsyslog.conf? That is, are you sure all such syslog messages are tagged with lower-case "php"?
Try setting syslog.facility to something like local2 (or ...
- 429
3
votes
FPM sometimes serving from wrong pool
I encountered the same issue on Debian 8, under PHP5-fpm and Apache. My solution was to uncomment or add this line in php.ini:
opcache.enable=0
That seemed to be all. Thank you for comments on the ...
- 210
3
votes
Accepted
Can't seem to set AcceptPathInfo in Apache
To turn on AcceptPathInfo in Apache, (p.ex Moodle 2.9) in you will need to change httpd.conf like:
For Apache versions earlier than 2.4:
<VirtualHost *:80>
ServerName moodleback.local
...
- 46
3
votes
nginx 404 instead of 403 for empty directory
If you want to make nginx send a 404 whenever it would otherwise have sent a 403, that's done with error_page:
server {
root /var/www/example.com/web;
error_page 404 /s/404.html;
...
- 1,335
3
votes
Upgrading to PHP 5.6 using Yum (REMI repo)
You made need to install php56 explicitly, e.g.:
yum install php56 php56-php-cli php56-php-common php56-php-pear php56-php-pecl-jsonc php56-php-pecl-zip php56-php-process php56-php-xml php56-runtime
...
- 1,282
3
votes
Accepted
Postfixadmin does not work after update "Cannot redeclare hex2bin"
I came across this old update from the postfixadmin people that described that "PHP around 5.3.8 includes hex2bin as native function". Fortunately the PHP function apparently does the same as the ...
- 197
3
votes
Accepted
php-fpm using 100% CPU and nginx gives 404
Magento is a heavy piece of software. What makes you think your server would NOT scream in agony during your 500 users performance test? Of course serving static content is fast, but parsing all that ...
- 31.7k
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 ...
- 63
3
votes
Accepted
How can I specify which php.ini file to use in my nginx conf file?
As pointed out by @AD7six, I was going about it the wrong way. This is how I solved the issue for anyone else who isn't as familiar with multiple php setups.
Copy the default pool to create our new ...
- 161
3
votes
Accepted
How do I enable updated PHP 5.5 versions in RHEL 7
You can use the Remi repository (http://rpms.famillecollet.com/enterprise/7/) or the Red Hat Software Collections (somewhat harder to configure/enable, but more "trusty" as they directly come from Red ...
- 45.1k
3
votes
How do I enable updated PHP 5.5 versions in RHEL 7
Red Hat Software Collections have been created specifically to address this issue. Give it a try, it is not that hard. Yes, it adds some packages in /opt to avoid conflits or overwrites. To install ...
- 41
3
votes
Accepted
CentOS 7.2, PHP 5.4 - MySQL extension is missing
Alright... finally, so it turns out all I needed to do was restart PHP-FastCGI. Yay.
systemctl restart php-fastcgi.service
- 239
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
php5 × 865apache-2.2 × 264
php × 252
php-fpm × 96
nginx × 83
ubuntu × 83
apache-2.4 × 73
linux × 63
mysql × 48
debian × 41
php.ini × 40
centos × 34
fastcgi × 34
centos6 × 32
centos5 × 23
wordpress × 18
installation × 18
apt × 17
ubuntu-12.04 × 17
alternative-php-cache × 17
windows × 16
amazon-ec2 × 14
web-server × 14
httpd × 14
iis-7.5 × 14