Author Topic: ftp opens the wrong directory  (Read 10538 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
ftp opens the wrong directory
« 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

Offline
***
Re: ftp opens the wrong directory
« Reply #1 on: February 10, 2018, 07:32:35 PM »
What is output of command below.

pure-pw list
« Last Edit: February 10, 2018, 07:39:43 PM by bullten »

Offline
*
Re: ftp opens the wrong directory
« Reply #2 on: February 10, 2018, 07:41:17 PM »
[root@localhost ~]# pure-pw list
yedi7@7bel.com      /home/yedibel/public_html/./
[root@localhost ~]#

Offline
***
Re: ftp opens the wrong directory
« Reply #3 on: February 10, 2018, 07:44:36 PM »
Ftp is using right directory.

It works very well.
http://88.247.100.250/~yedibel/
« Last Edit: February 10, 2018, 07:47:25 PM by bullten »

Offline
*
Re: ftp opens the wrong directory
« Reply #4 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.

Offline
***
Re: ftp opens the wrong directory
« Reply #5 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?

Offline
*
Re: ftp opens the wrong directory
« Reply #6 on: February 10, 2018, 07:51:56 PM »
localhost.7bel.com should be

Offline
***
Re: ftp opens the wrong directory
« Reply #7 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


Offline
*
Re: ftp opens the wrong directory
« Reply #8 on: February 10, 2018, 08:03:25 PM »

how to query hostname

Offline
***
Re: ftp opens the wrong directory
« Reply #9 on: February 10, 2018, 08:04:34 PM »
in ssh type hostname and press enter.

Offline
*
Re: ftp opens the wrong directory
« Reply #10 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.

Offline
***
Re: ftp opens the wrong directory
« Reply #11 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
« Last Edit: February 10, 2018, 08:24:26 PM by bullten »

Offline
***
Re: ftp opens the wrong directory
« Reply #12 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.