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

Pages: 1 ... 11 12 [13] 14 15 ... 31
181
How to / Upgrading phpMyAdmin in Running Versions of CWP
« on: August 13, 2018, 11:57:38 AM »
Below is guide to update phpMyAdmin
Code: [Select]
https://blog.bullten.com/upgrading-phpmyadmin-in-new-version-of-cwp/

182
CentOS-WebPanel GUI / Re: How To Change Reverse DNS - PTR Record
« on: August 13, 2018, 06:30:03 AM »
You need to set that from where you purchased your server.

183
How to / Enable Mod_http2 Support for Apache in CWP
« on: August 13, 2018, 05:40:25 AM »
Below is the tutorial to enable Mod_http2 support in Centos Web Panel
Code: [Select]
https://blog.bullten.com/enable-mod_http2-for-apache-in-cwp/

184
Installation / Re: Problem with nameserver set up, please help
« on: August 12, 2018, 05:47:27 PM »
There is no need to change anything in centos web panel. You are using dns configuration of godaddy itself. So any A name cname text record you want to add should be added in godaddy domain panel itself.

185
Installation / Re: Problem with nameserver set up, please help
« on: August 12, 2018, 05:27:38 PM »
Well like I know in godaddy you can only setup nameservers when you have 2 different IP for NS

If you dont have multiple IP's then you can use their default nameservers and then Add A name record to your domain

Host: @
Points to IP Address : IP_ADDRESS_Server
TTL: Default_Provided_By_them

186
CentOS-WebPanel Bugs / [BUG] Nginx + Apache Force HTTPS (Redirect Loop)
« on: August 12, 2018, 05:05:44 PM »
Hello,

If you force https in htaccess when you are using Apache+Nginx as reverse proxy you may end up with redirect loop.

Redirect code .htaccess

Code: [Select]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Using the above code will end up with redirect loop

Its because Vhost of nginx ssl is not passing correct parameter for proxy_pass

Right now what we have

Code: [Select]
proxy_pass http://xxx.xxx.xxx.xxx:8181;
We need to replace http with https and port 8181 with 8443

Code: [Select]
proxy_pass https://xxx.xxx.xxx.xxx:8443;
Restart Nginx

Code: [Select]
service nginx restart

187
CentOS-WebPanel GUI / Re: ports 2082 and 2030 Unable to connect
« on: August 12, 2018, 03:39:29 PM »
try

Code: [Select]
yum reinstall cwpsrv
sh /scripts/cwpsrv_rebuild_user_conf

188
CentOS 6 Problems / Re: 502 Bad Gateway
« on: August 12, 2018, 12:34:58 PM »
The below command will fix issue for you

Code: [Select]
yum install cwp-phpfpm -y
sh /scripts/cwpsrv_rebuild_user_conf

189
Apache / Re: How to check if userdir_module is installed
« on: August 12, 2018, 12:33:16 PM »
There is nothing like userdir.conf file. The above post by administrator was used to show if userdir modules is loaded in your server

If you run teh below command and it shows you "userdir_module (shared)". Then that means it is enabled on your server.

Code: [Select]
[root@cwp7]# httpd -M | grep userdir
userdir_module (shared)



190
PHP / Re: Error with PHP
« on: August 12, 2018, 12:29:06 PM »
What is the path defined here /dir.file.php on line 62

Usually it is /tmp

191
CentOS-WebPanel GUI / Re: ports 2082 and 2030 Unable to connect
« on: August 12, 2018, 12:28:14 PM »
What is output of

Code: [Select]
service cwpsrv status
service cwp-phpfpm status

192
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 05:41:58 AM »
Between you can delete /usr/local/apache/conf.d/modsec2.conf. Its of no use
Code: [Select]
rm -rf /usr/local/apache/conf.d/modsec2.conf

193
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 05:32:22 AM »
In your case its loading from file /usr/local/apache/conf.d/modsec2.conf

You need to run

Code: [Select]
sed -i '/SecServerSignature/d' /usr/local/apache/conf.d/modsec2.conf
service httpd restart

194
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 05:24:39 AM »
What is output of

Code: [Select]
cat /usr/local/apache/conf.d/mod_security.conf
Code: [Select]
tail -f /usr/local/apache/logs/error_log

195
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 05:17:59 AM »
It will work for sure.

Do like this

Code: [Select]
nano /usr/local/apache/conf.d/mod_security.conf
Find
Code: [Select]
SecServerSignature "CentOS WebPanel: Protected by Mod Security"
Delete it and restart apache

Code: [Select]
service httpd restart

Pages: 1 ... 11 12 [13] 14 15 ... 31