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.
1
PHP / Re: Install php 7.2.4 and php-fpm on centos web panel
« on: June 10, 2018, 03:43:04 PM »
Guys, this is important:
# don't
<IfModule mod_proxy.c>
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/
</IfModule>
# do this instead
# Use SetHandler on Apache 2.4 to pass requests to PHP-PFM
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
You can read more detail at this link :
https://ma.ttias.be/apache-2-4-proxypass-for-php-taking-precedence-over-filesfilesmatch-in-htaccess/
I got the issue with Nextcloud, could not login in Sync Client, and the app rejected to upload files (error: Unknown protocol "'", connection closed) , buy doing these steps you can fix the issues
# don't
<IfModule mod_proxy.c>
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/
</IfModule>
# do this instead
# Use SetHandler on Apache 2.4 to pass requests to PHP-PFM
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
You can read more detail at this link :
https://ma.ttias.be/apache-2-4-proxypass-for-php-taking-precedence-over-filesfilesmatch-in-htaccess/
I got the issue with Nextcloud, could not login in Sync Client, and the app rejected to upload files (error: Unknown protocol "'", connection closed) , buy doing these steps you can fix the issues
2
PHP Selector / Re: CWP PHP Selector [CWPpro required]
« on: June 09, 2018, 05:08:19 PM »
It was free for few years ago, starting this year it is commercialized
3
PHP / Re: Install php 7.2.4 and php-fpm on centos web panel
« on: June 09, 2018, 05:06:16 PM »
Thanks for the good information
4
PHP / Re: PHP Version Switcher, CWP PHP Selector - CWP, user, root...
« on: June 09, 2018, 07:04:04 AM »
"dependencies" is needed for the process to rebuild PHP regardless any PHP version. It is the system operation, similar to windows .dll, C+ libraries
5
Migration from other control panels / Re: How to migrate emails from cpanel to CWP
« on: June 09, 2018, 06:55:49 AM »
I give you a better solution, let's try.
What do you need?
-Microsoft Outlook or any email client
-Your email must be an IMAP account
The idea : sync your emails via email client (IMAP account)
- First, dont touch your current email (I call it email email_A@domain.com hosted at your old mail server IP_1)
- Go to CWP, add your domain, create new email account, of course you will have the inbox email_A@domain.com (exactly the same email address, but hosted at your new server IP_2 )
- Now you launch Outlook, add your new email but instead of input your mail.domain.com (mail server address, it might be different base on your configuration), you input your new IP (IP_2)
- drag all emails and folders from email_1 to email_2 (maybe drag 1 email for a test)
- Wait for the email to be synced to new server (actually it just upload)
- Go to roundcube on the new server, verify it
- If everything looks good, you can continue to sync and disconnect your old account in Outlook
What do you need?
-Microsoft Outlook or any email client
-Your email must be an IMAP account
The idea : sync your emails via email client (IMAP account)
- First, dont touch your current email (I call it email email_A@domain.com hosted at your old mail server IP_1)
- Go to CWP, add your domain, create new email account, of course you will have the inbox email_A@domain.com (exactly the same email address, but hosted at your new server IP_2 )
- Now you launch Outlook, add your new email but instead of input your mail.domain.com (mail server address, it might be different base on your configuration), you input your new IP (IP_2)
- drag all emails and folders from email_1 to email_2 (maybe drag 1 email for a test)
- Wait for the email to be synced to new server (actually it just upload)
- Go to roundcube on the new server, verify it
- If everything looks good, you can continue to sync and disconnect your old account in Outlook
6
PHP Selector / Re: not sure opcache for php 7 (selector) is active
« on: June 09, 2018, 06:23:07 AM »
make a .php file, add this function inside:
<?php
phpinfo();
?>
Load it on browser You will see a report which states the status of your Opcache engine.
you can see a preview here : https://prnt.sc/jstyc9
<?php
phpinfo();
?>
Load it on browser You will see a report which states the status of your Opcache engine.
you can see a preview here : https://prnt.sc/jstyc9
7
PHP Selector / Re: How to use php7.2 in terminal?
« on: June 08, 2018, 09:09:54 AM »
Using an alias to change the PHP version, you can read more details here :
https://help.dreamhost.com/hc/en-us/articles/214202148-How-do-I-change-the-PHP-version-my-shell-uses-
Just make sure your path to php is correct
https://help.dreamhost.com/hc/en-us/articles/214202148-How-do-I-change-the-PHP-version-my-shell-uses-
Just make sure your path to php is correct
8
PHP / Re: PHP Version Switcher, CWP PHP Selector - CWP, user, root...
« on: June 08, 2018, 09:03:13 AM »
Sorry I have to ask did you do a simple search before you raise a question, anyway I will try to answer your questions as you are new here.
1. Check permission of this file : /usr/local/cwpsrv/htdocs/resources/admin/modules/php_info.php, it should exist and 644 permission
2. This version 5.6.30 will be changed to the one that you decided to switch
2a. Leave it default , you don't need to change anything unless your PHP app needs additional function (example : imap, mongodb ...)
3. This version 5.6.30 is a main version and described clearly in CWP dashboard, all users have the same php version (unless you install multiple php version)
4. v5.6.30
5. php.ini
6. Yes , but not recommend because you are very new to it
7. Yes , but not recommend because you are very new to it
8. Yes, install dependencies if your need to use multiple php versions. Dependencies are additional required libraries
1. Check permission of this file : /usr/local/cwpsrv/htdocs/resources/admin/modules/php_info.php, it should exist and 644 permission
2. This version 5.6.30 will be changed to the one that you decided to switch
2a. Leave it default , you don't need to change anything unless your PHP app needs additional function (example : imap, mongodb ...)
3. This version 5.6.30 is a main version and described clearly in CWP dashboard, all users have the same php version (unless you install multiple php version)
4. v5.6.30
5. php.ini
6. Yes , but not recommend because you are very new to it
7. Yes , but not recommend because you are very new to it
8. Yes, install dependencies if your need to use multiple php versions. Dependencies are additional required libraries
9
DNS / Re: rDNS and I'm confused
« on: June 08, 2018, 08:49:51 AM »
- Add an A record to your domain, same as your hostname, point it to your server's IP
- Go to your hosting provider dashboard, find rDNS and put your hostname there
- Go to your hosting provider dashboard, find rDNS and put your hostname there
10
DNS / Re: Free DNS services
« on: June 08, 2018, 08:40:26 AM »
Open an account at Namecheap, they provide free DNS manager, good UI to manage your DNS
11
Very simple:
- Add an A record (same as your hostname) to your domain (the one manages your domain, not CWP) , point it to your server's IP
- Also in webhosting panel (from your service provider, put your hostname in rDNS), if you dont see where to change it, you might need to contact your webhosting provider as you can not change it on your end
- Add an A record (same as your hostname) to your domain (the one manages your domain, not CWP) , point it to your server's IP
- Also in webhosting panel (from your service provider, put your hostname in rDNS), if you dont see where to change it, you might need to contact your webhosting provider as you can not change it on your end
12
SSL / Re: SSL problem www and non-www
« on: June 08, 2018, 08:31:00 AM »
You should not put www while you are generating a certificate
make it as an alias
make it as an alias
13
CSF Firewall / Re: [AntiDDOS] vDDoS & CSF on CWP to AntiDDOS, DOS, SYN Flood, HTTP Floods attack
« on: May 23, 2018, 04:16:31 PM »
How to simulate DDOS for a test after installing this method?
14
CentOS Configuration / Re: how can I increase my root available?
« on: May 23, 2018, 04:07:08 PM »
check the mount point.
Probably it is in different disk or block storage
try this command to see disk info:
df -h
you might search Google for more commands and how to mount a disk
Probably it is in different disk or block storage
try this command to see disk info:
df -h
you might search Google for more commands and how to mount a disk
15
Other / Re: nginx/varnish bugs
« on: May 23, 2018, 03:58:20 PM »
Keep in mind when you rebuild apache or change hostname, you need to rebuild vhosts
Otherwise, all your sites (domains or sub domains) will not work
Suggestion:
- Choose your prefer webserver (recommend Nginx + Apache + Varnish)
- Rebuild vhosts
- Restart webserver, better reboot your VPS
If you don't want to receive notification , simply disable it or remove your email from the dashboard. This is not recommended
Otherwise, all your sites (domains or sub domains) will not work
Suggestion:
- Choose your prefer webserver (recommend Nginx + Apache + Varnish)
- Rebuild vhosts
- Restart webserver, better reboot your VPS
If you don't want to receive notification , simply disable it or remove your email from the dashboard. This is not recommended