Contabo: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→PHP) |
|||
Zeile 36: | Zeile 36: | ||
= PHP = | = PHP = | ||
<pre> | <pre> | ||
apt-get install php5 php5-fpm php5-mysql | 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 | 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 | ||
</pre> | </pre> | ||
Weitere Einstellungen in/etc/php5/fpm/php.ini: | |||
* post_max_size = 500M | |||
* upload_max_filesize = 500M |
Version vom 6. November 2013, 10:09 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
Weitere Einstellungen in/etc/php5/fpm/php.ini:
- post_max_size = 500M
- upload_max_filesize = 500M