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

Pages: [1] 2 3 ... 7
1
SSL / Re: Transfer from Letsencrypt Manager to SSL Cert Manager
« on: February 17, 2018, 06:12:59 PM »
uninstall old LE manager and reinstall the certs with auto ssl

Can I do this is reverse direction ?
I have about 10 sites use SSL from old LE Manager.
Can I first update SSL for those sites from AUtoSSL generator and then remove LE Manger ??

Dude, you should remove old certificates first. Restart apache, then use the new method ("SSL Cert manager"), choose AutoSSL tab, then install the new certificate. It's super easy. If your are having problem while verifying certificate, try temperately remove .htaccess at public_html folder
A final step, restart apache.


2
Yes, varnish does not support SSL.
However, you can set
nginx SSL : port 443 (as proxy server). You force https across domain at this step. Don't force https at back-end (Apache). Search Google how to force https on nginx
varnish : cache server
apache : backend

Visitor -> Nginx (https) -> Varnish -> Apache (dont force https using .htaccess at this step)

I confirm had been succeeding install https together with varnish. Please note, varnish only caches static content (images,js, CSS , html, text...), if you want to cache dynamic content, you need to cache it on your back-end first.


3
check .htaccess file in your public_html folder, it might cause the 404 (maybe there is a rewrite rule)

4
CentOS 7 Problems / Re: upload_max_filesize
« on: February 07, 2018, 07:40:05 AM »
Hello,

Thanks for your help! But now i have an other issue. When tried the install the X2Engine plataform, it told me this error: The path defined in session.save_path () is not writable.

Could you help me please?

Thank´s a lot!

Your question is not related to CWP. However, you might locate where is the configuration file for your application, then follow the path and make sure to change permission 777 (or 755) to the folder.

5
E-Mail / Re: How can I to change the quota in mailbox? It's full
« on: January 29, 2018, 08:47:24 AM »
Change the package limits then assign the account to that new package

6
Nginx / Re: NGINX Proxy + Apache not allowing POST requests
« on: January 15, 2018, 09:02:40 AM »
I have no problem with  nginx POST/GET requests
mod_security  just gives you more headache! maybe try to disable it.
suggestion: You can do a simple test on 'contact form' for POST and GET request.

7
Nginx / Re: Apache
« on: January 15, 2018, 08:58:26 AM »
chmod 755 or 777 to that folders (use FTP or SFTP software, or SSH command)


8
Nginx / Re: How i can change nginx config template
« on: January 15, 2018, 07:33:48 AM »
I use apache + nginx + varnish web server option. I have configured my nginx and varnish with port ssl 443 in nginx. But when I rebuild apache vhost, nginx and varnish configuration are also rebuilt. so I have to reconfigure nginx and varnish. I want when I rebuild apache vhost, it rebuilds the nginx vhost configuration with my template.

any solution?

Go to Apache settings > edit Apache vhosts
You will see the section "CWP Configuration Templates for nginx_proxy_vhost"

Customize it then save, Don't forget to rebuild all templates and restart Nginx.
You are also able to change other templates (Apache, apache_ssl, nginx_proxy_vhost_ssl, named_conf, named_new_dns_zone) All in one place





9
CentOS-WebPanel GUI / Re: Web UI doesn't list already existing users
« on: January 12, 2018, 05:15:27 AM »
Use CWP to add a new account (meaning linux user, user group, a user record in CWP database and other related stuff), dont use SSH command line

10
Apache / Re: default path
« on: January 12, 2018, 05:06:31 AM »
all i want is actually install the wordpress on my server before point my domain to the server i need to configure some setting. i mean im gonna use with my servers ip on browser then after finish my work i will launch my site. please help me

- You should create a new account, not be using root for security reasons. Also, Imagine if you upload files using root account, all other users on server cant modify it due to permission.
- You should not install wordpress using IP, it will lead to complicated and unnecessary steps after you complete the WP installation, believe me.

11
Apache / Re: enable Gzip
« on: January 12, 2018, 04:57:31 AM »
you forgot to restart Varnish to delete all cached
very simple, just reboot the server

12
Apache / Re: setting custom virtual host settings
« on: January 12, 2018, 04:54:47 AM »
Try to customize the vhost tempalte
/admin/index.php?module=file_editor&file=/usr/local/apache/conf.d/vhosts.conf

Then everytime you add an account (for each department), new vhost will be created follow the customized vhost template

13
PHP / Re: 100% CPU usage
« on: January 12, 2018, 04:20:49 AM »
Suggestion:
Suspend that magento account, if you see the server performance gets better, meaning the Magento app did not well coded.
Then try to install a basic wordpress, you will see the difference between apps

14
PHP / Re: PHP Switcher not Switching?
« on: January 12, 2018, 04:16:40 AM »
Have you tried to Install Dependencies?
/admin/index.php?module=php_selector


15
CentOS-WebPanel GUI / Re: How to do so all servers have gzip compression?
« on: January 12, 2018, 04:05:29 AM »
add these lines to your httpd.conf
/usr/local/apache/conf/httpd.conf


Quote
LoadModule deflate_module modules/mod_deflate.so

#set compression level
DeflateCompressionLevel 9
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/opentype

# For Olders Browsers Which Can't Handle Compression
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>

# Cache 480 weeks
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|mp4|mp3|eot|woff|ttf|svg|iefix)$">
    Header set Cache-Control "max-age=290304000, public"
    </FilesMatch>

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Media: images, video, audio
  ExpiresByType image/gif                 "access plus 1 year"
  ExpiresByType image/png                 "access plus 1 year"
  ExpiresByType image/jpg                 "access plus 1 year"
  ExpiresByType image/jpeg                "access plus 1 year"
  ExpiresByType video/ogg                 "access plus 1 year"
  ExpiresByType audio/ogg                 "access plus 1 year"
  ExpiresByType video/mp4                 "access plus 1 year"
  ExpiresByType video/webm                "access plus 1 year"
# Webfonts
  ExpiresByType font/truetype             "access plus 1 year"
  ExpiresByType font/opentype             "access plus 1 year"
  ExpiresByType application/x-font-woff   "access plus 1 year"
  ExpiresByType image/svg+xml             "access plus 1 year"
  ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
# CSS and JavaScript
  ExpiresByType text/css                  "access plus 1 year"
  ExpiresByType application/javascript    "access plus 1 year"
  ExpiresByType text/javascript           "access plus 1 year"
</IfModule>
<IfModule mod_headers.c>
    Header append Cache-Control "public"
</IfModule>

# Disable Folder Files Listing
Options -Indexes
#Prevent acess to php.ini
<FilesMatch "^php5?\.(ini|cgi)$">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</FilesMatch>

explanation:
- mod_deflate.so is disabled by default, you should enable it
- all media files(images, css, js...) will be cached and have a long expiration. no worry, this is based on last modified date of a file and if you replace those images on server, new file will be loaded on client.

Pages: [1] 2 3 ... 7