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 - apmuthu

Pages: [1] 2
1
Information / Re: CentOS Configuration File Locations (CWP)
« on: January 05, 2016, 03:45:14 AM »
Thought as much. Thanks for the feedback. Hope it makes it to the core in CWP.

2
Information / Re: CentOS Configuration File Locations (CWP)
« on: January 05, 2016, 02:52:17 AM »
Did you try the sysctl method in this link?

Otherwise, check the databases for any clues.

3
Information / Re: CentOS Configuration File Locations (CWP)
« on: November 22, 2014, 12:12:17 PM »
There is a MySQL postfix database and all postfix config are generally in /etc/postfix.
Most paths are stored in /etc/postfix/main.cf.

4
Backup / Backup command
« on: November 13, 2014, 07:08:22 PM »
When the backup script is running, the following recursive rsync command is used if a remote connection is available and enabled:
Code: [Select]
ionice -c 3 nice -n +19 /usr/bin/rsync -avzr --deletebut if a remote connection is not available or not enabled, the following non recursive command is used without ionice:
Code: [Select]
/usr/bin/rsync -avz --no-o --no-g --deleteThe latter needs to be fixed as:
Code: [Select]
ionice -c 3 nice -n +19 /usr/bin/rsync -avzr --no-o --no-g --deleteThis happens when we observe the cwp cron running the file:
Code: [Select]
/usr/local/cwpsrv/resources/admin/include/cron_backup.php

5
CentOS-WebPanel GUI / Re: Enable HTTPS
« on: November 13, 2014, 07:01:14 PM »
Please check if the IP (Public one) provided is taken in the conf file. If so, try to replace it with your LAN IP and enable your router to forward the public IP to the lan IP.

6
How to / Re: How to add an additional IP?
« on: November 13, 2014, 09:44:55 AM »
He means: Add extra IP not just change the existing one....

7
PHP / Re: suPHP - 500 Internal Server Error
« on: November 11, 2014, 05:30:43 PM »
Please be aware that the instructions in the Ubuntu Forum link above is for debian based builds only and need to be 'adapted' to CentOS/RHEL based systems.

8
Information / Re: CentOS Server Log Files Location
« on: November 11, 2014, 04:36:09 PM »
CWP Login Logs file is now (CWP v0.9.6) at:
/var/log/cwp_client_login.log

cwpsrv Logs are at:
/usr/local/cwpsrv/logs

Wonder why the dovecot logs have 777 permissions.....

9
FTP / Re: Create new accounts from cwp
« on: November 11, 2014, 12:59:57 PM »
eXtplorer is another Open Source File Manager.
Download v2.1.5


10
Updates / Re: Upgrade to 0.9.6
« on: November 10, 2014, 06:16:52 PM »
The auto webupdater is a cron job currently named /etc/cron.daily/cwp which executes 2 obfuscated php files using /usr/local/cwp/php54/bin/php with a timeout of 1 million seconds ( why? ):
Code: [Select]
/usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
/usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
The effects of the first of these files have been investigated and it is found that the email address of the root user and the webpanel version are transmitted to the developers site along with all Globals (IP Address, paths, etc) at the start of the update and the final webpanel version is transmitted at the conclusion of the update. The files essentially affected are expected to be in the /usr/local/cwpsrv/htdocs folder only but could actually be to anywhere on the server.

The webpanel version is listed at the bottom of the dashboard and is probably taken from the obfuscated file:
Code: [Select]
/usr/local/cwpsrv/htdocs/resources/admin/include/version.php


11
FTP / Re: FTP Login
« on: November 09, 2014, 09:40:06 PM »
The only difference in /etc/pure-ftpd/pure-ftpd.conf between yum remove / yum install and the original install is that the line in the latter:
Code: [Select]
PureDB /etc/pure-ftpd/pureftpd.pdbis commented out in the former:
Code: [Select]
PureDB /etc/pure-ftpd/pureftpd.pdb.

The actual line in the original web installer that did it is:
Code: [Select]
sed -i 's|.*pureftpd.pdb.*|PureDB /etc/pure-ftpd/pureftpd.pdb|g' /etc/pure-ftpd/pure-ftpd.conf
But this can remain so and the creation of one FTP user in a domain will set right the password table. There appears to be no separate MySQL database associated with the PureFTPd. Possibly it will use the regular user table in the root_cwp db itself or from a file containing virtual users.

The two files pureftpd.passwd and pureftpd.pdb get created in the /etc/pure-ftpd folder in the correct format now.

root user by default cannot FTP but can SFTP.

12
Installation / Roundcube Apache Config is missing
« on: November 09, 2014, 08:15:03 PM »
The following stanza is missing in cwp-latest script:
Code: [Select]
cat <<'EOF' > /usr/local/apache/conf.d/roundcube.conf
Alias /webmail /usr/local/apache/htdocs/roundcube

<Directory /usr/local/apache/htdocs/roundcube>
  Options -Indexes
  AllowOverride All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/config>
  Order Deny,Allow
  Deny from All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/temp>
  Order Deny,Allow
  Deny from All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/logs>
  Order Deny,Allow
  Deny from All
</Directory>
EOF


The above has been adapted from:
http://trac.roundcube.net/wiki/Howto_Install

The RoundCube WebMail link in the Web Interface can be adjusted for uniformity or left as is since the URL http://domain.or.ip/webmail is only an alias.

Furthermore, the RoundCube v1.0.3 and the one from the GitHub master are working as well with two variables being different for sed substitution and two config files clubbed as one new one instead.


13
Updates / Re: Upgrade to 0.9.6
« on: November 09, 2014, 06:22:01 PM »
Where is the CWP version listed? yum update or update within the CWP does not show any CWP upgrades.
The following URL:
Code: [Select]
http://centos-webpanel.com/webpanel/main.php?app=rc4key&version=0.9.6shows:
Code: [Select]
vbbFWq52HsnPBXvBcTl/HRwSIWI=
The following URLs do not exist:
Code: [Select]
http://dl1.centos-webpanel.com/files/cwp/cwp_test_095.zip
http://dl1.centos-webpanel.com/files/cwp/cwp_test_096.zip

14
CentOS-WebPanel Bugs / Error on blank file edit
« on: November 05, 2014, 06:43:42 PM »
On the demo page, the following URL gives an error on missing file or blank file:
https://185.4.149.65:2031/index.php?module=file_editor&file=/usr/local/apache/conf.d/empty.conf
Quote
Warning: fread(): Length parameter must be greater than 0 in /usr/local/cwpsrv/htdocs/resources/admin/modules/file_editor.php(1) : eval()'d code(1) : eval()'d code on line 18
Could not read file!

There is a confusion between 0 length and boolean false in some if check.

Pages: [1] 2