Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: devrim on February 10, 2018, 07:16:35 PM

Title: ftp opens the wrong directory
Post by: devrim on February 10, 2018, 07:16:35 PM

Hello there
home computer
I made a new installation centos7.
but the domain and ftp do not match.
I created an ftp user.
ftp works, but directory looks like this
ftp directory http: //87.000.000/~site1/
Where is the domain directory hidden?
I deleted index.html with ftp, but it still stops.
I am waiting for your emergency help.
thank you



I am sorry for my bad english
Title: Re: ftp opens the wrong directory
Post by: bullten on February 10, 2018, 07:32:35 PM
What is output of command below.

pure-pw list
Title: Re: ftp opens the wrong directory
Post by: devrim on February 10, 2018, 07:41:17 PM
[root@localhost ~]# pure-pw list
yedi7@7bel.com      /home/yedibel/public_html/./
[root@localhost ~]#
Title: Re: ftp opens the wrong directory
Post by: bullten on February 10, 2018, 07:44:36 PM
Ftp is using right directory.

It works very well.
http://88.247.100.250/~yedibel/
Title: Re: ftp opens the wrong directory
Post by: devrim on February 10, 2018, 07:48:28 PM
yes home computer.
I did not choose nat. what should I do.
I do not know. my ip address is fixed.
Title: Re: ftp opens the wrong directory
Post by: bullten on February 10, 2018, 07:49:57 PM
Ftp is using right directory.

It works very well.
http://88.247.100.250/~yedibel/

7bel.com redirects to Apache directory.
http://7bel.com/webftp_simple/

May I know what is your server hostname?
Title: Re: ftp opens the wrong directory
Post by: devrim on February 10, 2018, 07:51:56 PM
localhost.7bel.com should be
Title: Re: ftp opens the wrong directory
Post by: bullten on February 10, 2018, 07:57:55 PM
1) Should be? what the below command shows?
hostname

2) Try to rebuild apache vhost

https://88.247.100.250:2087/admin/index.php?module=vhost_rebuild

2) Follow this too

http://wiki.centos-webpanel.com/default-page-displayed-for-all-domains

Title: Re: ftp opens the wrong directory
Post by: devrim on February 10, 2018, 08:03:25 PM

how to query hostname
Title: Re: ftp opens the wrong directory
Post by: bullten on February 10, 2018, 08:04:34 PM
in ssh type hostname and press enter.
Title: Re: ftp opens the wrong directory
Post by: devrim on February 10, 2018, 08:15:06 PM

I questioned it like this.
[root @ localhost ~] # nano / etc / sysconfig / network
  GNU nano 2.3.1 File: / etc / sysconfig / network

# Created by anaconda

no other information.
Meanwhile I use PuTTY.
Title: Re: ftp opens the wrong directory
Post by: bullten on February 10, 2018, 08:18:35 PM
Goto https://88.247.100.250:2087/admin/index.php?module=change_hostname

enter
server.7bel.com

restart apache
service httpd restart

check again what is your hostname by triggering the command below.
hostname
Title: Re: ftp opens the wrong directory
Post by: bullten on February 10, 2018, 08:40:58 PM
You are behind nat and issue is being fixed by using private ip and rebuilding apache vhost.