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

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.

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/

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]

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.

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

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.

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:

cwpsrv Logs are at:

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

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

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

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.

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 /usr/local/apache/htdocs/roundcube/config>
  Order Deny,Allow
  Deny from All

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

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

The above has been adapted from:

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.

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]
Code: [Select]
The following URLs do not exist:
Code: [Select]

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