PHP 5.4 mode from "mod_php" to "php-fpm" error at start server

Yoshua

Verified User
Joined
Apr 9, 2007
Messages
133
Location
Spain
Hello, i change php mode from "mod_php" to "php-fpm" without problems, but to start the service I get this error:

Code:
Gracefully shutting down php-fpm54:  done
Starting php-fpm54:  done
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd: AH00526: Syntax error on line 99 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

Seeking the solution I found this: http://www.directadmin.com/features.php?id=1400

but, I understand that I have to change...

My /etc/httpd/conf/extra/httpd-php-handlers.conf:
Code:
<FilesMatch "\.(inc|php|php3|php4|php44|php5|php52|php53|php54|php55|php6|phtml|phps)$">
AddHandler application/x-httpd-php-source .phps
</FilesMatch>
AddType text/html .php

My options.conf:
Code:
#PHP settings.
Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, no. php1/php2_mode: mod_php, php-fpm or suphp)
php1_release=5.4
php2_release=no
php1_mode=php-fpm
php2_mode=mod_php
php_ini=yes
#Possible values - production or development
php_ini_type=production
ioncube=yes
zend=yes


#Possible values - 5.1, 5.5
mysql=5.5
mysql_inst=yes
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups


#Possible value: 2.4
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes


#Web applications
phpmyadmin=yes
squirrelmail=yes
roundcube=yes

I can't download pre-release 1.42.2 because I can not access the customer area since I have a license for internal datacentre use only.

Thank
 
It's related to an old version of DA. You should wait for 1.42.2 if you cannot download pre-release binaries (or just mail DA support for a link to pre-release). Thank you.
 
It's related to an old version of DA. You should wait for 1.42.2 if you cannot download pre-release binaries (or just mail DA support for a link to pre-release). Thank you.

That's what I meant, for now I'm back to mod_php mode waiting for the official update and change so ngnix too.


Thank you very much for your response and dedication to Custombuild.
 
Back
Top