Web Entwicklung: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) (→export import) |
F (Diskussion | Beiträge) (→apache) |
||
Zeile 13: | Zeile 13: | ||
display_errors = On | display_errors = On | ||
</source> | </source> | ||
+ | |||
+ | |||
+ | == php == | ||
+ | |||
+ | === pear === | ||
+ | <source lang="bash"> | ||
+ | apt-get install php5-dev make php-pear | ||
+ | </source> | ||
+ | |||
+ | * http://blog.jerrevds.be/article/install-apc-or-pecl-debian | ||
+ | * [https://de.wikipedia.org/wiki/PHP_Extension_and_Application_Repository wp:PEAR] - PHP Extension and Application Repository | ||
+ | ** [https://de.wikipedia.org/wiki/PHP_Extension_and_Application_Repository#PECL wp:PEAR#PECL] - PHP Extension Community Library | ||
+ | === cairo === | ||
+ | <source lang="bash"> | ||
+ | pecl install cairo | ||
+ | pecl install cairo channel://pecl.php.net/cairo-0.3.2 | ||
+ | echo "extension=cairo.so" >> /etc/php5/apache2/php.ini | ||
+ | </source> | ||
+ | /etc/init.d/apache2 restart | ||
+ | |||
+ | |||
+ | * http://cairographics.org/cairo-php/ | ||
+ | |||
Zeile 23: | Zeile 46: | ||
* [http://wiki.debian.org/LaMp LaMp] | * [http://wiki.debian.org/LaMp LaMp] | ||
− | |||
== mysql == | == mysql == |
Version vom 23. November 2013, 17:39 Uhr
Inhaltsverzeichnis
apache
Installation
apt-get install mysql-server mysql-client apache2 php5 php5-mysql libapache2-mod-php5 phpmyadmin
/usr/bin/mysqladmin -u root password 'enter-your-good-new-password-here'
/etc/init.d/apache2 restart
Konfiguration für die Entwicklung
/etc/php5/apache2/php.ini
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On
php
pear
apt-get install php5-dev make php-pear
- http://blog.jerrevds.be/article/install-apc-or-pecl-debian
- wp:PEAR - PHP Extension and Application Repository
- wp:PEAR#PECL - PHP Extension Community Library
cairo
pecl install cairo
pecl install cairo channel://pecl.php.net/cairo-0.3.2
echo "extension=cairo.so" >> /etc/php5/apache2/php.ini
/etc/init.d/apache2 restart
Probleme
falls das php nicht interpretiert wird, sondern stumpf ausgegeben wird
/etc/php5/apache2/php.ini da nicht "<?php" verwendet wird, muss der short_open_tag aktiviert werden!!!!
short_open_tag = On
mysql
export import
# export
mysqldump --single-transaction --default-character-set=utf8 -u _username_ -p _databasename_ > mysql.yyyymmdd.sql
# import
mysql -u _username_ -p _databasename_ < mysql.yyyymmdd.sql