Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

Transition Days/Installing PHP 5.3

From TYPO3Wiki
Jump to: navigation, search
This page belongs to the Core Team (category Core Team)

notice - This information is outdated

While some details may still apply in your situation, this page was written for a specific event in 2008.


General information

Be sure to get the alpha1 release from http://downloads.php.net/johannes/, later versions don't work reliably.

  • PHP options
    • Note that backslashes must be esacaped in the php.ini since PHP 5.3
  • Make sure that your Apache has mod_rewrite enabled
  • Make sure that index.php is in your DirectoryIndex configuration
  • Check that the .htaccess file is available and accessible in your Public/ folder
  • In PHP 5.3 there is currently a bug that stops ini files parsing when # is used for comments. So if you have problems loading the extensions in ubuntu/debian (as they use one ini file per extension), make sure to remove all # from your ini files

Windows

Mac

  • Use MacPorts http://www.macports.org/
  • Ensure that apr is up to date via port outdated
  • sudo port install php5-devel +apache2 +sqlite
    • If php5 was installed already, it has to be deactivated before via sudo port deactivate php5 @<current version>+<variants> before the current (2008-10-13: 5.3-alpha1) can be activated via sudo port activate php5-devel

A good tutorial is found at:

http://2tbsp.com/content/install_apache_2_and_php_5_macports

Linux

Ubuntu/Debian:

configure string for compiling: (Maybe you need some dependant packages, just look what configure says...)

./configure '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/apache2/conf.d' '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--mandir=/usr/share/man' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--without-gdbm' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--with-libxml-dir=/usr' '--with-zlib' '--with-kerberos=/usr' '--with-openssl=/usr' '--enable-dbx' '--enable-soap' '--enable-zip' '--with-mime-magic=/usr/share/file/magic.mime' '--with-exec-dir=/usr/lib/php5/libexec' '--with-system-tzdata' '--without-mm' '--with-curl=shared,/usr' '--with-zlib-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-imap=shared,/usr' '--with-imap-ssl' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr' '--with-ldap=shared,/usr' '--with-ldap-sasl=/usr' '--with-mcrypt=shared,/usr' '--with-mhash=shared,/usr' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-pspell=shared,/usr' '--with-xsl=shared,/usr' '--with-snmp=shared,/usr' '--with-sqlite' '--with-tidy=shared,/usr' '--with-xmlrpc=shared' '--with-pgsql=shared,/usr'


Another configure string that worked too:

'./configure' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/apache2/conf.d' '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--mandir=/usr/share/man' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--without-gdbm' '--with-iconv' '--enable-exif' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--with-libxml-dir=/usr' '--with-zlib' '--with-kerberos=/usr' '--with-openssl=/usr' '--enable-soap' '--enable-zip' '--with-exec-dir=/usr/lib/php5/libexec' '--without-mm' '--with-curl=shared,/usr' '--with-zlib-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-t1lib=shared,/usr' '--with-mcrypt=shared,/usr' '--with-mhash=shared,/usr' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-sqlite' '--with-xmlrpc=shared'


preparing the config files for the apache module:

echo "# Dummy comment" > /etc/apache2/httpd.conf

echo "LoadModule vhost_alias_module /usr/lib/apache2/modules/mod_vhost_alias.so" >> /etc/apache2/httpd.conf

compiling the whole thing

make && make install

activating the module and cleaning up the config files

cat /etc/apache2/httpd.conf | grep libphp5 > /etc/apache2/mods-available/php5.load

rm -f /etc/apache2/httpd.conf && touch /etc/apache2/httpd.conf

Finally enable the module and restart apache:

a2enmod php5

/etc/init.d/apache2 restart

If you get trouble try apache2ctl stop and apache2ctl start

More info

http://phpmelb.org/index.php?option=com_content&view=article&id=69
http://www.mocsystems.com/blog/blog/artikel/running-flow3-on-debian-based-systems/

Alternative: VirtualMachine

There is a image for VirtualBox available at http://drop.io/networkteam The Raw-Image should also work for Parallels or VMWare. Die so called f3vm contains a ready compiled PHP 5.3alpha1 and an FLOW3-Distribution checkout, so you can use/run FLOW3 almost out-of-the-box.