You are on page 1of 12

YJServers

1.
2Ubuntu14.04TLS.VMWare10
3.
4.
5.MySQL
6Apache.PHP
7.
8FTP.DNS
9LOG.
10.RoundCube
11ISPConfig3.

'
'
.

Support

:
N1
1
Ticket

:
N2
2
N15070
.

:
N3
3
.

:
N4
4
N3
DELL,HP.

1:

address
address)(ifconfig

)(ping8.8.8.8

update(nano/etc/apt/source.list
packages)

8.8.8.88.8.4.4
nano/etc/resoulv.confnameserver
addressfix3networkgatewaynetmask
ipstatic)(nano/etc/network/interfaces

2:
etc/apt/source.list/packages
:
http://repogen.simplylinux.ch/
:SSH

nano/etc/ssh/sshd_config
:
port36
X11Forwardingno
PasswordAuthenticationyes
servicesshrestart

Putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

:installofubuntu14.043
apparmorsecurityextensio

serviceapparmorstop
updaterc.dfapparmorremove
aptgetremoveapparmorapparmorutils

aptgetinstallntpntpdate
.Automatique

dnsnameservers
nano/etc/network/interfaces
:
dnsnameservers8.8.8.88.8.4.4
ifdowneth0
ifupeth0
servicenetworkingrestart

InstallPostfix,Dovecot,MySQL,,rkhunter,binutils4
sendmailpostfix
postfix

servicesendmailstop
updaterc.dfsendmailremove

:
postfix:
dovecot:
mysql:
getmail4:fetchmail
rkhunter:rotkit
binutils:bins
openssl:.

aptgetinstallpostfixpostfixmysqlpostfixdocmysqlserver5.6
mysqlclient5.6opensslgetmail4rkhunterbinutilsdovecotimapd
dovecotpop3ddovecotmysqldovecotsievesudo

:
NewpasswordfortheMySQL"root"user:<
yourrootsqlpassword
RepeatpasswordfortheMySQL"root"user:<
yourrootsqlpassword
Generaltypeofmailconfiguration:<
InternetSite
Systemmailname:<
server1.example.com


:ssl
nano/etc/postfix/master.cf
:
submissioninetnsmtpd
osyslog_name=postfix/submission
osmtpd_tls_security_level=encrypt
osmtpd_sasl_auth_enable=yes
osmtpd_client_restrictions=permit_sasl_authenticated,reject
smtpsinetnsmtpd
osyslog_name=postfix/smtps
osmtpd_tls_wrappermode=yes
osmtpd_sasl_auth_enable=yes
osmtpd_client_restrictions=permit_sasl_authenticated,reject

servicepostfixrestart

:mysql
servicemysqlrestart
:mysql
netstattap|grepmysql

InstallAmavisdnew,AndClamav5

AMaViSAMailVirusScanner
Clamavantivirusforworm&keylogger&virus
rkhunterrootkit

aptgetinstallamavisdnewclamavclamavdaemonzoounzipbzip2arj
nomarchlzopcabextractaptlistchangeslibnetldapperl
libauthensaslperlclamavdocsdaemonlibiostringperl
libiosocketsslperllibnetidentperlziplibnetdnsperl

installfail2ban,webminibtables6
aptgetinstallfail2ban
aptgetinstallpythoniptables
cp/etc/fail2ban/jail.conf/etc/fail2ban/jail.local
nano/etc/fail2ban/jail.local
ignoreip=192.168.1.50192.168.1.100
servicefail2banrestart
log
webmin
nano/etc/apt/sources.list
debhttp://download.webmin.com/download/repositorysargecontrib
wgetqhttp://www.webmin.com/jcameronkey.ascO|sudoaptkeyadd

aptgetinstallwebmin
aptgetupdate
:
https://192.168.1.200:10000

InstallApache2,PHP5,phpMyAdmin,FCGI,suExec,Pear,And7
mcrypt

aptgetinstallapache2apache2docapache2utilslibapache2modphp5
php5php5commonphp5gdphp5mysqlphp5imapphpmyadmin
php5cliphp5cgilibapache2modfcgidapache2suexecphppear
phpauthphp5mcryptmcryptphp5imagickimagemagick
libapache2modsuphplibrubylibapache2modpythonphp5curlphp5intl
php5memcachephp5memcachedphp5mingphp5psphp5pspell
php5recodephp5snmpphp5sqlitephp5tidyphp5xmlrpcphp5xsl
memcachedsnmp

:
Webservertoreconfigureautomatically:<apache2
Configuredatabaseforphpmyadminwithdbconfigcommon?<No

:PHP5mcrypt
php5enmodmcrypt

:ssl
a2enmodsuexecrewritesslactionsincludecgi
a2enmoddav_fsdavauth_digest

:php3php4php5phtml
nano/etc/apache2/modsavailable/suphp.conf
:
#<FilesMatch"\.ph(p3?|tml)$">
#SetHandlerapplication/xhttpdsuphp
#</FilesMatch>
AddTypeapplication/xhttpdsuphp.php.php3.php4.php5.phtml

serviceapache2restart

nano/etc/mime.types
:
application/xrubyrb
serviceapache2restart
:php
aptgetinstallphp5xcache
serviceapache2restart
ispconfig3PHPFPM
aptgetinstalllibapache2modfastcgiphp5fpm
a2enmodactionsfastcgialias
serviceapache2restart
:
nano/etc/apache2/apache2.conf
nano/etc/apache2/sitesavailable/000default.conf
serviceapache2restart
:
<html>
<metahttpequiv="ContentType"content="text/htmlcharset=utf8"/>
<head><title>::</title></head>
<body>
:D</body></html>

BINDDNSServerJailkitvsftpd8
aptgetinstallbind9dnsutilsbuildessentialautoconfautomake1.9libtool
flexbisondebhelperbinutilsgold
cd..
cd/tmp
wgethttp://olivier.sessink.nl/jailkit/jailkit2.17.tar.gz
tarxvfzjailkit2.17.tar.gz
cdjailkit2.17
./debian/rulesbinary

:ftp
aptgetupdate
aptgetinstallvsftpd
:
nano/etc/vsftpd.conf
write_enable=YES
local_umask=022
chroot_local_user=YES
allow_writeable_chroot=YES
pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100

nano/etc/shells
/usr/sbin/nologin
port36forsftp
aptgetinstallopensshserver
groupaddftpaccess
nano/etc/ssh/sshd_config
#Subsystemsftp/usr/lib/openssh/sftpserver
Subsystemsftpinternalsftp
Matchgroupftpaccess

ChrootDirectory%h
X11Forwardingno
AllowTcpForwardingno
ForceCommandinternalsftp
#UsePAMyes
servicesshrestart
useraddmsyourjanagftpaccesss/usr/sbin/nologin
passwdsyourjana
mkdir/home/syourjana/www
chownroot/home/syourjana
chownsyourjana:ftpaccess/home/syourjana/www/
servicesshrestart
servicevsftpdrestart

IntroVloggerorWebalizer,nagios,AndAWstats9
https://www.howtoforge.com/apache_log_splitting_vlogger
http://doc.ubuntufr.org/webalizer

installroundcube10
aptitudeinstallroundcuberoundcubemysql
dpkgreconfigureroundcubecore
sudolns/usr/share/roundcube/var/www/html/roundcube
serviceapache2restart
http://192.168.1.200/roundcube

installispconfig311
cd/tmp
wgethttp://www.ispconfig.org/downloads/ISPConfig3stable.tar.gz
tarxfzISPConfig3stable.tar.gz
cdispconfig3_install/install/
phpqinstall.php
:
https://192.168.1.200:8080/
admin
admin

:
Facebook:
https://www.facebook.com/yoourjana
Web:
http://www.yourjana.com

You might also like