Posts: 1,386
Threads: 252
Joined: Feb 2025
Reputation:
0
ehcp uses and integrated with vsftpd,
so, if you remove vsftpd, you cannot use some functions of ehcp, mostly domain files etc.
So, you should not remove vsftpd if you want to use ehcp.
To solve now:
if you have no or few domains , then just reinstall ehcp
if you have many domains,
* then, backup all, then reinstall ehcp, restore all domains
* or: manually install vsftpd and fix as programmed in install_lib.php
see you,
> I have a problem, I just removed vsftpd and installed pureftpd and im
> hosting with ehcp but its not working anymore and i cannot create users can
> u please advice me or do i have to remove ehcp completely and install again?
>
> Thanks,
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Posts: 0
Threads: 22
Joined: Feb 2025
Reputation:
0
My Vsftpd is will working mostly, but for some reason i cant login as root via SSH anymore, my ftp clint says software is corrupted file,
if i reinstall Vsftpd, will that mess up any EHCP settings for user FTP accounts? or is their somthing else i can do to fix this problem?
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Posts: 1,386
Threads: 252
Joined: Feb 2025
Reputation:
0
while insalling, if it asks for replacing config files, then do not replace vsftpd config files.
if you do like this, it will not breadk ftp accounts in ehcp.
even if it is breaked, it is not hard to fix it.
Restored from old drupal forum, for user uid:3160 username:budgierless
You may reset your password to access your new account here.
Posts: 0
Threads: 22
Joined: Feb 2025
Reputation:
0
oops, i pressed the wrong button and files got replaced, how to i fix this to setup EHCP configs again?
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Posts: 1,386
Threads: 252
Joined: Feb 2025
Reputation:
0
/etc/pam.d/vsftpd
fill this file with:
<code>auth required pam_mysql.so user=ehcp passwd=yourpass host=localhost db=ehcp table=ftpaccounts usercolumn=ftpusername passwdcolumn=password crypt=2
account required pam_mysql.so user=ehcp passwd=yourpass host=localhost db=ehcp table=ftpaccounts usercolumn=ftpusername passwdcolumn=password crypt=2
then,
/etc/vsftpd.conf
fill this file with: (replace yourpass)
<code>listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=vsftpd
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
guest_enable=YES
guest_username=vsftpd
local_root=/var/www/vhosts/\$USER
user_sub_token=\$USER
virtual_use_local_privs=YES
user_config_dir=/etc/vsftpd_user_conf
local_max_rate=2000000 # bytes per sec, 2Mbytes per sec
max_clients=50 # to avoid DOS attack, if you have a huge server, increase this..
then,
on server console:
/etc/init.d/vsftpd restart
thats it.
for developers:
these are done in install_lib.php,
function vsftpd_configuration($params){
Restored from old drupal forum, for user uid:3160 username:budgierless
You may reset your password to access your new account here.
Posts: 0
Threads: 22
Joined: Feb 2025
Reputation:
0
Thanks for info, so this will fix the SSH? (login as root)
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Posts: 1,386
Threads: 252
Joined: Feb 2025
Reputation:
0
this is related to ftp, vsftp,
not ssh.
if you cannot login using ssh, then, there is some other problem.
describe your ssh problem in more detail.
Restored from old drupal forum, for user uid:3160 username:budgierless
You may reset your password to access your new account here.
Posts: 0
Threads: 22
Joined: Feb 2025
Reputation:
0
i use filzilla, i connect to other FTP acounts ok, and the SSH was working before but now i get this message everytime i try to connect via SSH,
Error: Network error: Software caused connection abort
Error: Could not connect to server
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Posts: 0
Threads: 6
Joined: Feb 2025
Reputation:
0
use for win: winscp or putty
both are easy to find thru google
Restored from old drupal forum, for user uid:3160 username:budgierless
You may reset your password to access your new account here.
Posts: 0
Threads: 22
Joined: Feb 2025
Reputation:
0
i installed WinSCP but i get the same message, so im guesing the problem is on the server which proram is it that you think is making this happen?
Restored from old drupal forum, for user uid:133 username:Cool
You may reset your password to access your new account here.
|