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

Pages: 1 ... 44 45 [46] 47 48 ... 57
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
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;
}

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

680
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
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)

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

Code: [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
8)  Webservers -> Webservrs Domain Config
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
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/

688
/usr/local/cwpsrv/ has the files for 2031 port

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

Pages: 1 ... 44 45 [46] 47 48 ... 57