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.
31
CentOS-WebPanel GUI / Re: Can't create new user due to packages
« on: June 17, 2021, 12:32:43 AM »
Have you tried to recreate the package? Have you tried to assign the default package if it exists?
Post the last 20 lines from this file
Post the last 20 lines from this file
Code: [Select]
/usr/local/cwpsrv/logs
after you get this error
32
CentOS-WebPanel Bugs / Re: Mysqli connection refused for root user in Cent OS
« on: June 17, 2021, 12:28:32 AM »
Reset MySQL password by first stopping all processes using mysql
Now reset the password with sql query
Flush privileges and restart mysql service
Code: [Select]
killall mysqld
then start mysql removing all permissions Code: [Select]
mysqld_safe --skip-grant-tables
Now reset the password with sql query
Code: [Select]
update user set Password=PASSWORD('your-new-password') where user='root';
Flush privileges and restart mysql service
Code: [Select]
service restart mysql
33
FTP / Re: Enabling FTPs or FPTes
« on: June 16, 2021, 07:41:55 PM »
Set this in
Code: [Select]
vsftpd.conf
Code: [Select]
ssl_enable=YES
# do not allow anonymous users to access ftp
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
# enable tlsv1 encryption
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
# disallow ssl reuse
require_ssl_reuse=NO
ssl_ciphers=HIGH
rsa_cert_file=/etc/vsftpd.pem
rsa_private_key_file=/etc/vsftpd.pem
# port range for passive mode
pasv_max_port=65535
pasv_min_port=64000
34
CentOS-WebPanel Bugs / Re: Mysqli connection refused for root user in Cent OS
« on: June 16, 2021, 07:03:06 PM »35
CentOS Configuration / Re: How to change default user account path
« on: June 16, 2021, 06:59:50 PM »
For CPanel migrations that have multiple subdomains and addon domains or parked domains I recommend (basic and automated) you migrate everything as normal and setup subdomains and dns zones for the subdomains
For me the best way is advanced way:
1. Create a New Account
2. Create necessary subdomains and add domains linked to that account (addon domains)
3. Setup dns zone for these domains and sub-domains
4. rsync all site data and mailboxes
5. Llastly I finish by Fixing Permissions.
For me the best way is advanced way:
1. Create a New Account
2. Create necessary subdomains and add domains linked to that account (addon domains)
3. Setup dns zone for these domains and sub-domains
4. rsync all site data and mailboxes
5. Llastly I finish by Fixing Permissions.
36
CentOS Configuration / Re: Webdav url work on web browser, but webdav client or file explorer on window.
« on: June 16, 2021, 06:39:56 PM »
Assuming you have created a WebDav directory under Apache change permissions for this folder for the user
Next secure the WebDav directory by creating a password file
Replace
Lastly assign group ownership of htpasswd to the
Configure an apache vhost so that the WebDav directory is accessible to the web.
Restart CWP services or just restart Apache and you are good to go.
Code: [Select]
apache
Next secure the WebDav directory by creating a password file
Code: [Select]
sudo htpasswd -c /etc/httpd/.htpasswd myuser
Replace
Code: [Select]
myuser
with the username you prefer for the loginLastly assign group ownership of htpasswd to the
Code: [Select]
apache
user Code: [Select]
sudo chown root:apache /etc/httpd/.htpasswd
Configure an apache vhost so that the WebDav directory is accessible to the web.
Restart CWP services or just restart Apache and you are good to go.
37
CentOS-WebPanel Bugs / Re: Mysqli connection refused for root user in Cent OS
« on: June 16, 2021, 06:21:49 PM »
replace your-HOSTNAME with your actual hostname
39
CentOS-WebPanel Bugs / Re: Mysqli connection refused for root user in Cent OS
« on: June 15, 2021, 02:03:20 PM »40
Information / Re: server ssl doesnt exist
« on: June 15, 2021, 11:25:43 AM »I am not running a dns service on my server. I am using the Linode dns services.
Use this respective docs https://www.linode.com/docs/products/networking/dns-manager/get-started/ to add A record
41
Information / Re: server ssl doesnt exist
« on: June 15, 2021, 10:08:54 AM »Go toCode: [Select]admin/index.php?module=change_hostname
and on the change hostname options check all SSL options and click on change hostname.
CheckCode: [Select]/var/log/cwp/autossl.log
afterwards from SSH
You should see something likeCode: [Select]SSL Failed to install for Hostname
The fix is: add the domain of hostname subdomain to DNS zones - best way is to add it as an account
Then go to DNS Records on CWP and add hostname as A Record with TTL ofCode: [Select]14400
Afterwards checkCode: [Select]/var/log/cwp/autossl.log
from SSH
Delete SSL cert from the respective module and repeat these steps
42
CentOS-WebPanel Bugs / Re: login panel not working.
« on: June 15, 2021, 10:00:53 AM »
Like the error states there is an issue with PHP.
1. First error is
2.
3. SELinux is enabled with
1. First error is
Code: [Select]
PHP failed to open stream
this issue in most cases concerns - https://www.php.net/manual/en/ini.core.php#ini.open-basedir use this FAQ to check if this is the issue - https://wiki.centos-webpanel.com/php-open_basedir2.
Code: [Select]
allow_url_fopen
in your php.ini under the Code: [Select]
module=file_editor&file=/usr/local/php/php.ini
3. SELinux is enabled with
Code: [Select]
SELINUXTYPE=mls
to check if this is the issue. Turn this SELinux off by setting directive Code: [Select]
SELINUX=disabled
or reduce SELINUXTYPE level to minimum43
CentOS Configuration / Re: Webdav url work on web browser, but webdav client or file explorer on window.
« on: June 15, 2021, 09:45:41 AM »
Have you assigned group ownership of the
Code: [Select]
.htpasswd
to the the webdav user
45
Addons / Re: Sitebuilder Unable create ftp user
« on: June 14, 2021, 10:11:20 PM »
What is the output of
Code: [Select]
systemctl status pure-ftpd.service