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
Code: [Select]
chown root:pure-ftpd /var/run/
chmod 755 /var/run/pure-ftpd

FTP / Re: Enabling FTPs or FPTes
« on: June 18, 2021, 01:23:32 PM »
post the contents of your pure-ftpd.conf

FTP / Re: Enabling FTPs or FPTes
« on: June 17, 2021, 10:01:43 AM »
No for pureftpd just
Code: [Select]
vi /etc/pure-ftpd/pure-ftpd.conf and add the changes below:

Code: [Select]
# This option accepts three values:
# 0: disable SSL/TLS encryption layer (default).
# 1: accept both cleartext and encrypted sessions.
# 2: refuse connections that don't use the TLS security mechanism,
#    including anonymous sessions.
# Do _not_ uncomment this blindly. Double check that:
# 1) The server has been compiled with TLS support (--with-tls),
# 2) A valid certificate is in place,
# 3) Only compatible clients will log in.
TLS                          2
# Cipher suite for TLS sessions.
# The default suite is secure and setting this property is usually
# only required to *lower* the security to cope with legacy clients.
# Prefix with -C: in order to require valid client certificates.
# If -C: is used, make sure that clients' public keys are present on
# the server.
# TLSCipherSuite               HIGH
CertFile                     /etc/ssl/private/pure-ftpd.pem
CertFileAndKey               "/etc/pure-ftpd.pem" "/etc/pure-ftpd.key"
# Listen only to IPv4 addresses in standalone mode (ie. disable IPv6)
# By default, both IPv4 and IPv6 are enabled.
# IPV4Only                     yes
# Listen only to IPv6 addresses in standalone mode (i.e. disable IPv4)
# By default, both IPv4 and IPv6 are enabled.
# IPV6Only                     yes

The last command is a mysql command open mysql from ssh using command
Code: [Select]
mysql --user=root mysql

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

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

FTP / Re: Enabling FTPs or FPTes
« on: June 16, 2021, 07:41:55 PM »
Set this in
Code: [Select]
Code: [Select]
# do not allow anonymous users to access ftp
# enable tlsv1 encryption
# disallow ssl reuse
# port range for passive mode

Try update CWP from ssh

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

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.

Assuming you have created a WebDav directory under Apache change permissions for this folder for the user
Code: [Select]
Next secure the WebDav directory by creating a password file
Code: [Select]
sudo htpasswd -c /etc/httpd/.htpasswd myuser
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.

replace your-HOSTNAME with your actual hostname

Paste the last contents of this log file
Code: [Select]
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]

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 to add A record

Pages: [1] 2 3 4