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

Pages: 1 ... 5 6 [7] 8 9 ... 15
91
E-Mail / Re: Mail forwarder Problem
« on: December 28, 2015, 03:47:46 PM »
Forward using an alias then you can deliver to local and remote mailbox at the same time

92
E-Mail / Re: catch unrouted emails only?
« on: December 28, 2015, 03:42:46 PM »
You can setup aliases for the ones you don't want going into the catchall mailbox , and deliver the mail to their own mailbox or send them off to another domain.

93
How to / Re: cron syntax help needed
« on: December 28, 2015, 03:26:15 PM »
Ok , if you want to emulate the activity of a web browser you could use lynx

 lynx http://mysite.com/members/cron_amazon.php > /dev/null

or to just run the file let php open it but from within a folder path

php /path to file/cron_amazon.php > /dev/null

i would also try leaving the > /dev/null part out it should cause the root user to get an email with the reason the cron failed , but i think the examples above will work for you

94
Hi
If you are using Varnish , please check that the entry is being added correctly to /etc/varnish/sites.vcl

95
Information / Re: Error 500 - wordpress (Internal Server Error)
« on: December 28, 2015, 12:40:40 PM »
Please reset the file and folder permissions for the domain owner under User Accounts --> fix permissions

96
Apache / Re: Apache Issue
« on: December 28, 2015, 12:38:08 PM »
Try logout of CWP and log back in it should fix Apache for you

97
E-Mail / Re: smtp host?
« on: December 28, 2015, 12:36:51 PM »
if i remember correctly 587/465 will try TLS before SSL try removing 587/

98
E-Mail / Re: Postfix Mail Queue
« on: December 28, 2015, 12:30:29 PM »
yes , you will need to make a small database to put the blocked addresses in , and reference it in your main.cf

add this to main.cf
check_sender_access hash:/etc/postfix/blocked_domains,

Make the blocked_domains db in /etc/postfix ( doesn't have to be there i just like to keep my stuff all together)
vi /etc/postfix/blocked_domains

Add the domains to it
thisdomain.com REJECT
that domain.com OK

Save the new file

Compile the database
postmap /etc/postfix/blocked_domains

Reload postfix
service postfix reload

you will need to recompile and reload every time you make a change the file that contains the domains in it

99
How to / Re: Protection against Slowloris?
« on: December 28, 2015, 12:16:13 PM »
Just rebuild Apache with the CWP slowloris module

100
How to / Re: cron syntax help needed
« on: December 28, 2015, 12:13:45 PM »
Hi there

What are you trying to do with the cron ? , what do you currently have that isn't working ?

101
Other / 2015 Thank you all
« on: December 23, 2015, 09:08:45 AM »
Hi all

As 2015 draws to an end i would like to thank all involved in CWPAdmin for an outstanding product and great forum , all the dedication and hard work has been greatly appreciated by all who use the software , have a wonderful Christmas, A HEALTHY, HAPPY AND SUCCESSFUL new year.

Show some love
https://support.centos-webpanel.com/cart.php?a=confproduct&i=0

102
CentOS Configuration / Re: GDlib
« on: December 23, 2015, 08:06:01 AM »
Hi

Did you restart httpd after installing GD and ImageMagick ?

103
E-Mail / Re: Postfix Mail Queue
« on: December 23, 2015, 07:57:41 AM »
Hi

Im assuming you're referring to mail in the outbound queue ?

if you know the address to be correct and choose to "force the mail out" you can use the process queue option , however be aware that the recipient mail server may be delaying/grey listing so if you force it you may just delay delivery even further.

104
SSL / Re: Unable to restart http service after SSL installation
« on: December 23, 2015, 07:49:49 AM »
Hi there

first i would make sure in http.conf that the hostname is correct (normally you can start http even if its wrong) then have a look in /usr/local/apache/logs/error_log see if theres anything of interest in there, then make sure that you have the following in the vhost config of the site.

Code: [Select]
# vhost_start reports.website.com
<VirtualHost 192.168.23.100:443>
 ServerName reports.website.com
 ServerAlias www.reports.website.com
 DocumentRoot /home/calltrac/public_html/web
 SSLEngine on
 SSLCertificateFile /etc/pki/tls/certs/reports.website.com.cert
 SSLCertificateKeyFile /etc/pki/tls/private/reports.website.com.key
 SSLCertificateChainFile /etc/pki/tls/certs/reports.website.com.bundle
<IfModule mod_suexec.c>
    SuexecUserGroup calltrac calltrac
</IfModule>

<IfModule mod_suphp.c>
    suPHP_UserGroup calltrac calltrac
    suPHP_ConfigPath /home/calltrac
</IfModule>

<Directory "/home/calltrac/public_html/web">
    AllowOverride All
</Directory>
</VirtualHost>
# host_end reports.website.com

please not i have changed my live ip address to a local one for this post do not change your ip address from what you have to the one in my example

105
Backup / Re: FTP Backup
« on: December 23, 2015, 07:39:55 AM »
Hi not by default using the backup manager in CWP but you can do it via cron with a script, something like this , but you'll need to change it to your own liking.

Code: [Select]

#!/bin/bash
 
# FTP username and Pass
FTPUSER=ftpusername
FTPPASS=ftppassword
 
# this is a list of directories you want backed up. No trailing / needed.
INCLUDES="/home /var/www"
 
# I added a mysql user called backup with permissions to SELECT and LOCKING only for this backup
# CREATE USER backup@'localhost' IDENTIFIED BY 'backuppassword';
# GRANT SELECT,LOCKING ON *.* TO backup@'localhost'  WITH GRANT OPTION;
#
# change this variable to anything but 1 to disable mysql backups ( some prefer to backup the binlog )
MYSQLBACKUP=1
DBUSER=backup
DBPASS=backuppassword
 
TMPDIR=/tmp/backup
DAYOFWEEK=`date +%a`
DATESTAMP=`date +%d%m%y`
cd /
# remove all older files
rm -rf ${TMPDIR}/*
 
# create directory structure
/bin/mkdir -p ${TMPDIR}/files &&
/bin/mkdir -p ${TMPDIR}/db &&
/bin/mkdir -p ${TMPDIR}/archives &&
 
if [ $MYSQLBACKUP = 1 ];then
/usr/bin/mysqldump -u${DBUSER} -p${DBPASS} -A | gzip -c > ${TMPDIR}/db/mysql_backup-${DATESTAMP}-${DAYOFWEEK}.sql.gz
fi
 
for ITEMI in ${INCLUDES} ; do
/bin/mkdir -p ${TMPDIR}/files/${ITEMI}/
/usr/bin/rsync -aq ${ITEMI}/* ${TMPDIR}/files/${ITEMI}/
done
 
/bin/tar jcf ${TMPDIR}/archives/file-backup-${DATESTAMP}-${DAYOFWEEK}.tar.bz2 ${TMPDIR}/files/ > /dev/null 2>&1 &&
 
/usr/bin/lftp -u "${FTPUSER},${FTPPASS}" yourbackuplocation.com -e "set ftp:ssl-protect-data true; mrm *-${DAYOFWEEK}.* ; put ${TMPDIR}/archives/file-backup-${DATESTAMP}-${DAYOFWEEK}.tar.bz2; put ${TMPDIR}/db/mysql_backup-${DATESTAMP}-${DAYOFWEEK}.sql ; exit" >/dev/null
 

Pages: 1 ... 5 6 [7] 8 9 ... 15