• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Unable to activate added PHP Handler

Evilmachine

Basic Pleskian
Hi there,

i just added a new PHP Handler with PHP Verison 5.5.18 as cgi and i always get an error when activating.
I used the samte setting and php ini as the Buildin Ones

root@ip1:/usr/local/src/php-5.5.18# /usr/local/psa/bin/php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom:
5.5.18 5.5.18 5.5.18 5.5 cgi /usr/local/php550-cgi/bin/php-cgi /etc/php5/cli/php.ini true
cgi 5.3.29 5.3.29 5.3 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
fastcgi 5.3.29 5.3.29 5.3 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
module 5.3.29 5.3.29 5.3 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini false

When i want to activate it i get

Fehler: phpinimng failed: Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:24] Invalid configuration line. Are there excessive leading spaces?',))

I get this even if i want to activate a build in one.

In my additional php config i have

mail.log = /var/log/phpmail.log
mail.add_x_header = On
date.timezone = "Europe/Berlin"
[Zend]
zend_extension=/usr/lib/php/modules/ioncube_loader_lin_5.3.so
zend_extension=/usr/lib/php5/ZendGuardLoader.so
sendmail_path = /usr/sbin/sendmail-wrapper-php

I am using Debian Squeeze.

Any Ideas?
 
Try to change

date.timezone = "Europe/Berlin"

to

date.timezone = Europe/Berlin
 
I already tried this with emptying all additional settings.

But hte problem still persists.

It is only on Squeeze. On my Wheezy machine this works.
 
Did you edit the php.ini and probably used several "tab spaces", instead of whitespaces? Or maybe you just copied text into the php.ini, containing symbols or characters, which might be the cause of a parsing failure? You could try to rename your modified php.ini to *.bak and use the former php.ini from the original installation package, to make sure, that your modifications might be not the cause of the parsing failure.
 
Yes i tried both.

The php.ini distributed with php even does not work.

I also tried to delete all commentaries and that fails too.
I think there is a bug in the squeeze package for that.
 
Back
Top