Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dg1

Pages: 1 [2]
16
PHP / Cron jobs containing relative paths fail
« on: September 18, 2017, 01:18:39 PM »
It seems, if a PHP script contains something like:

Code: [Select]
include('../another-file.php');
It will work properly if opened in browser or CLI, but fail in cron with a message similar to:

Code: [Select]
PHP Warning:
include(../another-file.php): failed to open stream: No such file or directory in /home/account/public_html/cron-test.php on line 3

Scripts can be modified to use absolute paths instead of relative paths, but that's not the best solution for everyone, especially if lots of files are executed using cron jobs.

Is there a fix for this at the control panel (CWP) level?

17
CentOS-WebPanel Bugs / Segmentation fault caused by ZendGuardLoader.so
« on: September 18, 2017, 12:59:50 PM »
It seems, after recompiling using PHP Version Switcher v2, the command line (CLI) version of PHP starts triggering this error:

Code: [Select]
PHP 5.6.31 (cli) (built: Sep 18 2017 00:20:10)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend Guard Loader v3.3, Copyright (c) 1998-2015, by Zend Technologies

Segmentation fault

Caused by ZendGuardLoader.so called in /usr/local/php/php.d/zend.ini

Any ideas why?

18
PHP / Re: How to remove unwanted php version?
« on: September 18, 2017, 04:52:34 AM »
Deleting /opt/alt/phpXX is an easy fix.

But why not make it even easier by adding a "Remove" button (with confirmation) besides the installed PHP versions in CWP PHP Selector? In a future version of CWP...

19
Updates / Apache 2.4.27 option missing in Apache Builder (compiler)
« on: September 17, 2017, 02:35:09 PM »
2.4.27 installed, but no option to recompile without downgrade.

Only options available are 2.4.23, 2.4.25 and 2.4.26

20
CentOS-WebPanel Bugs / Re: Can not delete account
« on: December 04, 2016, 02:31:12 AM »
Same error with me as well.

Notice: Undefined variable: ssh_exec in /usr/local/cwpsrv/htdocs/resources/admin/modules/list_accounts.php on line 0
Fatal error: Function name must be a string in /usr/local/cwpsrv/htdocs/resources/admin/modules/list_accounts.php on line 0

Installation is brand new, no custom modifications. Clearly a bug or failed dependency of some kind.

21
How about adding a checkbox on the delete page "Also delete account backups - WARNING, this action is irreversible".

22
CentOS-WebPanel GUI / Can't create new account
« on: December 03, 2016, 09:26:12 PM »
Trying to create a new account with username "ns"

Code: [Select]
Error: Warning! Username ns already exists in /etc/passwd!
Except it doesn't exist. The only character match in /etc/passwd is a word "console".

Any ideas?

23
PHP / Error deleting accounts
« on: December 03, 2016, 09:20:38 PM »
Clicking on red delete button fails, error:

Code: [Select]
Notice: Undefined variable: ssh_exec in /usr/local/cwpsrv/htdocs/resources/admin/modules/list_accounts.php on line 0

Fatal error: Function name must be a string in /usr/local/cwpsrv/htdocs/resources/admin/modules/list_accounts.php on line 0

Any ideas?

Pages: 1 [2]