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

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.
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?

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 to cwp7

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?

removed immutable tag, worked fine now

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

unzip -o
rm -f

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

Any ideas?

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

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 for both ip addresses (for old and new server)?

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?

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

PHP Selector / Re: PHP-FPM Selector php 5.6 issue
« on: October 24, 2020, 09:33:23 AM »
Installed php5.5 works fine, 5.6 not starting

PHP Selector / PHP-FPM Selector php 5.6 issue
« on: October 24, 2020, 08:27:05 AM »
Some of websites are using old php 5.6

Code: [Select]
Starting php-fpm [24-Oct-2020 11:19:52] ERROR: An another FPM instance seems to already listen on /opt/alt/php-fpm56/usr/var/sockets/cwpsvc.sock
[24-Oct-2020 11:19:52] ERROR: FPM initialization failed

And php error in log :
Code: [Select]
PHP Fatal error:  Call to undefined function mysql_connect() in ...
Any suggestions? It worked before well and stopped after server reboot..

SSL / Re: Validation disabled for letsencrypt V1 API
« on: September 09, 2020, 08:31:02 AM »
didn't helped..

For centos 6 use

unzip -o
rm -f

Pages: [1] 2