PHP

apt-get install php5 php-pear php5-mysql php5-gd php5-xsl

Settings

Upload filesize

In /etc/php5/apache2/php.ini look for

upload_max_filesize = 2M

which specifies the maximum filesize of a uploaded file. This needs to be adjusted if e.g. a SQL dump needs to be imported via phpmyadmin.

Resources

sudo vim /etc/php5/apache2/php.ini

or

sudo vim /etc/php5/cli/php.ini
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 600 ; Maximum execution time of each script, in seconds
max_input_time = 600     ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)

Actual numbers depend on needs by the scripts which are to be used.

CLI Text Color

echo "\033[31m".$myvar; // red foreground
echo "\033[41m".$myvar; // red background
echo "\033[0m"; //reset

http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html

php.txt · Last modified: 2010/07/01 16:38 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0