Today, I installed a new Centos 6.4 server with the latest DirectAdmin 1.43.0 version.
First I tested the script with the recommended settings: works great, out of the box. (good work Martynas !!!)
After this I tried to install PHP5.3 with php-fpm as default and php5.4 with php-fpm as 2nd system, to be sure
I have no unused things on the server left, I have reinstalled the whole server from scratch again (harddisk formatted).
installed DA again, but now with option 4 (CB2.0 alpha) and manual selections:
apache
default php5.3 php-fpm
second php5.4 php-fpm
ruid2
ioncube
mysql 5.5
prevent symbolic links
exim
dovecot
phpmyadmin
roundcube
After installation, rebooted the system.
php -v gives this:
PHP 5.3.23 (cli) (built: Mar 21 2013 16:12:58)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.2.2, C
So far so good.
Problem 1: PECL not found
-------------------------
After trying to installed memcached using pecl, i found out that the command pecl was not available.
Checking:
# pecl
-bash: pecl: command not found
# updatedb
# locate pecl
/usr/local/php53/bin/pecl
/usr/local/php53/lib/php/peclcmd.php
/usr/local/php53/lib/php/.channels/pecl.php.net.reg
/usr/local/php53/lib/php/.channels/.alias/pecl.txt
/usr/local/php53/lib/php/.registry/.channel.pecl.php.net
/usr/local/php54/bin/pecl
/usr/local/php54/lib/php/peclcmd.php
/usr/local/php54/lib/php/.channels/pecl.php.net.reg
/usr/local/php54/lib/php/.channels/.alias/pecl.txt
/usr/local/php54/lib/php/.registry/.channel.pecl.php.net
[root@goofy bin]# whereis pecl
pecl:
#
After trying to execute the command pecl with fullpath:
/usr/local/php54/bin/pecl
/usr/local/php54/bin/pecl: line 28: /usr/local/php54/bin/php: file or folder doesn't excist
/usr/local/php54/bin/pecl: line 28: exec: Can't execute /usr/local/php54/bin/php : file or folder doesn't excist
# /usr/local/php53/bin/pecl
/usr/local/php53/bin/pecl: line 28: /usr/local/php53/bin/php: file or folder doesn't excist
/usr/local/php53/bin/pecl: line 28: Can't execute /usr/local/php53/bin/php : file or folder doesn't excist
More details:
# ls -l /usr/local/php53/bin/
totaal 31948
-rwxr-xr-x. 1 root root 847 mrt 21 16:13 pear
-rwxr-xr-x. 1 root root 868 mrt 21 16:13 peardev
-rwxr-xr-x. 1 root root 784 mrt 21 16:13 pecl
lrwxrwxrwx. 1 root root 30 mrt 21 16:13 phar -> /usr/local/php53/bin/phar.phar
-rwxr-xr-x. 1 root root 14836 mrt 21 16:13 phar.phar
-rwxr-xr-x. 1 root root 32670698 mrt 21 16:13 php53
-rwxr-xr-x. 1 root root 3418 mrt 21 16:13 php-config53
-rwxr-xr-x. 1 root root 4514 mrt 21 16:13 phpize53
Problem 2: PHP switch .htaccess doesn't work
--------------------------------------------
Following the instructions on: http://forum.directadmin.com/showthread.php?t=44743
I have added this to .htaccess for PHP 5.4 as default for php-fpm:
Code:
<FilesMatch \.php$>
SetHandler php54-fcgi
</FilesMatch>
Checked this with a phpinfo.php file inside the same hostingpackage:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
Result: the default php5.3 verion.
So, I hope someone has a fix for this all ??
Regards,
;-) Arthur
First I tested the script with the recommended settings: works great, out of the box. (good work Martynas !!!)
After this I tried to install PHP5.3 with php-fpm as default and php5.4 with php-fpm as 2nd system, to be sure
I have no unused things on the server left, I have reinstalled the whole server from scratch again (harddisk formatted).
installed DA again, but now with option 4 (CB2.0 alpha) and manual selections:
apache
default php5.3 php-fpm
second php5.4 php-fpm
ruid2
ioncube
mysql 5.5
prevent symbolic links
exim
dovecot
phpmyadmin
roundcube
After installation, rebooted the system.
php -v gives this:
PHP 5.3.23 (cli) (built: Mar 21 2013 16:12:58)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.2.2, C
So far so good.
Problem 1: PECL not found
-------------------------
After trying to installed memcached using pecl, i found out that the command pecl was not available.
Checking:
# pecl
-bash: pecl: command not found
# updatedb
# locate pecl
/usr/local/php53/bin/pecl
/usr/local/php53/lib/php/peclcmd.php
/usr/local/php53/lib/php/.channels/pecl.php.net.reg
/usr/local/php53/lib/php/.channels/.alias/pecl.txt
/usr/local/php53/lib/php/.registry/.channel.pecl.php.net
/usr/local/php54/bin/pecl
/usr/local/php54/lib/php/peclcmd.php
/usr/local/php54/lib/php/.channels/pecl.php.net.reg
/usr/local/php54/lib/php/.channels/.alias/pecl.txt
/usr/local/php54/lib/php/.registry/.channel.pecl.php.net
[root@goofy bin]# whereis pecl
pecl:
#
After trying to execute the command pecl with fullpath:
/usr/local/php54/bin/pecl
/usr/local/php54/bin/pecl: line 28: /usr/local/php54/bin/php: file or folder doesn't excist
/usr/local/php54/bin/pecl: line 28: exec: Can't execute /usr/local/php54/bin/php : file or folder doesn't excist
# /usr/local/php53/bin/pecl
/usr/local/php53/bin/pecl: line 28: /usr/local/php53/bin/php: file or folder doesn't excist
/usr/local/php53/bin/pecl: line 28: Can't execute /usr/local/php53/bin/php : file or folder doesn't excist
More details:
# ls -l /usr/local/php53/bin/
totaal 31948
-rwxr-xr-x. 1 root root 847 mrt 21 16:13 pear
-rwxr-xr-x. 1 root root 868 mrt 21 16:13 peardev
-rwxr-xr-x. 1 root root 784 mrt 21 16:13 pecl
lrwxrwxrwx. 1 root root 30 mrt 21 16:13 phar -> /usr/local/php53/bin/phar.phar
-rwxr-xr-x. 1 root root 14836 mrt 21 16:13 phar.phar
-rwxr-xr-x. 1 root root 32670698 mrt 21 16:13 php53
-rwxr-xr-x. 1 root root 3418 mrt 21 16:13 php-config53
-rwxr-xr-x. 1 root root 4514 mrt 21 16:13 phpize53
Problem 2: PHP switch .htaccess doesn't work
--------------------------------------------
Following the instructions on: http://forum.directadmin.com/showthread.php?t=44743
I have added this to .htaccess for PHP 5.4 as default for php-fpm:
Code:
<FilesMatch \.php$>
SetHandler php54-fcgi
</FilesMatch>
Checked this with a phpinfo.php file inside the same hostingpackage:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
Result: the default php5.3 verion.
So, I hope someone has a fix for this all ??
Regards,
;-) Arthur