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

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


3
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





4
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

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

6
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

7
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

8
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

9
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


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

11
CentOS-WebPanel GUI / Re: what is purpose of Add a New Domain function
« on: January 12, 2018, 04:02:31 AM »
One user can have many domains and those domain's public_html should be inside the username folder
example a user named john, he has  3 domains, those public_html folders should under a folder named john/domain1
So that when a user login using his SFTP, he is restricted to access other folders which are belong to other users


12
CentOS 7 Problems / Re: Can't Install on Dedicated Server
« on: January 12, 2018, 03:58:25 AM »
I have not failed on any fresh installation on CWP, maybe you should follow these steps:
1. Install latest 64 bits Centos 7
2. yum update -y
3. reboot
4. Run these commands
cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest
sh cwp-latest

Note: don't change hostname before installing CWP, change it after you finish the setup process (change hostname on browser)

13
CentOS 7 Problems / Re: Centos Web Panel nginx problem
« on: January 12, 2018, 03:51:06 AM »
Try to rebuild it
Apache settings > Select Webservers

Then choose the third option
Apache & Nginx Reverse Proxy
HTTP: Nginx (80) --> Apache (8181)
HTTPS: Nginx (443) --> Apache (8181)

14
CentOS 7 Problems / Re: SSL Problem
« on: January 12, 2018, 03:47:24 AM »
You don't actually need to purchase a certificate for your CWP.
1. Just simply change your hostname (Server settings>Change hostname)
2. Make sure your hostname in CWP must be matched with your actual hostname of your server (to verify , login SSH and type hostname), or you can do simple check:
nano /etc/hosts
3. reboot

To access your secured CWP:  https://YOUR_SERVER_IP:2013

15
MySQL / Re: Nothing showing in MySQL Manager
« on: January 11, 2018, 11:01:45 AM »
Sounds like you are using an outdated CWP, maybe try to install centos 7 and use latest CWP

Pages: [1] 2 3 ... 7