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

Pages: 1 2 [3] 4 5 6
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
Code: [Select]
/usr/local/cwpsrv/logs after you get this error

32
Reset MySQL password by first stopping all processes using mysql
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
Try update CWP from ssh

Code: [Select]
sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp

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.

36
Assuming you have created a WebDav directory under Apache change permissions for this folder for the user
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 login

Lastly 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
replace your-HOSTNAME with your actual hostname

39
Paste the last contents of this log file
Code: [Select]
/var/lib/mysql/your-HOSTNAME.err
To do this use SSH. open the file using
Code: [Select]
vi /var/lib/mysql/your-HOSTNAME.err
Also do the same for this log -
Code: [Select]
/var/log/cwp_client_login.log

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 to
Code: [Select]
admin/index.php?module=change_hostname and on the change hostname options check all SSL options and click on change hostname.

Check
Code: [Select]
/var/log/cwp/autossl.log afterwards from SSH

You should see something like
Code: [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 of
Code: [Select]
14400
Afterwards check
Code: [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 
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_basedir

2.
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 minimum





43
Have you assigned group ownership of the
Code: [Select]
.htpasswd to the the webdav user

44
FTP / Re: Enabling FTPs or FPTes
« on: June 15, 2021, 08:50:58 AM »
You need to create SSL certificate for TLS - something like
Code: [Select]
/etc/certs/pure-ftpd.pem or whatever you have defined as the existence of your cert in
Code: [Select]
/etc/pure-ftpd/pureftpd.conf
something like
Code: [Select]
CertFile   /etc/certs/pure-ftpd.pem

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

Pages: 1 2 [3] 4 5 6