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 Selector / Re: CWP PHP Selector [CWPpro required]
« on: October 14, 2019, 11:46:51 AM »
Made a tutorial that might help you guys out:
http://forum.centos-webpanel.com/php-selector/(tutorial)-fix-php-fpm-file-permission-denial/
http://forum.centos-webpanel.com/php-selector/(tutorial)-fix-php-fpm-file-permission-denial/
2
PHP Selector / [Tutorial] Fix PHP-FPM file permission denial
« on: October 14, 2019, 11:46:15 AM »
As you might already know PHP-FPM "trial" has ended and now you have to pay to use it.
To continue using PHP/PHP-FPM Selector you need to have CWPpro.
If you have activated it and don't want to keep using it (since you have to pay for it), you have to disable it, otherwise your websites will be down after a couple of time (even if you fix the file permissions that the service requests).
This issue is due to a file permission change on file "/opt/alt/php-fpm72/usr/sbin/php-fpm" by something on the server that is taking down this pay-to-use-service, since you haven't paid to use it, you don't have the right to use it, which is fair enough.
[Proceed bellow at your own risck - this is how I've done it, follow along by your own choice]
Before you doing this, i highly recommend you to backup this folder, since this process will rebuild your vhosts and you might need to fix some configurations later:
/usr/local/apache/conf.d/vhosts
So to disable it, you need to go to the side menu called "WebServer Settings" - "WebServers Domain Conf" and select one of your users (you need to do this to every user you have)
After you select the user, select domains tab, check all your checkboxes you have on all your domains that you have on this user you have selected and then click on "Custom config all selected"
Then select apache->php-cgi. On "Apache Configuration" group options, leave it as default and make sure you select the option to rebuild webservers
Don't forget to do the same to your sub-domains, and domains of all users you have:
Then to test this, connect via SSH and send out these commands:
And take a look if your websites are now working again.
If you have "Internal Server Error" you might need to fix your new vhosts, based on your backup files.
Some other problems might occur, be ready to fix them i just needed to do this.
To continue using PHP/PHP-FPM Selector you need to have CWPpro.
If you have activated it and don't want to keep using it (since you have to pay for it), you have to disable it, otherwise your websites will be down after a couple of time (even if you fix the file permissions that the service requests).
This issue is due to a file permission change on file "/opt/alt/php-fpm72/usr/sbin/php-fpm" by something on the server that is taking down this pay-to-use-service, since you haven't paid to use it, you don't have the right to use it, which is fair enough.
[Proceed bellow at your own risck - this is how I've done it, follow along by your own choice]
Before you doing this, i highly recommend you to backup this folder, since this process will rebuild your vhosts and you might need to fix some configurations later:
/usr/local/apache/conf.d/vhosts
So to disable it, you need to go to the side menu called "WebServer Settings" - "WebServers Domain Conf" and select one of your users (you need to do this to every user you have)
After you select the user, select domains tab, check all your checkboxes you have on all your domains that you have on this user you have selected and then click on "Custom config all selected"
Then select apache->php-cgi. On "Apache Configuration" group options, leave it as default and make sure you select the option to rebuild webservers
Don't forget to do the same to your sub-domains, and domains of all users you have:
Then to test this, connect via SSH and send out these commands:
Code: [Select]
service httpd reload
service httpd restart
service php-fpm72 stop
And take a look if your websites are now working again.
If you have "Internal Server Error" you might need to fix your new vhosts, based on your backup files.
Some other problems might occur, be ready to fix them i just needed to do this.
3
PHP Selector / Re: CWP PHP Selector [CWPpro required]
« on: October 14, 2019, 10:19:48 AM »
If you take a look at /var/log/cwp/webservers.log you will see a lot of entries trying to stop the service, like these:
2019-10-13 11:10:24 PHP-FPM php-fpm72: stop
2019-10-14 02:10:13 PHP-FPM php-fpm72: stop
2019-10-14 03:10:01 PHP-FPM php-fpm72: stop
2019-10-14 07:10:02 PHP-FPM php-fpm72: stop
Something is forcing this service to stop and to change "/opt/alt/php-fpm72/usr/sbin/php-fpm" file permissions as well.
How can i disable "PHP-FPM Selector" to get back to apache only? Is there a way from the panel?
2019-10-13 11:10:24 PHP-FPM php-fpm72: stop
2019-10-14 02:10:13 PHP-FPM php-fpm72: stop
2019-10-14 03:10:01 PHP-FPM php-fpm72: stop
2019-10-14 07:10:02 PHP-FPM php-fpm72: stop
Something is forcing this service to stop and to change "/opt/alt/php-fpm72/usr/sbin/php-fpm" file permissions as well.
How can i disable "PHP-FPM Selector" to get back to apache only? Is there a way from the panel?
4
Apache / Re: Internal Server Error
« on: March 17, 2019, 02:48:29 AM »
Go to "CWP->Log Viewer" on the panel, select "error log" and then the domain that is causing you trouble, if you see something like this:
Then do this:
Go to each single vHost file contained in "/usr/local/apache/conf.d/vhosts" and allow "FollowSymLinks", by adding it to the "AllowOverride" section, like in the following example:
<Directory "/home/-------------/public_html/websites">
Options -IndexesFollowSymLinks <-delete here
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks <-add here
</Directory>
Restart apache
And it will work
But try at first to do this to a domain that is not working for you, if it does the job do the same for all of them
Code: [Select]
bla bla bla date, time whatever (.....) public_html/websites/.htaccess: Option FollowSymlinks not allowed here
Then do this:
Go to each single vHost file contained in "/usr/local/apache/conf.d/vhosts" and allow "FollowSymLinks", by adding it to the "AllowOverride" section, like in the following example:
<Directory "/home/-------------/public_html/websites">
Options -Indexes
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks <-add here
</Directory>
Restart apache
And it will work
But try at first to do this to a domain that is not working for you, if it does the job do the same for all of them
5
SSL / Re: SSL certicate on add on domain error
« on: April 25, 2018, 11:01:54 PM »
You can also edit your "/usr/local/apache/conf.d/vhosts-ssl.conf" and on the first lines you'll find this:
Here where you have your server IP, for example "1.1.1.1"
<VirtualHost 1.1.1.1:443>
You just need to replace it by *, like this:
<VirtualHost *:443>
And it will work
Here where you have your server IP, for example "1.1.1.1"
<VirtualHost 1.1.1.1:443>
You just need to replace it by *, like this:
<VirtualHost *:443>
And it will work
6
Information / Re: CWP files?
« on: January 02, 2018, 01:04:03 AM »
CWP "website" files that are responsible for the webpanel are encrypted because this is a close project.
So you'll not be able to see what's from behind.
So you'll not be able to see what's from behind.
7
Information / Re: Executing an immediate backup?
« on: January 02, 2018, 01:02:32 AM »
Newer versions, "force update" command line is:
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
8
Installation / Re: [Tutorial] How to configure your server
« on: July 07, 2017, 09:10:25 PM »How to do it ?
1. Add second port for SMTP for example 2525 ?
2. Make CWP stay with domain when login. I donot want it will redirect to IP:PORT
1)
Some services like httpd allows you to add multiple ports like here:
https://www.cyberciti.biz/faq/fedora-rhel-centos-configure-httpd-listen-multipleports/
Not quite sure about SMTP
2)
That is already happening at least with my server, maybe you have configured something wrong, or maybe i have configured something right?
9
Installation / Re: [Tutorial] How to configure your server
« on: July 07, 2017, 09:00:48 PM »Bandwidth: 9999999
what is the meaning of bandwidth here? it is life time bandwidth quota for a user like disk space or what and how to monitoring / track its usage?
Bandwidth is in fact the amount of data the user is able to download\upload, but i'm not quite sure if this counting it daily, weekly or monthly, i just add it to the maximum so i don't have any issues latter on. But this doesn't mean you will need to do the same, maybe you need to limit the bandwidth for some user.
10
Installation / Re: [Tutorial] How to configure your server
« on: July 07, 2017, 08:58:43 PM »I don't understand.
If I setup my server as hostname srv.domain.com once setup do I also need to add the sub domain srv in the domains section of the admin panel ?
No you just need to create that on your DNS server, you don't need to create an virtual host since that is not going to be used to any website, well only if you need to, but i clear don't see any reason.
11
Backup / Re: backup issue
« on: August 30, 2016, 09:24:11 AM »
Those are just undefined system (PHP) variables, it doesn't compromise the whole process, don't worry
12
New Modules / Re: [module] Clear memory ram
« on: June 23, 2016, 02:31:02 PM »
At this moment, CWP already has this feature on it
13
New Modules / Re: [module] Favorites top bar
« on: June 20, 2016, 10:19:19 PM »Olá,
Como seria para a tela de cliente?
Att..
Nunca programei para "cliente", apesar de existir a pasta tal como na pasta admin não sei se é possivel acrescentar, mas se for, deve funcionar da mesma forma uma vez q a base é a mesma.
14
New Modules / Re: [module] Speedtest your server in 30 seconds
« on: April 13, 2016, 09:01:29 PM »
Thanks mate, well done
15
E-Mail / Re: Android Mail settings
« on: April 10, 2016, 10:51:01 PM »you need to cek DNS server, make sure you have "A" record for mail.domain.com
Also take a look if you have an mx record as well