cd /tmp wget https://www.openssl.org/source/openssl-0.9.8zh.tar.gz tar xvfz openssl-0.9.8zh.tar.gz cd openssl-0.9.8zh ./config --prefix=/usr/local/openssl-0.9.8zh make && make test && make install mkdir /opt/phpfcgi-5.3.29 mkdir /usr/local/src/php5-build cd /usr/local/src/php5-build wget http://de.php.net/get/php-5.3.29.tar.bz2/from/this/mirror -O php-5.3.29.tar.bz2 tar jxf php-5.3.29.tar.bz2 cd php-5.3.29/ aptitude install libmysqlclient15-dev ./configure \ --prefix=/opt/phpfcgi-5.3.29 \ --with-pdo-pgsql \ --with-zlib-dir \ --with-freetype-dir \ --enable-mbstring \ --with-libxml-dir=/usr \ --enable-soap \ --enable-calendar \ --with-curl \ --with-mcrypt \ --with-zlib \ --with-gd \ --with-pgsql \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-zlib \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-pcntl \ --enable-mbregex \ --with-mhash \ --enable-zip \ --with-pcre-regex \ --with-mysql \ --with-pdo-mysql \ --with-mysqli \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-gd-native-ttf \ --with-openssl=/usr/local/openssl-0.9.8zh \ --with-openssl-dir=/usr/local/openssl-0.9.8zh \ --enable-ftp \ --with-imap \ --with-imap-ssl \ --with-kerberos \ --with-gettext \ --enable-bcmath \ --enable-exif \ --enable-sysvmsg \ --enable-wddx \ --enable-dba \ --enable-shmop \ --enable-cgi make && make install cp /usr/local/src/php5-build/php-5.3.29/php.ini-production /opt/phpfcgi-5.3.29/lib/php.ini cd /opt/phpfcgi-5.3.29/etc pecl -C ./pear.conf update-channels pecl -C ./pear.conf install apc nano /opt/phpfcgi-5.3.29/lib/php.ini # pokud je chyba configure: error: freetype.h not found mkdir /usr/include/freetype2/freetype ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h