I hate phpfpm debuging

Sisyphus is still a role model

Sisyphus is still a role model

Is a real pain in the arse – imagine a simple .php file with

<?php system('/usr/games/fortune');?>

Now in php this will execute and a witty comment will be displayed in my terminal* , however in phpfpm the fun begins

PHP: syntax error, unexpected ‘(‘ in file on line 1

I test the config  file and then all sort of config issues come up

php5-fpm -y/etc/php5/fpm/php.ini -ct1.php

10:31:32] ERROR: [/etc/php5/fpm/php.ini:199] unknown entry ‘engine’
10:32:19] ERROR: [/etc/php5/fpm/php.ini:214] unknown entry ‘short_open_
10:32:59] ERROR: [/etc/php5/fpm/php.ini:218] unknown entry ‘asp_tags’
10:33:42] ERROR: [/etc/php5/fpm/php.ini:222] unknown entry ‘precision

The more i comment out or turn off the more issues appear.

I then read that unless phpfpm does not have file permissions it will not read files.

I think if simple php is thought ‘bad’ then my exploration of php with nginx (my blog) is at an end. or its time to get a better language.

Later i revisit and think i need php-cgi which requires thinking on about its security.  Most of our php worked but when simple command does not i am glad i put the look at nginx on hold.  Either i am doing it wrong, or there be issues with phpfpm that need a deeper understanding.

* yes i could just run fortune, but this is for a web page.

One response

  1. Pingback: Systemd weirdness fleshed out | Bananas in the Falklands

by golly but...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s