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.
16
CentOS-WebPanel Bugs / Re: "TERM environment variable not set" I got this massage on email.
« on: February 28, 2018, 05:18:02 PM »
@angelbro & @zakrpa
Don't mention it, you are welcome!
Don't mention it, you are welcome!
17
CentOS-WebPanel Bugs / Re: "TERM environment variable not set" I got this massage on email.
« on: February 25, 2018, 04:28:01 AM »
@zakrpa
you have 2 more problems!
1. You need to fix "/usr/local/cwp/php71/etc/php-fpm.d/users.conf" at line 1.
don't know what is wrong there.
OR
Do you have a user account named "users" ?
If yes … delete him from CWP.
And second you need to to fix ERROR 1045
1. reset you mysql root passwort
to do that, execute:
2. copy the new password
and make sure it is saved under ~/.my.cnf AND /usr/local/cwpsrv/var/services/pma/config.inc.php
Then you need to do this > https://www.ostraining.com/blog/coding/error-1045-phpmyadmin/
with your new password.
Maybe you have to fix ERROR 1045 before you can delete a user account (step 1).
Enjoy!
you have 2 more problems!
1. You need to fix "/usr/local/cwp/php71/etc/php-fpm.d/users.conf" at line 1.
don't know what is wrong there.
OR
Do you have a user account named "users" ?
If yes … delete him from CWP.
And second you need to to fix ERROR 1045
1. reset you mysql root passwort
to do that, execute:
Code: [Select]
# /scripts/mysql_pwd_reset
2. copy the new password
and make sure it is saved under ~/.my.cnf AND /usr/local/cwpsrv/var/services/pma/config.inc.php
Then you need to do this > https://www.ostraining.com/blog/coding/error-1045-phpmyadmin/
with your new password.
Maybe you have to fix ERROR 1045 before you can delete a user account (step 1).
Enjoy!
18
CentOS-WebPanel Bugs / Re: "TERM environment variable not set" I got this massage on email.
« on: February 25, 2018, 03:52:31 AM »
@angelbro
it means that the variable TERM is not set for the whole environment, but it is available locally for root user.
To fix this we need to make the variable globally through 'export'.
1. connect to your server via SSH as root
2. Find out your TERM value
on the terminal execute
compare the output with
3. export the variable
Now you just could do
so we need to put this into ~/.bashrc
If you use ">" it will replace everything inside the file!
From now on - everytime you login in as root, the .bashrc script will say "make TERM=xterm-256color a public environment variable".
Alternative you could also put "export TERM=xterm-256color" OR "export TERM=dumb" into the cronjob (who sends you the emails) under: "/etc/cron.daily/cwp" to automate it if you like.
Probably good option if you don't login often as root very often.
4. finally: reload/execute .bashrc
I don't know why this happens. This should be easy peasy for the CWP creators.
ENJOY!
Source: https://linuxconfig.org/term-environment-variable-not-set-solution
Source: https://github.com/dockerfile/mariadb/issues/3
it means that the variable TERM is not set for the whole environment, but it is available locally for root user.
To fix this we need to make the variable globally through 'export'.
1. connect to your server via SSH as root
2. Find out your TERM value
on the terminal execute
Code: [Select]
# echo $TERM
my result for e.g. isCode: [Select]
xterm-256color
if yours is "dumb" then use "dump"compare the output with
Code: [Select]
# printenv TERM
it probably differs. either way proceed with the following.3. export the variable
Now you just could do
Code: [Select]
# export TERM=xterm-256color
but after a server reboot it would be forgotten.so we need to put this into ~/.bashrc
Code: [Select]
# echo "export TERM=xterm-256color" >> ~/.bashrc
orCode: [Select]
# echo "export TERM=dumb" >> ~/.bashrc
IMPORTANT: use ">>" it means append. If you use ">" it will replace everything inside the file!
From now on - everytime you login in as root, the .bashrc script will say "make TERM=xterm-256color a public environment variable".
Alternative you could also put "export TERM=xterm-256color" OR "export TERM=dumb" into the cronjob (who sends you the emails) under: "/etc/cron.daily/cwp" to automate it if you like.
Probably good option if you don't login often as root very often.
4. finally: reload/execute .bashrc
Code: [Select]
# source ~/.bashrc
it's the same as logout and login again.I don't know why this happens. This should be easy peasy for the CWP creators.
ENJOY!
Source: https://linuxconfig.org/term-environment-variable-not-set-solution
Source: https://github.com/dockerfile/mariadb/issues/3
19
Information / Re: CWP to CWP migration tool
« on: February 12, 2018, 10:53:49 AM »
@devnull
Thank you for the heads up!
Thank you for the heads up!
20
Information / Re: CWP to CWP migration tool
« on: February 11, 2018, 01:59:05 PM »
I am missing it, too!
Ok, the URL is: index.php?module=transcwp2
But where is the menu button?
I can't find it anywhere.
Ok, the URL is: index.php?module=transcwp2
But where is the menu button?
I can't find it anywhere.
21
CentOS 7 Problems / Re: module chkconfig empty on CentOS 7
« on: February 11, 2018, 01:03:32 PM »
I just found index.php?module=startup_services and index.php?module=systemd_servicesMonitor
under Services Config.
And there you have it!
under Services Config.
And there you have it!
22
Suggestions / Custom Menu & Notepad please
« on: February 07, 2018, 04:00:09 PM »
Hello,
how about the possibility to create a custom menu in GUI?
Maybe as a drop-down at the top navigation bar (header > navbar) next to the Terminal button.
For example»
Also a way to save notes would be nice.
If I use the file_editor module and edit the URL for e.g.:
index.php?module=file_editor&file=/root/notes.txt
this would do …, but I don't want to edit the URL everytime.
So therefore a custom menu or maybe a module/button just for notes.
Thanks!
how about the possibility to create a custom menu in GUI?
Maybe as a drop-down at the top navigation bar (header > navbar) next to the Terminal button.
For example»
Also a way to save notes would be nice.
If I use the file_editor module and edit the URL for e.g.:
index.php?module=file_editor&file=/root/notes.txt
this would do …, but I don't want to edit the URL everytime.
So therefore a custom menu or maybe a module/button just for notes.
Thanks!
23
CentOS 7 Problems / Re: module chkconfig empty on CentOS 7
« on: February 07, 2018, 03:57:38 PM »
Yes, it's because Centos 7 uses systemd and not chkconfig (anymore).
I'd like to see systemd integrated into CWP7, same as chkconfig on CWP6!
I'd like to see systemd integrated into CWP7, same as chkconfig on CWP6!
24
CentOS 7 Problems / module chkconfig empty on CentOS 7
« on: February 07, 2018, 12:13:39 PM »
Hi,
I've switched from CWP6 to CWP7pro and I am missing the chkconfig module.
To be more precisely the index.php?module=chkconfig is almost empty!
Screenshot >
Now, I am aware the CentOS 7 uses systemctl instead of chkconfig to configure system services, but didn't you consider this building CWP7?
Could you please fix this!?
Thank you.
I've switched from CWP6 to CWP7pro and I am missing the chkconfig module.
To be more precisely the index.php?module=chkconfig is almost empty!
Screenshot >
Now, I am aware the CentOS 7 uses systemctl instead of chkconfig to configure system services, but didn't you consider this building CWP7?
Could you please fix this!?
Thank you.
25
Suggestions / Re: goaccess - Fast web log analyzer
« on: February 07, 2018, 11:52:09 AM »
YES - Please!
That would be cool!
That would be cool!
26
CentOS-WebPanel Bugs / Popup text says 'allow' under "add blacklist entry"
« on: February 07, 2018, 11:49:13 AM »
I am running CWPpro version: 0.9.8.448
If i want to add an entry to the blacklist under Firewall manager ("index.php?module=firewall"),
the popup window says "Allow"
Screenshot >
Probably a copy & paste error
If i want to add an entry to the blacklist under Firewall manager ("index.php?module=firewall"),
the popup window says "Allow"
Screenshot >
Probably a copy & paste error
27
CentOS-WebPanel Bugs / Themes and Languages module totally messed up!
« on: February 07, 2018, 11:35:20 AM »
Hi,
I am running CWPpro version: 0.9.8.448 and the Themes and Languages plugin ("index.php?module=themes_lang") is totally messed up!
As far as I can tell it doesn't do anything an it looks like this (3 images) >>
It's a shame, I would love to have a dark theme!
I am running CWPpro version: 0.9.8.448 and the Themes and Languages plugin ("index.php?module=themes_lang") is totally messed up!
As far as I can tell it doesn't do anything an it looks like this (3 images) >>
It's a shame, I would love to have a dark theme!
28
How to / Re: How to Enable HTTP/2 on CWP7
« on: February 05, 2018, 01:03:18 PM »
If ngninx test (/usr/sbin/nginx -t) gives you »
Only 1 _ssl.conf (vhost) is allowd to have »
server {
listen 12.34.56.78:443 ssl http2 default_server;
…
}
Remove either all or remove all except 1 "default_server" inside your-main-domain.com_ssl.conf
Good luck.
Code: [Select]
nginx: [emerg] a duplicate default server for 12.34.56.78:443 in /etc/nginx/conf.d/your-addon-domain.com_ssl.conf:4
nginx: configuration file /etc/nginx/nginx.conf test failed
as an error, it's because you have 2 or more _ssl.conf with "default_server" under /etc/nginx/conf.d/Only 1 _ssl.conf (vhost) is allowd to have »
server {
listen 12.34.56.78:443 ssl http2 default_server;
…
}
Remove either all or remove all except 1 "default_server" inside your-main-domain.com_ssl.conf
Good luck.
29
How to / Re: How to install Cloudflare module on Centos 7 Apache 2.4
« on: February 01, 2018, 10:21:04 AM »
Perfect.
Thank you!
Don't forget to remove the temporary/cloned directory afterwards:
Thank you!
Don't forget to remove the temporary/cloned directory afterwards:
Code: [Select]
cd ..
rm -rf mod_cloudflare
30
How to / How to secure phpMyAdmin under CWP7
« on: January 27, 2018, 01:27:20 PM »
1. Open the PMA config file with your prefered editor
/usr/local/cwpsrv/var/services/pma/config.inc.php
2. add the following lines at the bottom
3. replace the placeholders with your IP's
YOUR_SERVER_ADDRESS
YOUR_IP_ADDRESS
4. save, close and restart Apache
5. done.
You can test the setting if you comment out the line: 'allow root from YOUR_IP_ADDRESS/32',
and then try to login as root from your PC, or (leave it and) try to login from another IP as root.
You should then see a red message box saying: "Acces denied"
If your local IP address is dynamic, I would NOT recommend this setting, otherwise you have to change YOUR_IP_ADDRESS inside config.inc.php every now and then.
All the best,
Ben
Source: https://stackoverflow.com/questions/2631269/how-to-secure-phpmyadmin
/usr/local/cwpsrv/var/services/pma/config.inc.php
2. add the following lines at the bottom
Code: [Select]
$cfg['ForceSSL'] = true;
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
// deny everyone by default
'deny % from all',
// allow all users from the local system
'allow % from localhost',
'allow % from 127.0.0.1',
'allow % from ::1',
// allow all users from the server IP (commented out)
'allow % from YOUR_SERVER_ADDRESS.',
// allow user root from local system
'allow root from localhost',
'allow root from 127.0.0.1',
'allow root from ::1',
// allow user root from local network/pc
'allow root from YOUR_IP_ADDRESS/32',
// add more usernames and their IP (or IP ranges) here -
);
3. replace the placeholders with your IP's
YOUR_SERVER_ADDRESS
YOUR_IP_ADDRESS
4. save, close and restart Apache
Code: [Select]
systemctl restart httpd
5. done.
You can test the setting if you comment out the line: 'allow root from YOUR_IP_ADDRESS/32',
and then try to login as root from your PC, or (leave it and) try to login from another IP as root.
You should then see a red message box saying: "Acces denied"
If your local IP address is dynamic, I would NOT recommend this setting, otherwise you have to change YOUR_IP_ADDRESS inside config.inc.php every now and then.
All the best,
Ben
Source: https://stackoverflow.com/questions/2631269/how-to-secure-phpmyadmin