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

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

4
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

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

6
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

7
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

8
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

9
Try update CWP from ssh

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

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

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


12
replace your-HOSTNAME with your actual hostname

14
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

15
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

Pages: [1] 2 3 4