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.
676
Postfix / Re: unable to change port 25 to 587 in postfix
« on: April 21, 2020, 05:57:32 PM »
If port 25 is blocked by your ISP, your mail server will NEVER work properly. 25 is the server to server communication by default. Hence why you shouldn't try hosting a server on a home network connection.
677
E-Mail / Re: Help. Script autoblock spam flag
« on: April 08, 2020, 02:14:12 PM »
Google is your friend.
https://serverfault.com/questions/764641/spamassassin-dovecot-and-postfix-move-spam-to-folder
https://serverfault.com/questions/764641/spamassassin-dovecot-and-postfix-move-spam-to-folder
Quote
To manage filter rule you can use sieve on dovecot. You can put it as global sieve or per user sieve.
For global sieve use configuration in /etc/dovecot/dovecot.conf :
sieve_global_path = /home/vmail/sieve/dovecot.sieve
For sieve per user use configuration :
sieve = /%Lh/sieve/dovecot.sieve
which %Lh===dovecot will change it to user mailbox dir
This is example for sieve files content:
if header :contains "*****SPAM*****" "YES"
{
fileinto "Junk";
stop;
}
678
CentOS 7 Problems / Re: OWASP CRS/PROTOCOL VIOLATION/IP HOST
« on: April 07, 2020, 01:44:23 AM »679
CentOS-WebPanel Bugs / Re: Violation of the personal data protection law with CWP.
« on: April 06, 2020, 10:37:36 PM »
This is the default behavior of DNS. However, you can always edit the template for DNS...
Edit
/usr/local/cwpsrv/htdocs/resources/conf/dns/bind/zones/default.tpl
Change the line in the SOA from:
@ 86400 IN SOA %ns1%. %dns-email%. (
TO
@ 86400 IN SOA %ns1%. root@yourserver.com. (
Edit
/usr/local/cwpsrv/htdocs/resources/conf/dns/bind/zones/default.tpl
Change the line in the SOA from:
@ 86400 IN SOA %ns1%. %dns-email%. (
TO
@ 86400 IN SOA %ns1%. root@yourserver.com. (
680
Installation / Re: Would this installation / configuration be possible?
« on: April 02, 2020, 04:56:55 AM »
In theory, if you have 2 Public IP's, yes. Apache would listen on port 80,443 on one IP, and Nginx on port 80,443 on the other. You would install CWP Apache only, then install nginx from yum. You of course would have to manually configure nginx to use the php-fpm sockets.
681
Nginx / Re: I want to try nginx with php-fpm but don't run wordpress, could you help me?
« on: April 02, 2020, 12:58:05 AM »
Don't add a second location / block, or you'll screw everything up.
Code: [Select]
server {
listen 188.166.23.139:80;
server_name quedamosencasa.com www.quedamosencasa.com;
root /home/brujo/public_html;
index index.php index.html index.htm;
access_log /usr/local/apache/domlogs/quedamosencasa.com.bytes bytes;
access_log /usr/local/apache/domlogs/quedamosencasa.com.log combined;
error_log /usr/local/apache/domlogs/quedamosencasa.com.error.log error;
location / {
try_files $uri $uri/ /index.php?$args;
location ~.*\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass unix:/opt/alt/php-fpm73/usr/var/sockets/brujo.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
location ~* "/\.(htaccess|htpasswd)$" {deny all;return 404;}
disable_symlinks if_not_owner from=/home/brujo/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
682
Installation / Re: 2 issues with permalink and ssl
« on: March 31, 2020, 12:06:14 AM »thanks for your help!
i followed your suggests and fixed the wordpress issue.
but i can't fix the second one, actually if i try to reinstall it says it's already installed but if i go with my browser it says not secure.
If you click that "Admin Services" buton, and select at least one, it will grab a cert from letsencrypt.
683
Installation / Re: 2 issues with permalink and ssl
« on: March 28, 2020, 09:36:53 PM »
When you first setup WordPress, you did so from hostname/~user
Log into WordPress admin and update the website url
Change WordPress URL in Admin Dashboard
The first and most common method is to change your WordPress URL directly from within the admin dashboard. On the left-hand side, under “Settings,” click into “General.” You can then update the following:
WordPress Address (URL): The address to reach your blog.
Site Address (URL): The address of your WordPress core files.
Both should match unless you are giving WordPress it’s own directory. Remember that after you click “Save Changes,” your WordPress dashboard is now only accessible via the new URL.
As for your ssl issue. You have a valid cert for your hostname, but not for your domain. Make sure you get a cert via autossl in the cwp panel for the domain. (most likely set to self generated atm)
Log into WordPress admin and update the website url
Change WordPress URL in Admin Dashboard
The first and most common method is to change your WordPress URL directly from within the admin dashboard. On the left-hand side, under “Settings,” click into “General.” You can then update the following:
WordPress Address (URL): The address to reach your blog.
Site Address (URL): The address of your WordPress core files.
Both should match unless you are giving WordPress it’s own directory. Remember that after you click “Save Changes,” your WordPress dashboard is now only accessible via the new URL.
As for your ssl issue. You have a valid cert for your hostname, but not for your domain. Make sure you get a cert via autossl in the cwp panel for the domain. (most likely set to self generated atm)
684
Nginx / Re: Just Nginx run (wordpress permalink 404)
« on: March 28, 2020, 07:35:31 PM »
Not if you set it on a per user/domain instance.
685
Nginx / Re: Just Nginx run (wordpress permalink 404)
« on: March 28, 2020, 06:58:30 PM »PROBLEM SOLVED
Hi, i discovered a great website https://www.mysterydata.com/ with a great administrator where you can find many guides for CWP and more, also by registering for free on the forum i found the solution to this problem thanks to the courtesy and extreme availability of the administrator.
SOLUTION:
https://forum.mysterydata.com/topic/3/cwp-nginx-varnish-apache-with-php-fpm-server-how-to-configure-pretty-permalink-for-wordpress/2
Good day and good work to all !
Hi,
I have the same issue but for subdomain sites only.
.htaccess is in the subdomain folder but nothing happens.
Another hand there is a line in nginx subdomain vhost that disable .htaccess but is not present in nginx default .confCode: [Select]location ~* "/\.(htaccess|htpasswd)$" {deny all;return 404;}
How did you do it?
Thanks in advance
nginx does not use .htaccess file.
Follow these Steps
1) Log into the CLI via SSH
2) Cd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm
3) " cp default.stpl wordpress.stpl " and " cp default.tpl wordpress.tpl "
4) edit wordpress.stpl and wordpress.tpl (nano/vi)
5) Find location / {
6) Immediately under that line add " try_files $uri $uri/ /index.php?$args; " and save it
7) Log into CWP Admin panel

9) Select user of domain running wordpress
10) Click Create Configuration
11) Select NGINX-PHPFPM
12) Nginx default vhost template type: Set to PHP-FPM
13) Nginx default vhost template: Select Wordpress
14) Select your desired PHP-FPM Version
15) Check box to rebuild Webserver Config for domain.
16) Click Save
Wordpress should now work
Repear 9-16 for other wordpress installations.
686
Updates / Re: Will CWP auto update potentially override any of NGINX configs?
« on: March 28, 2020, 06:33:20 PM »
Check WebServer Settings -> Webservers Main Conf to see if there is a default template set that does not exist.
687
E-Mail / Re: RoundCube Reply error
« on: March 28, 2020, 04:39:25 AM »
Please post the contents of the log files under
/usr/local/cwpsrv/var/services/roundcube/logs/
/usr/local/cwpsrv/var/services/roundcube/logs/
688
How to / Re: How come cwp still loading /pma after I removed all references to it
« on: March 28, 2020, 04:28:24 AM »
/usr/local/cwpsrv/ has the files for 2031 port
689
Updates / Re: Will CWP auto update potentially override any of NGINX configs?
« on: March 28, 2020, 04:26:10 AM »
Yes. It will override any custom configurations if you rebuild the vhosts. However, you can create your own template that will not be overridden.
690
SSL / Re: SSL not working for ports 2031 and 2083
« on: March 26, 2020, 10:50:00 PM »
LetsEncrypt had to revoke their intermediate certificate due to a flaw in their services. You need to reissue all certs that were issues more than 2 weeks ago.