OVH Community, your new community space.

Pannello OpenPanel


luigidg
18.07.2013, 14.23
Ho fatto tutto ma da alcuni errori con dei comandi :
hostname -f: hostname: Name or service not known
openpanel-cli: % Exception: no 200 status.
password user openpanel-admin : -bash: password: command not found

E quando vado per collegarmi :

http://i39.tinypic.com/mm8k6x.jpg



Cosa mi dite di fare?

siele
23.07.2012, 16.09
Come installare il pannello per hosting OpenPanel in un virtual server vKimsufi!

  1. distribuzione Debian 6.0 (Squeeze)


Reinstalliamo il vKimsufi con distribuzione Debian 6.0 (Squeeze)

http://openpanel.it/wp-content/uploa...openpanel1.png

  1. accesso ssh putty

http://openpanel.it/wp-content/uploa...openpanel2.png

  1. cambiamo nome host

(selezionare il codice nella riga, copiare tasto destro... ed incollare dentro putty semplicemente premendo tasto destro mause
Codice:
echo ns.tuosito.com > /etc/hostname
Codice:
/etc/init.d/hostname.sh start
Codice:
hostname
Codice:
hostname -f
http://openpanel.it/wp-content/uploa...openpanel3.png

cambiare riga nome del server in /etc/hosts

Codice:
nano /etc/hosts
cambiare il nome del proprio server dopo proprio ip

Codice:
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
37.59.113.xxx ns.nomesito.com ns
http://openpanel.it/wp-content/uploa...openpanel4.png

  1. Modificare sources


Per installare OpenPanel, aggiungere le seguenti righe al tuo /etc/apt/sources.list :

Codice:
nano /etc/apt/sources.list
aggiungere in testa al file:
Codice:
deb http://download.openpanel.com/deb/ squeeze main
deb-src http://download.openpanel.com/deb/ squeeze main
http://openpanel.it/wp-content/uploa...openpanel5.png

  1. Aggiungere chiave


Codice:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EAC69B9
  1. Update


Codice:
apt-get update
  1. Installiamo openpanel


Codice:
aptitude install openpanel-suggested
confermiamo con invio l'installazione
Codice HTML:
root@vks:~# aptitude install openpanel-suggested
The following NEW packages will be installed:
  apache2{a} apache2-mpm-prefork{ab} apache2-mpm-worker{ab}
  apache2-utils{a} apache2.2-bin{a} apache2.2-common{a} binutils{a}
  courier-authdaemon{a} courier-authlib{a} courier-authlib-pipe{a}
  courier-authlib-userdb{a} courier-base{a} courier-imap{a}
  courier-imap-ssl{a} courier-pop{a} courier-pop-ssl{a} courier-ssl{a}
  cpp{a} cpp-4.4{a} expect{a} gcc{a} gcc-4.4{a} heirloom-mailx{a}
  javascript-common{a} libapache2-mod-php5{a} libapr1{a} libaprutil1{a}
  libaprutil1-dbd-sqlite3{a} libaprutil1-ldap{a} libc-dev-bin{a}
  libc6-dev{a} libdbd-mysql-perl{a} libdbi-perl{a} libdigest-hmac-perl{a}
  libdigest-sha1-perl{a} liberror-perl{a} libfam0{a}
  libfile-copy-recursive-perl{a} libfont-afm-perl{a} libgmp3c2{a}
  libgomp1{a} libgrace-dbfile1.1{a} libgrace-pcre1.1{a} libgrace-ssl1.1{a}
  libgrace1.1{a} libhtml-format-perl{a} libhtml-parser-perl{a}
  libhtml-tagset-perl{a} libhtml-template-perl{a} libhtml-tree-perl{a}
  libio-socket-inet6-perl{a} libjs-jquery{a} libltdl7{a}
  libmail-spf-perl{a} libmailtools-perl{a} libmpfr4{a} libmysqlclient16{a}
  libnet-daemon-perl{a} libnet-dns-perl{a} libnet-ip-perl{a}
  libnetaddr-ip-perl{a} libonig2{a} libplrpc-perl{a} libqdbm14{a}
  libsocket6-perl{a} libsys-hostname-long-perl{a} libtimedate-perl{a}
  liburi-perl{a} libwww-perl{a} linux-libc-dev{a} logax{a} maildrop{a}
  make{a} manpages-dev{a} mysql-client-5.1{a} mysql-common{a}
  mysql-server{a} mysql-server-5.1{a} mysql-server-core-5.1{a}
  openbsd-inetd{a} openpanel-api-sh{a} openpanel-authd{a} openpanel-cli{a}
  openpanel-core{a} openpanel-gui{a} openpanel-mod-apache2{a}
  openpanel-mod-apacheforward{a} openpanel-mod-dnsdomain{a}
  openpanel-mod-domain{a} openpanel-mod-ftp{a} openpanel-mod-iptables{a}
  openpanel-mod-mysql{a} openpanel-mod-postfixcourier{a}
  openpanel-mod-softwareupdate{a} openpanel-mod-spamassassin{a}
  openpanel-mod-ssh{a} openpanel-mod-user{a} openpanel-suggested
  openpanel-swupd{a} openpanel-validatepem{a} php5-cli{a} php5-common{a}
  php5-mysql{a} php5-suhosin{a} postfix{a} pure-ftpd{a} pure-ftpd-common{a}
  python-gdbm{a} python-openpanel{a} python-simplejson{a} re2c{a}
  sharutils{a} spamassassin{a} spamc{a} sqlite3{a} ssl-cert{a} tcl8.5{a}
  update-inetd{a} vacationdrop{a} wwwconfig-common{a}
The following packages will be upgraded:
  libc-bin libc6
2 packages upgraded, 120 newly installed, 0 to remove and 49 not upgraded.
Need to get 74.1 MB of archives. After unpacking 180 MB will be used.
The following packages have unmet dependencies:
  apache2-mpm-worker: Conflicts: apache2-mpm which is a virtual package.
  apache2-mpm-prefork: Conflicts: apache2-mpm which is a virtual package.
  libc6-i386: Depends: libc6 (= 2.11.2-10) but 2.11.3-3 is to be installed.
The following actions will resolve these dependencies:

     Remove the following packages:
1)     libc6-i386

     Keep the following packages at their current version:
2)     apache2-mpm-worker [Not Installed]



Accept this solution? [Y/n/q/?]
Confermiamo ancora con invio
Codice HTML:
The following NEW packages will be installed:
  apache2{a} apache2-mpm-prefork{a} apache2-utils{a} apache2.2-bin{a}
  apache2.2-common{a} binutils{a} courier-authdaemon{a} courier-authlib{a}
  courier-authlib-pipe{a} courier-authlib-userdb{a} courier-base{a}
  courier-imap{a} courier-imap-ssl{a} courier-pop{a} courier-pop-ssl{a}
  courier-ssl{a} cpp{a} cpp-4.4{a} expect{a} gcc{a} gcc-4.4{a}
  heirloom-mailx{a} javascript-common{a} libapache2-mod-php5{a} libapr1{a}
  libaprutil1{a} libaprutil1-dbd-sqlite3{a} libaprutil1-ldap{a}
  libc-dev-bin{a} libc6-dev{a} libdbd-mysql-perl{a} libdbi-perl{a}
  libdigest-hmac-perl{a} libdigest-sha1-perl{a} liberror-perl{a} libfam0{a}
  libfile-copy-recursive-perl{a} libfont-afm-perl{a} libgmp3c2{a}
  libgomp1{a} libgrace-dbfile1.1{a} libgrace-pcre1.1{a} libgrace-ssl1.1{a}
  libgrace1.1{a} libhtml-format-perl{a} libhtml-parser-perl{a}
  libhtml-tagset-perl{a} libhtml-template-perl{a} libhtml-tree-perl{a}
  libio-socket-inet6-perl{a} libjs-jquery{a} libltdl7{a}
  libmail-spf-perl{a} libmailtools-perl{a} libmpfr4{a} libmysqlclient16{a}
  libnet-daemon-perl{a} libnet-dns-perl{a} libnet-ip-perl{a}
  libnetaddr-ip-perl{a} libonig2{a} libplrpc-perl{a} libqdbm14{a}
  libsocket6-perl{a} libsys-hostname-long-perl{a} libtimedate-perl{a}
  liburi-perl{a} libwww-perl{a} linux-libc-dev{a} logax{a} maildrop{a}
  make{a} manpages-dev{a} mysql-client-5.1{a} mysql-common{a}
  mysql-server{a} mysql-server-5.1{a} mysql-server-core-5.1{a}
  openbsd-inetd{a} openpanel-api-sh{a} openpanel-authd{a} openpanel-cli{a}
  openpanel-core{a} openpanel-gui{a} openpanel-mod-apache2{a}
  openpanel-mod-apacheforward{a} openpanel-mod-dnsdomain{a}
  openpanel-mod-domain{a} openpanel-mod-ftp{a} openpanel-mod-iptables{a}
  openpanel-mod-mysql{a} openpanel-mod-postfixcourier{a}
  openpanel-mod-softwareupdate{a} openpanel-mod-spamassassin{a}
  openpanel-mod-ssh{a} openpanel-mod-user{a} openpanel-suggested
  openpanel-swupd{a} openpanel-validatepem{a} php5-cli{a} php5-common{a}
  php5-mysql{a} php5-suhosin{a} postfix{a} pure-ftpd{a} pure-ftpd-common{a}
  python-gdbm{a} python-openpanel{a} python-simplejson{a} re2c{a}
  sharutils{a} spamassassin{a} spamc{a} sqlite3{a} ssl-cert{a} tcl8.5{a}
  update-inetd{a} vacationdrop{a} wwwconfig-common{a}
The following packages will be REMOVED:
  libc6-i386{a}
The following packages will be upgraded:
  libc-bin libc6
2 packages upgraded, 119 newly installed, 1 to remove and 48 not upgraded.
Need to get 74.1 MB of archives. After unpacking 171 MB will be used.
Do you want to continue? [Y/n/?]
creiamo una password per mysql confermando
confermiamo "Internet Site"
diamo il nome al server di posta PostFix "ns.monesito.com"
Create directories for web-based administration? diamo "NO"

  1. si crea utente openpanel


lanciamo openpanel
Codice:
openpanel-cli
modifichiamo password utente
Codice:
password user openpanel-admin
usciamo
Codice:
exit
  1. aggiorniamo tutto



Codice:
apt-get update
Codice:
apt-get dist-upgrade



  1. Entriamo nel pannello


Codice:
https://37.59.113.xxx:4089/
http://openpanel.it/wp-content/uploa...openpanel6.png

entriamo con username "openpanel-admin"
e password digitato quando creato utente openpanel-admin

siamo entrati nel nuovo pannello
http://openpanel.it/wp-content/uploa...openpanel7.png


  1. un po' di sicurezza


Codice:
apt-get install fail2ban
istalliamo fail2ban per chi tenta di entrare da root e vi assicuro che ne sono tanti
http://guide.debianizzati.org/index.php/Fail2ban


Codice:
apt-get install pflogsumm
controlliamo la posta
http://blog.servermanaged.it/guida-breve-a-pflogsumm/

  1. reverse DNS


-Gestione domini - Gestione di GLUE Registry e dare il prorio IP:
esempio ns.nomedominio.com = ipvkim

-dopo aver creato il dominio principale nel pannello openpanel nei dns

-andare a modificare il reverse DNS in ovh
http://openpanel.it/wp-content/uploa...openpanel8.png