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.


Topics - bobster

Pages: [1]
1
CentOS-WebPanel GUI / web panel not loading information
« on: December 03, 2020, 08:22:40 AM »
Hi,

I am unable to get any information in the user web panel. The main page loads but none of the menu options such as listing email accounts or domains works. It just shows the loading circle. Also the filemanager opens but does not show any folders/files in the right or middle columns.

 tail -f /usr/local/cwpsrv/logs/error_log gives the following indication:

Quote
2020/12/03 10:10:46 [error] 22387#0: *2242 FastCGI sent in stderr: "PHP message: PHP Warning:  scandir(): open_basedir restriction in effect. File(/usr/local/cwpsrv/var/services/user_files/modules/) is not within the allowed path(s): (/home/testdomainco:/tmp:/usr/local/cwpsrv/var/services/users:/usr/local/cwpsrv/var/services/twig/:) in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  scandir(/usr/local/cwpsrv/var/services/user_files/modules/): failed to open dir: Operation not permitted in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  scandir(): (errno 1): Operation not permitted in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  in_array() expects parameter 2 to be array, boolean given in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  main(): open_basedir restriction in effect. File(/usr/local/cwpsrv/var/services/user_files/modules/preferences/index.php) is not within the allowed path(s): (/home/testdomainco:/tmp:/usr/local/cwpsrv/var/services/users:/usr/local/cwpsrv/var/services/twig/:) in /usr/local/cwpsrv/var/services/users/index.php on line 0

I do not have open_basedir enabled in my global php.ini or any user directory.

I have a couple of domains on the server and the problem is the same for all of them.

Using the admin panel I am able to accomplish all tasks with no errors, only with web panel.

Any assistance will be appreciated

2
Postfix / Renewed SSL not loaded up for SNI
« on: November 04, 2020, 10:28:06 AM »
Hi,

Not sure if anybody else is experiencing this issue.

I am hosting multiple domains and using SNI with postfix and dovecot. When my SSL certificates gets renewed both dovecot and postfix still presents the old/expired certificate.

My current solutions:

Dovecot, simply restart the service.

Postfix I need to do the following:
cd /etc/postfix/
postmap -F hash:vmail_ssl.map
postfix reload

Hope this can help somebody with the same issue.

If anybody knows of a better or more automated way please share :)

3
Postfix / Email Auto Responders mysql-virtual_vacation.cf: Permission denied
« on: September 27, 2020, 12:11:48 PM »
Hi guys,

Having an issue with Email Auto Responders not working.

Adding the Email Auto Responders works and it is correctly in vaction table of the postfix database. Also the mail gets delivered to the mailbox with auto responder. Only the auto responder email is not sent

This is the error I get in /var/log/maillog :

delivered via vacation service (grep: /etc/postfix/mysql-virtual_vacation.cf: Permission denied PHP Warning:  mysqli_connect()

I traced the issue to /etc/postfix/vaction.php. On line 12, there is this php command:
$postfix_password = shell_exec("grep '^password' /etc/postfix/mysql-virtual_vacation.cf| awk {'print $3'}");

In vacation.php if I manually set $postfix_password to the password in mysql-virtual_vacation.cf it works 100% but I am guessing this is not ideal.

Also creating a php file with the same command: $postfix_password = shell_exec("grep '^password' /etc/postfix/mysql-virtual_vacation.cf| awk {'print $3'}"); does return the correct value. Running as root

So my next guess is that the the user account that needs to execute vacation.php does not have permissions to access mysql-virtual_vacation.cf and thus returns an empty value making vaction.php fail correctly.

file permissions are as follow:
vacation root vacation.php
root mail mysql-virtual_vacation.cf

/usr/local/cwp/php71/bin/php -v
PHP 7.2.30 (cli)



From this point on I am lost. The manual fix does work for now however.

Thanks


Pages: [1]