Problema Sentora cu conectarea la FTP proftpd si phpMyAdmin

ombladon112

Active Member
Registered
Full Member
Salutare tuturor,
Recent am instalat Sentora pe un dedicat cu CentOS 7.2, 64 bits, si am o probema la conectarea FTP, nu ma pot conecta in nici un fel, nici cu FileZilla, nici cu Cyberduck. Am incercat sa instalez si modulul Monsta File Manager si nici de acolo nu pot accesa ftp-ul.
Screenshot-2018-02-24-22.41.35.png

La Cyber status toate apar cu verde, initial FTP aparea cu rosu aseara, dar am instalt ceva pe acolo si acum e verde. :D

Urmatoarea problema este cu phpMyAdmin, nu stiu numele de utilizator si parola cu care trebuie sa ma loghez.
 
Incearca varianta de aici http://www.roforum.net/threads/upgr...iadb-10-1-centos-7-si-sentora.1950/#post-9110
Inainte de asta executa comanda:
Cod:
find -name proftpd-mysql.conf
Ar trebui sa iti dea aceasta cale:
Cod:
/etc/sentora/configs/proftpd/proftpd-mysql.conf
Daca este alta atunci executi asa:
Cod:
mkdir etc/sentora/configs/proftpd
Acum copiem proftpd-mysql.conf din locatia veche in cea noua
Cod:
cp /locatia/veche/proftpd-mysql.conf /etc/sentora/configs/proftpd/proftpd-mysql.conf
Facem reaload si restart la proftpd
Cod:
service proftpd reload
service proftpd restart
Ar trebui sa functioneze acum.

La phpmyadmin cum te conectezi si ce eroare iti da?
 
Am uitat sa adaug un / inainte.
Cod:
mkdir /etc/sentora/configs/proftpd
Poti cauta care este calea la proftpd rulannd comanda:
Cod:
locate proftpd
sau fisierul
Cod:
locate proftpd-mysql.conf
La fel poti vedea daca directorul exista:
Cod:
cd /etc/sentora/configs/proftpd
Daca nu iti gaseste nimic, atunci ruleaza cum spune in link de mai sus.
 
E ok sa apara asa?
Cod:
[root@server ~]# yum erase proftpd


Loaded plugins: fastestmirror, langpacks

No Match for argument: proftpd

No Packages marked for removal

[root@server ~]# yum -y install proftpd

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

No package [B]proftpd[/B] available.

Error: Nothing to do

[root@server ~]# service proftpd start

Redirecting to /bin/systemctl start proftpd.service

Failed to start proftpd.service: Unit not found.

[root@server ~]#
 
Cod:
[root@server ~]# yum clean all

Loaded plugins: fastestmirror, langpacks

Cleaning repos: base extras updates

Cleaning up everything

Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos

Cleaning up list of fastest mirrors

[root@server ~]# yum install proftpd proftpd-utils

Loaded plugins: fastestmirror, langpacks

base                                                     | 3.6 kB     00:00    

extras                                                   | 3.4 kB     00:00    

updates                                                  | 3.4 kB     00:00    

(1/4): base/7/x86_64/group_gz                              | 156 kB   00:00    

(2/4): extras/7/x86_64/primary_db                          | 166 kB   00:00    

(3/4): updates/7/x86_64/primary_db                         | 6.0 MB   00:01    

(4/4): base/7/x86_64/primary_db                            | 5.7 MB   00:01    

Determining fastest mirrors

No package [B]proftpd[/B] available.

No package [B]proftpd-utils[/B] available.

Error: Nothing to do

[root@server ~]#
 
Cod:
[root@server ~]# yum clean all

Loaded plugins: fastestmirror, langpacks

Cleaning repos: base extras updates

Cleaning up everything

Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos

Cleaning up list of fastest mirrors

[root@server ~]# yum install proftpd proftpd-utils

Loaded plugins: fastestmirror, langpacks

base                                                     | 3.6 kB     00:00   

extras                                                   | 3.4 kB     00:00   

updates                                                  | 3.4 kB     00:00   

(1/4): base/7/x86_64/group_gz                              | 156 kB   00:00   

(2/4): extras/7/x86_64/primary_db                          | 166 kB   00:00   

(3/4): updates/7/x86_64/primary_db                         | 6.0 MB   00:01   

(4/4): base/7/x86_64/primary_db                            | 5.7 MB   00:01   

Determining fastest mirrors

No package [B]proftpd[/B] available.

No package [B]proftpd-utils[/B] available.

Error: Nothing to do

[root@server ~]#


Fisierul il gaseste:
Cod:
[root@server ~]# locate proftpd-mysql.conf

/etc/sentora/configs/proftpd/proftpd-mysql.conf

[root@server ~]#
 
Descarca si suprascrie acest fisier.
Cod:
wget http://www.roforum.net/src/proftpd-mysql.conf
Editeaza fisierul la linia 47 cu parola ta. Aceasta o gasesti in fisierul password.txt la ftp password. Copy la acea parola si o pui in fisier unde scrie yourpassaici .
Cod:
nano proftpd-mysql.conf
Acum executa:
Cod:
service proftpd reload
service proftpd restart
sudo /usr/bin/php -q /etc/sentora/panel/bin/daemon.php
 
Cod:
[root@server ~]# wget http://www.roforum.net/src/proftpd-mysql.conf

--2018-02-25 00:03:54--  http://www.roforum.net/src/proftpd-mysql.conf

Rezolvare www.roforum.net (www.roforum.net)... 195.154.161.110

Connecting to www.roforum.net (www.roforum.net)|195.154.161.110|:80... conectat.

Cerere HTTP trimisă, se aşteaptă răspuns... 200 OK

Dimensiune: 3757 (3,7K) [text/plain]

Saving to: ‘proftpd-mysql.conf.1’


100%[======================================>] 3.757       --.-K/s   in 0s      


2018-02-25 00:03:54 (154 MB/s) - ‘proftpd-mysql.conf.1’ saved [3757/3757]


[root@server ~]# nano proftpd-mysql.conf




















[root@server ~]# nano proftpd-mysql.conf

[root@server ~]# service proftpd reload

Redirecting to /bin/systemctl reload proftpd.service

Failed to reload proftpd.service: Unit not found.

[root@server ~]#
 
Pai daca te uiti este salvat asa: proftpd-mysql.conf.1
executa asa:
cp roftpd-mysql.conf.1 proftpd-mysql.conf
si apoi editeaza.
Mereu daca nue sti sigur cum e salvat, executa un ls
 
Cod:
[root@server ~]# cp roftpd-mysql.conf.1 proftpd-mysql.conf

cp: nu se poate face stat „roftpd-mysql.conf.1”: No such file or directory

[root@server ~]#
Trebuia sa intru in folderul unde e salvat?
 
Pai presupun ca ai inteles faptul ca salvezi in root si nu il alt director. Normal ca trebuie sa mergi in folderul unde e salvat sau pui calea intreaga la fisier.
Plus vezi ca ai gresit
roftpd-mysql.conf.1
ar trebuie sa fie
proftpd-mysql.conf.1
 
Am dat de vreo 3 ori si il am salvat
proftpd-mysql.conf
proftpd-mysql.conf.1
proftpd-mysql.conf.2


Cod:
[root@server ~]# locate proftpd-mysql.conf

/etc/sentora/configs/proftpd/proftpd-mysql.conf
Cod:
[root@server ~]# locate proftpd-mysql.conf

/etc/sentora/configs/proftpd/proftpd-mysql.conf

[root@server ~]# nano locate proftpd-mysql.conf













[root@server ~]# service proftpd reload

Redirecting to /bin/systemctl reload proftpd.service

Failed to reload proftpd.service: Unit not found.

[root@server ~]#
 
Pana la urma doar cu phpMyAdmin am rezolvat:

Cod:
[root@server ~]# service proftpd reload

Redirecting to /bin/systemctl reload proftpd.service

Failed to reload proftpd.service: Unit not found.

[root@server ~]#
De la ce poate fi aceasta eroare cand dau reload?
 
@AlexH crezi ca aceasta poate fi problema?
Cod:
[root@server ~]# service proftpd status

Redirecting to /bin/systemctl status proftpd.service

[B]●[/B] proftpd.service - ProFTPD FTP Server

   Loaded: loaded (/usr/lib/systemd/system/proftpd.service; enabled; vendor preset: disabled)

   Active: [B][COLOR=#ff0000]failed[/COLOR][/B] (Result: exit-code) since Du 2018-02-25 16:58:52 CET; 39min ago

  Process: 1168 ExecStart=/usr/sbin/proftpd $PROFTPD_OPTIONS [B]([COLOR=#ff0000]code=exited, status=1/FAILURE[/COLOR])[/B]


feb 25 16:58:52 server.ro-porno.live systemd[1]: Starting ProFTPD FTP Server...

feb 25 16:58:52 server.ro-porno.live proftpd[1168]: 2018-02-25 16:58:52,912 s...

feb 25 16:58:52 server.ro-porno.live proftpd[1168]: 2018-02-25 16:58:52,913 s...

feb 25 16:58:52 server.ro-porno.live systemd[1]: [B]proftpd.service: control pr...1[/B]

feb 25 16:58:52 server.ro-porno.live systemd[1]: [B][COLOR=#ff0000]Failed to start ProFTPD FTP....[/COLOR][/B]

feb 25 16:58:52 server.ro-porno.live systemd[1]: [B]Unit proftpd.service entere....[/B]

feb 25 16:58:52 server.ro-porno.live systemd[1]: [B]proftpd.service failed.[/B]

Hint: Some lines were ellipsized, use -l to show in full.

[root@server ~]#
 
Ti-am dat mai sus toate detaliile care ar trebui sa iti functioneze.
Citeste cu atentie si executa cu grija comenzile.
Uite video aici facut de mine
 
Am reinstalat CentOS si am pus din nou Sentora, am observat ca de cand se intaleaza imi apare eroarea:
Cod:
-- Installing ProFTPD

Error: Nothing to do

Failed to execute operation: No such file or directory

Failed to start proftpd.service: Unit not found.
 
Am reusit sa instalez ProFTPD, la status apare ok dar FTP-ul tot nu functioneaza
Cod:
[root@serverBUN ~]# service proftpd status

/etc/init.d/proftpd: line 44: [: =: unary operator expected

[B]●[/B] proftpd.service - LSB: ProFTPd FTP Server

   Loaded: loaded (/etc/rc.d/init.d/proftpd; bad; vendor preset: disabled)

   Active: [B][COLOR=#59b300]active (running)[/COLOR][/B] since Sun 2018-02-25 22:32:41 CET; 5min ago

    Docs: man:systemd-sysv-generator(8)

  Process: 4334 ExecStart=/etc/rc.d/init.d/proftpd start (code=exited, status=0/SUCCESS)

 Main PID: 4341 (proftpd)

   CGroup: /system.slice/proftpd.service

          └─4341 proftpd: (accepting connections)


Feb 25 22:34:08 serverBUN proftpd[4573]: 127.0.0.1 (::ffff:79.112.114.173[::....

Feb 25 22:35:55 serverBUN proftpd[4913]: 127.0.0.1 (::1[::1]) - FTP session ....

Feb 25 22:35:55 serverBUN proftpd[4913]: [B]127.0.0.1 (::1[::1]) - USER zadmin_...1[/B]

Feb 25 22:35:55 serverBUN proftpd[4913]: 127.0.0.1 (::1[::1]) - FTP session ....

Feb 25 22:36:22 serverBUN proftpd[5123]: 127.0.0.1 (::1[::1]) - FTP session ....

Feb 25 22:36:22 serverBUN proftpd[5123]: [B]127.0.0.1 (::1[::1]) - USER zadmin_...1[/B]

Feb 25 22:36:22 serverBUN proftpd[5124]: 127.0.0.1 (::1[::1]) - FTP session ....

Feb 25 22:36:22 serverBUN proftpd[5123]: 127.0.0.1 (::1[::1]) - FTP session ....

Feb 25 22:36:22 serverBUN proftpd[5124]: [B]127.0.0.1 (::1[::1]) - USER zadmin_...1[/B]

Feb 25 22:36:22 serverBUN proftpd[5124]: 127.0.0.1 (::1[::1]) - FTP session ....

Hint: Some lines were ellipsized, use -l to show in full.

[root@serverBUN ~]#
 
Loading...
Back
Sus