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

Pages: [1] 2
1
CentOS 8 Problems / Re: CWP + ALmalinux 8 + updated Mariadb 11.4.5
« on: April 01, 2025, 09:21:03 AM »
Code: [Select]
ln -s /usr/bin/mariadb /usr/bin/mysql
ln -s /usr/bin/mariadb-check /usr/bin/mysqlcheck

That hepled

2
CentOS 8 Problems / CWP + ALmalinux 8 + updated Mariadb 11.4.5
« on: April 01, 2025, 09:14:59 AM »
1. Is says CWP7pro. while i have Almalinux 8, is that okay?
2. MySQL bad configuration detected, check from the console by using mysql command !!!
[root@srv4 scripts]# /scripts/checkdb
/scripts/checkdb: line 11: mysql: command not found

Updated mariadb has no mysql executable anymore, make symlink?

3
MySQL / Re: MySQL - BAD CONFIGURATION DETECTED
« on: April 01, 2025, 01:12:12 AM »
Oh shit, here we go again:

MySQL bad configuration detected, check from the console by using mysql command !!!

Code: [Select]
#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# include *.cnf from the config directory
#
!includedir /etc/my.cnf.d

server.cnf
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#

# this is read by the standalone daemon and embedded servers
[server]

# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]

# This group is read by both MariaDB and MySQL servers
[mysqld]

#
# * Galera-related settings
#
[galera]
# Mandatory settings
#wsrep_on=ON
#wsrep_provider=
#wsrep_cluster_address=
#binlog_format=row
#default_storage_engine=InnoDB
#innodb_autoinc_lock_mode=2
#
# Allow server to accept connections on all interfaces.
#
#bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
#innodb_flush_log_at_trx_commit=0

# this is only for embedded server
[embedded]

# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]

# This group is only read by MariaDB-10.11 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.11]
Checked all other files, all of them are with empty sections, so everything by default

Version is:
mariadb from 11.4.5-MariaDB, client 15.2 for Linux (x86_64) using  EditLine wrapper

4
Installation / Rocky Linux 9
« on: June 13, 2023, 11:11:38 AM »
Does it works in Rocky Linux 9? Or i should reinstall Rocky Linux 8, or what's the best OS for CWP at the current moment?

Code: [Select]
#############################################
Please wait... installing web server files...
#############################################

Last metadata expiration check: 0:00:16 ago on Tue 13 Jun 2023 02:08:20 PM EEST.
Error:
 Problem 1: cannot install the best candidate for the job
  - nothing provides libcrypto.so.10()(64bit) needed by apr-util-1.6.0-1.x86_64
  - nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by apr-util-1.6.0-1.x86_64
  - nothing provides libssl.so.10()(64bit) needed by apr-util-1.6.0-1.x86_64
 Problem 2: cannot install the best candidate for the job
  - nothing provides libcrypto.so.10()(64bit) needed by cwp-httpd-2.4.56-1.x86_64
  - nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by cwp-httpd-2.4.56-1.x86_64
  - nothing provides libssl.so.10()(64bit) needed by cwp-httpd-2.4.56-1.x86_64
  - nothing provides libssl.so.10(libssl.so.10)(64bit) needed by cwp-httpd-2.4.56-1.x86_64
  - nothing provides libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) needed by cwp-httpd-2.4.56-1.x86_64
  - nothing provides libcrypto.so.10(OPENSSL_1.0.2)(64bit) needed by cwp-httpd-2.4.56-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Last metadata expiration check: 0:00:17 ago on Tue 13 Jun 2023 02:08:20 PM EEST.
Package cwp-suphp-0.7.2-3.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Compiler requires 512 MB RAM + SWAP
Installation FAILED at httpd
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   899  100   899    0     0   2015      0 --:--:-- --:--:-- --:--:--  2011
sh: line 36: mysql: command not found
sh: line 46: /usr/local/bin/php: No such file or directory
grep: /etc/init.d/httpd: No such file or directory
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
 webmaster@error-reporting.control-webpanel.com to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
Please contact CWP support about this issue and include the last few lines from the error:
http://centos-webpanel.com/contact

Used command to install:
Code: [Select]
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el8-latest
sh cwp-el8-latest

5
CentOS 7 Problems / Re: Migration CWP -> CWP doesn't work...
« on: March 06, 2023, 07:41:50 PM »
Figured out, i had to add IP to API key

6
CentOS 7 Problems / Re: Migration CWP -> CWP doesn't work...
« on: March 06, 2023, 07:30:13 PM »
For a successful CWP -> CWP Migration, you have to stand on your head, pat your belly, and rub your feet at the same time in order to make it work. But actually, I just had the opportunity to do a CWP -> CWP migration, so here was my solution to the various unhelpful errors (such as for API TOKEN):
Disable the firewall (CSF & LDF) on both servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In
Code: [Select]
/etc/ssh/sshd_config set:
Code: [Select]
PermitRootLogin yes
StrictModes no
Restart sshd:
Code: [Select]
service sshd restartOn the source server, set up the API key (CWP Settings > API Manager) for CWP Migration using the default CWP template.
On the receiving server, use the interface in User Accounts > CWP->CWP Migration.
After successfully migrating the accounts, revert all changes to your SSH configuration, restart the ssh daemon, reset the r00t passphrases to strong ones, and re-enable the firewalls.
Same issue, maybe i need to buy CWP Pro for second server?

8
CentOS 7 Problems / Migration CWP -> CWP doesn't work...
« on: March 05, 2023, 07:49:16 PM »
I'm receving error thap api key doesn't have something enabled (used CWP-CWP button to enable needed permissions) but that failed. so i decided to enable everything, but unfortunatelly that didn't worked also...


any ideas?

Migrating from cwp6.pro to cwp7

9
CentOS-WebPanel Bugs / File upload limit
« on: March 02, 2023, 09:10:38 AM »
Upload is limited to 128Mb

Code: [Select]
sh /scripts/php_big_file_upload 512 all
New Configuration:
---------------------
upload_max_filesize = 512M
post_max_size = 517M
memory_limit = 536M
max_input_time = 300
max_execution_time = 300
---------------------
Editing File: /opt/alt/php74/usr/php/php.ini
Editing File: /opt/alt/php-fpm56/usr/php/php.ini
Editing File: /opt/alt/php-fpm74/usr/php/php.ini
Editing File: /usr/local/php/php.ini


Editing File: /usr/local/cwp/php71/php.ini
Editing File: /usr/local/cwpsrv/conf/cwpsrv.conf
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart cwpsrv-phpfpm.service

Editing File: /etc/nginx/nginx.conf
Redirecting to /bin/systemctl restart nginx.service

Editing File: /usr/local/apache/conf/httpd.conf
Redirecting to /bin/systemctl restart httpd.service

Trying to upload 129MB:

Code: [Select]
Request Entity Too Large
The requested resource does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

Where also limit can be?

10
removed immutable tag, worked fine now

11
Well known problem, so i wan't to update files manually:
Code: [Select]
cd /usr/local/cwpsrv/htdocs

wget dl1.centos-webpanel.com/files/cwp/cwp2-0.9.8.945.zip
unzip -o cwp2-0.9.8.945.zip
rm -f cwp2-0.9.8.945.zip

But i have permission error...
Code: [Select]
[root@server]# rm -f /usr/local/cwpsrv/htdocs/admin/index.php
rm: cannot remove `/usr/local/cwpsrv/htdocs/admin/index.php': Operation not permitted
o_O

Any ideas?

12
CentOS 7 Problems / CWP is not starting 500 error
« on: July 21, 2022, 11:44:05 AM »
Code: [Select]
a[root@server scripts]# ./update_cwp
PHP Fatal error:
The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
 in Unknown on line 0

CWP is paid (PRO)

Centos 6

13
I'm moving my website to another server and i don't want to have downtime while updating certificate.
Can i generate Letsencrypt certificate for domain example.com for both ip addresses (for old and new server)?

14
Backup / How to restore website.tar.gz?
« on: June 28, 2021, 10:54:13 PM »
How to restore created before backup of user?
I have website.tar.gz from old server (it was reinstalled), how can i restore it?

15
PHP Selector / Re: PHP-FPM Selector php 5.6 issue
« on: October 26, 2020, 01:12:24 PM »
did you tried restarting the server ?
yes, after whole server restart is stopped to work

Pages: [1] 2