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

Pages: [1]
Installation / MongoDB Install failed
« on: July 07, 2020, 08:40:51 AM »
Cant install mongodb and this is the error appears.

Code: [Select]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates: [Errno 14] curl#63 - "Callback aborted"
Trying other mirror.

 One of the configured repositories failed (MongoDB 2.6 Repository),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=mongodb-org-2.6 ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable mongodb-org-2.6
            subscription-manager repos --disable=mongodb-org-2.6

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice

            yum-config-manager --save --setopt=mongodb-org-2.6.skip_if_unavailable=true

failure: repodata/repomd.xml from mongodb-org-2.6: [Errno 256] No more mirrors to try. [Errno 14] curl#63 - "Callback aborted"
Redirecting to /bin/systemctl restart mongod.service
Failed to restart mongod.service: Unit not found.

Information / Email hosting only
« on: May 16, 2020, 12:17:41 AM »

Can anyone guide me on how to create a package for email hosting only?
And not permit the user to create a website.

For every account, there is always a domain name and public_html. So by default, they can create websites.
But I am trying to figure out how can they be restricted in creating websites.

Perhaps setting nproc and apache_nproc to 0?

Information / How Incremental backup works? CWPpro
« on: May 10, 2020, 01:26:04 AM »

For CWP pro users.

Is it just me or the incremental backup is just the same as full backup but uncompressed?

By definition: Incremental Backup
a security copy which contains only those files which have been altered since the last full backup.

But when I look at my backups, it's the whole account being backed up that is uncompressed.

Apache / Run Node js with CWP
« on: May 09, 2020, 05:18:49 AM »
I followed this guide to install node js

After this part
Configure webservers for domain to be used for nodejs Application:
CWP.Admin left Menu -> Webserver settings -> Webserver Domain Conf -> Select Username -> Select Domain/Subdomain -> create configuration -> select any option with (custom port) -> check the box Rebuild webserver conf for domain on save -> Enter port number you have used in the application for the custom port, leave IP as -> save changes

I get Service Unavailable.

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Anyone here knows how to solve this?

My application requires LAMP.

I deployed a brand new server with just CWP just to see what's the issue. Same thing.

So i must be missing 1 step or CWP is creating this error.

Information / Cannot create email in user side
« on: April 28, 2020, 07:42:47 PM »
Anyone here experiencing CWP is unable to create new email addresses in the user side?

When you click Add, it will just stuck in processing.

I have 6 servers. 3 new ones. I noticed it with those first. Then I turned to my old 3 servers. And the same issue.


I confirm that this is an issue because CWP's own demo has the same issue.

In fact, I conclude that this is on the latest update. I created an email on the user side and it was a success. Then I logged in to the root user of the demo to update it to latest CWP update. After that, I logged in once again in the user and the issue is confirmed

Information / Mailgun SMTP for Postfix
« on: April 12, 2020, 10:55:29 AM »

Im trying to use mailgun as SMTP for the postfix email server. So that any user email will be sent via Mailgun SMTP.

But I cannot get it working.

I followed the guide here

Some of the lines are already in the original config as default installation of CWP.
But I cannot get it working

I instantly see error SMTP Error (250): Authentication failed when I hit send.

Some config shows normal behavior. But I receive bounce email and the message is
Remote-MTA: dns;
Diagnostic-Code: smtp; 550 5.7.1 Relaying denied

Here is my config.

Code: [Select]
# postfix config file

# uncomment for debugging if needed

# postfix main
mail_owner = postfix
setgid_group = postdrop
delay_warning_time = 4

# postfix paths
html_directory = no
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
queue_directory = /var/spool/postfix
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man

# network settings
inet_interfaces = all
mydomain =
myhostname = ""
mynetworks = $config_directory/mynetworks
mydestination = $myhostname =  ""
relay_domains = proxy:mysql:/etc/postfix/

# mail delivery
recipient_delimiter = +

# mappings
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
transport_maps = hash:/etc/postfix/transport
#local_recipient_maps =

# virtual setup
virtual_alias_maps = proxy:mysql:/etc/postfix/, proxy:mysql:/etc/postfix/, regexp                                                                                              :/etc/postfix/virtual_regexp
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/
virtual_mailbox_maps = proxy:mysql:/etc/postfix/, proxy:mysql:/etc/postfix/
virtual_minimum_uid = 101
virtual_uid_maps = static:101
virtual_gid_maps = static:12
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

# debugging
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
                 xxgdb $daemon_directory/$process_name $process_id & sleep 5

relayhost = []:587
smtp_sasl_password_maps =

# authentication
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname =  ""
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth

# tls config
smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
# Change* to your host name
smtpd_tls_key_file = /etc/pki/tls/private/hostname.key
smtpd_tls_cert_file = /etc/pki/tls/certs/hostname.bundle
smtpd_tls_CApath = /etc/ssl/certs

# rules restrictions
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_sender, reject_non_fqdn                                                                                              _recipient, reject_unknown_recipient_domain
# uncomment for realtime black list checks
# ,reject_rbl_client
# ,reject_rbl_client
# ,reject_rbl_client
smtpd_helo_required = yes
unknown_local_recipient_reject_code = 550
disable_vrfy_command = yes
smtpd_data_restrictions = reject_unauth_pipelining

# Other options
# email size limit ~20Meg
message_size_limit = 204800000
mailbox_size_limit = 2048000000

# Vacation Scripts
vacation_destination_recipient_limit = 1
recipient_bcc_maps = proxy:mysql:/etc/postfix/

CentOS-WebPanel Bugs / Bug on deleting cron job on user account
« on: December 06, 2017, 03:23:08 AM »
I think there is a bug when deleting cron job on user side.

When you try to delete a cron job, a different job gets delete. Not the one you really want to delete.

CentOS-WebPanel Bugs / New Users are Suspended
« on: November 03, 2017, 11:47:31 AM »

I have issues with user password in CWP

1. When adding new users and tried to login using that user, it's suspended even it not from the list of users.
I explored more, and the reason why it is suspended because I did not use the random password generated. I entered a password on my own

2. Now that I used the random generated password, I can login using that user without the suspended error.
However, when I tried changing the password, it doesnt. It also wants the random generated password

3. I dug a little deeper. I think CWP wants a password that has lower and upper case plus a special and numeric characters.
But I am not entirely sure. Because the problem here is that there is no warning both admin and user side. This took me 2hrs to figure out.

4. A weak password shows a message
Code: [Select]
Changing password for user blahblah
The password I want shows a message
Code: [Select]
Changing password for user blahblah
The password I want is only lower and upper caps plus numbers. No special characters.

An accepted password shows
Code: [Select]
Changing password for user blahblah.
passwd: all authentication tokens updated successfully.

As you can see, there isn't really an error or warning message.

Im not sure if this is a bug. Or really how CWP works. ==

Pages: [1]