Hello
Im trying to make a stable and effiecient server. But i have run into some trouble big time...
Here what do after a fresh install centos 6/plesk 11.5 64bit
After that i get error 502 and Blank php sites...
But plesk panel is working fine...
Whats wrong and something i need to change?
Im trying to make a stable and effiecient server. But i have run into some trouble big time...
Here what do after a fresh install centos 6/plesk 11.5 64bit
Code:
1. Se her -> http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x
2. Kør -> yum update -y
2a. yum -y groupinstall "Development Tools"
yum -y install zlib-devel
yum -y install openssl-devel mod_ssl rpm-build rpm-devel autoconf automake lynx gcc
yum -y install mysql mod_auth_mysql mysql-devel mysql-server
yum -y install mod_python python python-devel
yum -y install php-devel php php-common php-gd php-mcrypt php-mhash php-xml php-xmlrpc php-domxml php-gd php-mbstring php-mysql php-ncurses php-pear
yum -y install sendmail sendmail-cf
yum -y install wget
yum -y install yum-utils
yum -y install vim-X11 vim-common vim-enhanced vim-minimal
yum -y install vixie-cron
3. Ændre ipadresser -> vi /etc/sysconfig/network-scripts/ifcfg-eth0
IPV6ADDR_SECONDARIES="xxxxxxx"
4. Genstart kør -> service network restart
5. Rediger velkomstbesked i SSH -> vi /root/.bash_profile
alias bye="exit"
alias ns="netstat -lpn"
alias pmysql="cd /var/lib/mysql"
alias phttpd="cd /var/www/vhosts"
alias tailall="tail -f /var/www/vhosts/*/statistics/logs/error_log /var/www/vhosts/*/statistics/logs/access_log"
alias tailallerror="tail -f /var/www/vhosts/*/statistics/logs/error_log"
alias tailallaccess="tail -f /var/www/vhosts/*/statistics/logs/access_log"
alias maillog="tail -f /usr/local/psa/var/log/maillog"
alias myadmin="mysql -u admin -p`cat /etc/psa/.psa.shadow`"
alias mchk="/usr/local/psa/admin/sbin/mchk --with-spam"
alias webpsa="/usr/local/psa/admin/sbin/websrvmng -av"
alias ppass="/usr/local/psa/bin/admin --show-password"
alias que="/var/qmail/bin/qmail-qstat"
echo "############################################################"
echo " Genveje til systemet! "
echo "############################################################"
echo
echo "For at se dit plesk kodeord, skriv: ppass"
echo
echo "For at genskabe Apache/Web Server configuration, skriv: webpsa"
echo
echo "For at genskabe Qmail/Mail Server configuration, akriv: mchk"
echo
echo "For at se Qmail/Mail Server køen, skriv: que"
echo
echo "Oprette forbindelse til MySQL server som admin, skriv: myadmin"
echo
echo "For gå ud af shell, skriv: exit"
echo
echo "For at se netstat kommandoen, skriv: ns"
echo
echo "For at se alle error/access logs, skriv: tailall"
echo
echo "For at se alle error logs, skriv: tailallerror"
echo
echo "For at se alle email logs, skriv: maillog"
echo
echo "For at se alle access log, skriv: tailallaccess"
echo
echo "For at komme af med de her beskeder/aliaser, rediger følgende /root/.bash_profile"
echo
7. Kør -> mysql_upgrade -uadmin -p`cat /etc/psa/.psa.shadow`
mysqlcheck -uadmin -p`cat /etc/psa/.psa.shadow` --auto-repair --check --all-databases
-------
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
status
vi /etc/my.cnf # med den korrekte version mysql ->
touch /var/log/mysql_slow_queries.log
chown mysql:mysql /var/log/mysql_slow_queries.log
yum install mysqltuner
8. Kør -> yum install php-ioncube-loader php-zend-optimizer php-eaccelerator
10. Kør -> yum install php-mbstring php-pear php-xml php-soap php-suhosin php-xmlrpc mod_dav_svn php-bcmath
11. Kør -> yum install ImageMagick ImageMagick-devel ImageMagick-perl
12. Kør -> pecl install uploadprogress
13. Rediger -> vi /etc/courier-imap/imapd
MAXDAEMONS=100
MAXPERIP=40
14. Installer -> http://www.softaculous.com/docs/Installing_Softaculous_in_Plesk_Linux
14. Lidt plesk optimering
Click on SERVERS:
1. Change password: Change passwords to access into PLESK.
2. Access: Setup PLESK ADMIN access and add your IP, in this way you restrict ADMIN access from your IP.
3. System time: I use synchronize time with server: time.windows.com, anyway setup here the correct zone.
4. Mail preferences: Enable MAPS protection to zen.spamhaus.org;cbl.abuseat.org and also I use POP3 lock time to 20 minutes.(important)
5. Mailman settings: Setup email and password.
6. DNS - Read the manual.
7. Logo Setup - to setup your Company LOGO
8. Crontab - Set crontab message, if need change here the mail to not send to root.
9. Activate Watchdog, each services, disk space etc.
10. Add this extension -> extension=uploadprogress.so
After that i get error 502 and Blank php sites...
But plesk panel is working fine...
Whats wrong and something i need to change?