Contabo: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 39: Zeile 39:
perl -pi -e 's/#cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/;'    /etc/php5/fpm/php.ini
perl -pi -e 's/#cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/;'    /etc/php5/fpm/php.ini
grep cgi.fix /etc/php5/fpm/php.ini
grep cgi.fix /etc/php5/fpm/php.ini
service php5-fpm restart
</pre>
</pre>


Zeile 44: Zeile 45:
* post_max_size = 500M
* post_max_size = 500M
* upload_max_filesize = 500M
* upload_max_filesize = 500M
* sendmail_path = "/usr/sbin/sendmail -t -i -f php@ip-12-220-241-80.static.contabo.net"

Version vom 6. November 2013, 16:10 Uhr


Installation

Ausgangspunkt: debian 7.2 (wheezzy)

apt-get install sudo git etckeeper sudo bzip2 zip unzip

adduser hm
# Eingabe Pw
mkdir /home/hm/.ssh
cat >/home/hm/.ssh/authorized_keys <<EOS
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/Z4tMh9xFVKL5XGx/9KjNt4OGzrk5MmOtUnLexAX3bjQ4yqYaj5zNvjQ1GaTbVG8bOCcstueKkvnCJ/iEYfoCwc9eeYv8QbdIH4BJPLeV0wO5D6wTAkZSqkyCAI7yFWYEr1Yy1vpKo8vZwcXtDGCQfWsG0CIZDzQCGHrSkdgNNIzjjEpsz4iAgYS5n044hDBW4YNaH7UWs/btSCyfWg00wza7FLZY5tz2sA9KB3NprFrJSPr/LyNhFv8LU+E7wi8eBZyx0rpbak27AYL1IHk7kODfhZSJo6eLacHA8RIftuZL8WkQzdNDnrEn09rg593stn/hm0blnUDBCr8AEZIj hm@ant
EOS

# Als User hm:
ssh-keygen -t rsa
# Eingabe

nginx

apt-get install nginx

mariadb

apt-get install python-software-properties
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
add-apt-repository 'deb http://mirror.netcologne.de/mariadb/repo/10.0/debian wheezy main'
apt-get update
apt-get install mariadb-server
  • in /etc/mysql/conf.d/mariadb.conf: UTF-8 aktivieren
  • in /etc/mysql/my.cnf: datadir = /home/mariadb
  • service mysql stop ; cp -a /var/lib/mysql /home/ ; mv /home/mysql /home/mariadb ; service mysql start

PHP

apt-get install php5 php5-fpm php5-mysql php5-gd imagemagick
perl -pi -e 's/#cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/;'    /etc/php5/fpm/php.ini
grep cgi.fix /etc/php5/fpm/php.ini
service php5-fpm restart

Weitere Einstellungen in/etc/php5/fpm/php.ini:

  • post_max_size = 500M
  • upload_max_filesize = 500M
  • sendmail_path = "/usr/sbin/sendmail -t -i -f php@ip-12-220-241-80.static.contabo.net"