w00t
Basic Pleskian
I've already mentioned this directory above, I've tried to add this path to -clipath, but it gives an error:Try to find it with
# cd /usr/local/php56-cgi/
# find . -name *cli
root@host:/usr/local/php56-cgi# /usr/local/psa/bin/php_handler --add -displayname php-5.6.13 -path /usr/local/php56-cgi/bin/php-cgi -phpini /usr/local/php56-cgi/etc/php.ini -clipath /usr/local/php56-cgi/include/php/sapi/cli -type fastcgi -id 2
[2015-10-21 14:46:43] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/php_handlers_control' '--add' '--path' '/usr/local/php56-cgi/bin/php-cgi' '--phpini' '/usr/local/php56-cgi/etc/php.ini' '--type' 'fastcgi' '--displayname' 'php-5.6.13' '--id' '2' '--clipath' '/usr/local/php56-cgi/include/php/sapi/cli'] with exit code [1]
Unable to register the PHP handler: can not get version from /usr/local/php56-cgi/include/php/sapi/cli
[2015-10-21 14:46:43] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/php_handlers_control' '--add' '--path' '/usr/local/php56-cgi/bin/php-cgi' '--phpini' '/usr/local/php56-cgi/etc/php.ini' '--type' 'fastcgi' '--displayname' 'php-5.6.13' '--id' '2' '--clipath' '/usr/local/php56-cgi/include/php/sapi/cli'] with exit code [1]
Unable to register the PHP handler: can not get version from /usr/local/php56-cgi/include/php/sapi/cli
In the directory /usr/local/php56-cgi/include/php/sapi/cli exist a file cli.h, all contents of this file you can be seen in the spoiler.
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Johannes Schlueter <[email protected]> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef CLI_H
#define CLI_H
#ifdef PHP_WIN32
# define PHP_CLI_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_CLI_API __attribute__ ((visibility("default")))
#else
# define PHP_CLI_API
#endif
extern PHP_CLI_API size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS_DC);
typedef struct {
size_t (*cli_shell_write)(const char *str, uint str_length TSRMLS_DC);
int (*cli_shell_ub_write)(const char *str, uint str_length TSRMLS_DC);
int (*cli_shell_run)(TSRMLS_D);
} cli_shell_callbacks_t;
extern PHP_CLI_API cli_shell_callbacks_t *php_cli_get_shell_callbacks();
#endif /* CLI_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Johannes Schlueter <[email protected]> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef CLI_H
#define CLI_H
#ifdef PHP_WIN32
# define PHP_CLI_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_CLI_API __attribute__ ((visibility("default")))
#else
# define PHP_CLI_API
#endif
extern PHP_CLI_API size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS_DC);
typedef struct {
size_t (*cli_shell_write)(const char *str, uint str_length TSRMLS_DC);
int (*cli_shell_ub_write)(const char *str, uint str_length TSRMLS_DC);
int (*cli_shell_run)(TSRMLS_D);
} cli_shell_callbacks_t;
extern PHP_CLI_API cli_shell_callbacks_t *php_cli_get_shell_callbacks();
#endif /* CLI_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
Last edited: