SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Downloaden Sie, um offline zu lesen
PHP selber bauen
           PHP User Group Frankfurt 31.03.2011
           Walter Ebert




http://www.flickr.com/photos/zunami/4738471442/
Willkommen bei den anonymen PHPlern




          Mein Name ist Walter
    und ich kompiliere mir PHP selber




                            Nicht immer,
                            aber immer öfter
                                    Goggler-Handzeigen
http://www.flickr.com/photos/zunami/3125589973/
http://php.net/releases/5_3_0.php
http://www.php.net/releases/5_3_3.php
http://derickrethans.nl/distributions-please-dont-cripple-php-or-red-hat-stop-fucking-around.html
Kompatibilität / Features
Du musst zum Beispiel:
                                           PHP4 irgendwer?
●   eine alte PHP Version unterstützen
●   mehrere PHP Versionen bzw.
    Konfigurationen testen
●   proprietäre Extensions nutzen die nur mit
    bestimmten PHP Versionen funktionieren
●   die letzte Entwickler-Version testen (trunk)
http://www.flickr.com/photos/mama/94778673/
b


./configure
make
sudo make install




               http://www.php.net/downloads.php
b


./configure
make
make test
sudo make install
Linux
  Unix
Mac OS X
Windows
 -> benutze einfach die binaries
 oder wenn man wirklich muss; besuche:
 http://wiki.php.net/internals/windows/stepbystepbuild
b

                      =   escape linebreaks
sudo apt-get install 
automake autoconf gcc 
libtool binutils subversion 
libxml2-dev libcurl4-dev 
libfreetype6-dev libjpeg-dev libpng-dev




                            Packages fuer debian / ubuntu
./configure --help

Usage: configure [options] [host]
                                                                  b
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print `checking...' messages
  --version               print the version of autoconf that created con
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREF
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFI
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/e
  --sharedstatedir=DIR    modifiable architecture-independent data in DI
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
b

./configure 
--with-apxs2 
--with-mysql=mysqlnd --with-mysqli=mysqlnd 
-–with-pdo-mysql=mysqlnd 
--with-curl 
--with-gd 
--with-jpeg-dir=/usr --with-png-dir=/usr 
--with-freetype-dir=/usr




                 Fuer Apache: Sudo apt-get install apache2-prefork-dev
b
./configure 
--enable-fpm 
--with-gettext --enable-zend-multibyte 
--enable-mbstring --with-mcrypt 
--enable-soap --enable-wddx --with-xsl 
--with-curl --with-openssl 
--with-zlib-dir=/usr --with-bz2 --enable-zip 
--with-gd --with-jpeg-dir=/usr 
--with-png-dir=/usr --with-freetype-dir=/usr 
--enable-exif 
--with-mysql=mysqlnd --with-mysqli=mysqlnd 
--with-pdo-mysql=mysqlnd 
--with-pgsql=/usr --with-pdo-pgsql 
--without-sqlite --without-sqlite3 
--without-pdo-sqlite 
--with-mm=/usr
b
./configure

...
checking whether to build shared libraries... no
checking whether to build static libraries... yes

creating libtool
appending configuration tag "CXX" to libtool

Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.
b
make

/bin/sh /home/walter/Downloads/php-5.3.5/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/
-I/home/walter/Downloads/php-5.3.5/ext/date/ -DPHP_ATOM_INC
-I/home/walter/Downloads/php-5.3.5/include
...
lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt -o sapi/cli/php
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require
PHP's phar extension be enabled.
directorygraphiterator.inc
directorytreeiterator.inc
clicommand.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc

Build complete.
Don't forget to run 'make test'.
make test


PHP         : /home/walter/Downloads/php-5.3.5/sapi/cli/php
                                                                 b
=====================================================================

PHP_SAPI    : cli
PHP_VERSION : 5.3.5
ZEND_VERSION: 2.3.0
PHP_OS      : Linux - Linux LM-U200 2.6.35-25-generic #44-Ubuntu SMP
INI actual : /home/walter/Downloads/php-5.3.5/tmp-php.ini

...

WARNED TEST SUMMARY
---------------------------------------------------------------------
via [ext/pdo_sqlite/tests/common.phpt]
   SQLite PDO Common: Bug #34630 (inserting streams as LOBs)[ext/pdo
via [ext/sqlite/tests/pdo/common.phpt]
   SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/s
Bug #39863 (file_exists() silently truncates after a null byte) [ext/
=====================================================================

You may have found a problem in PHP.
We would like to send this report automatically to the
PHP QA team, to give us a better understanding of how
the test cases are doing. If you don't want to send it
immediately, you can choose "s" to save the report to
a file that you can send us later.
Do you want to send this report now? [Yns]:
sudo make install

Generating phar.php
Generating phar.phar
                                                                 b
PEAR package PHP_Archive not installed: generated phar will
directorygraphiterator.inc
directorytreeiterator.inc
clicommand.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc
Installing PHP SAPI module:       fpm
Installing PHP CLI binary:        /usr/local/bin/
...
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Structures_Graph- installed: 1.0.3
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.1
Warning! a PEAR user config file already exists from a previous
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/home/walter/Downloads/php-5.3.5/build/shtool install -c ext/phar/ph
ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar
Installing PDO headers:          /usr/local/include/php/ext/pdo/
b


sudo cp php.ini-development /usr/local/lib/php.ini

                       oder

sudo cp php.ini-production /usr/local/lib/php.ini
Mit der neuesten Entwickler-Versionb

Entweder:
wget http://snaps.php.net/php-trunk-latest.tar.bz2


Oder:
svn checkout http://svn.php.net/repository/php/php-src/trunk/ trunk
cd trunk

./buildconf
./configure
make
sudo make install
Standard aktivierte Extensions
                                                 (in php 5.3)
Core         ctype                     date
dom          ereg                      fileinfo
filter       hash                      Iconv
json         libxml                    pcre
PDO          pdo_sqlite                Phar
posix        Reflection                session
SimpleXML    SPL                       SQLite
sqlite3      standard                  tokenizer
xml          xmlreader                 xmlwriter




            ./configure --disable-simplexml --without-sqlite3
Populäre PHP Extensions
●   APC, xCache, eAccelerator
●   Memcache, memcached
●   Xdebug
●   PostgreSQL, mongoDB, OCI8, SQLSRV
●   Sphinx, xapian, mnogosearch, solr
●   Suhosin
PECL                                       b




       sudo pecl install apc




                           http://pecl.php.net/
Extensions kompilieren                                     b



        phpize
        ./configure
        make
        sudo make install



                  Phpize gibt es ab php 5.3.6 auch fuer windows
/usr/local/lib/php.ini          b

[apc]
extension=apc.so


[xdebug]
zend_extension="/usr/local/lib/php
/extensions/no-debug-non-zts-
20090626/xdebug.so"
http://de.php.net/manual/de/install.php
Walter Ebert Web Development
                 @wltrd

             walterebert.de

          blog.walterebert.com

        slideshare.net/walterebert

     Search Meetup Frankfurt (12.4.)
        searchmeetupfrankfurt.de

Weitere ähnliche Inhalte

Was ist angesagt?

Usage Note of Qt ODBC Database Access on Linux
Usage Note of Qt ODBC Database Access on LinuxUsage Note of Qt ODBC Database Access on Linux
Usage Note of Qt ODBC Database Access on LinuxWilliam Lee
 
Hyperledger composer
Hyperledger composerHyperledger composer
Hyperledger composerwonyong hwang
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2Trinh Tuan
 
Configuration Surgery with Augeas
Configuration Surgery with AugeasConfiguration Surgery with Augeas
Configuration Surgery with AugeasPuppet
 
J Ruby On Rails Presentation
J Ruby On Rails PresentationJ Ruby On Rails Presentation
J Ruby On Rails Presentationrailsconf
 
Scripting for infosecs
Scripting for infosecsScripting for infosecs
Scripting for infosecsnancysuemartin
 
Component pack 6006 install guide
Component pack 6006 install guideComponent pack 6006 install guide
Component pack 6006 install guideRoberto Boccadoro
 
Anthony McKeown Drupal Presentation
Anthony McKeown Drupal PresentationAnthony McKeown Drupal Presentation
Anthony McKeown Drupal PresentationTony McKeown
 
Jagan Teki - U-boot from scratch
Jagan Teki - U-boot from scratchJagan Teki - U-boot from scratch
Jagan Teki - U-boot from scratchlinuxlab_conf
 
Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Yiwei Ma
 
Deployment Tactics
Deployment TacticsDeployment Tactics
Deployment TacticsIan Barber
 
RPM: Speed up your deploy
RPM: Speed up your deployRPM: Speed up your deploy
RPM: Speed up your deployfcrippa
 
L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5William Lee
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTJoshua Thijssen
 
Embedding Linux On The Encore Simputer
Embedding Linux On The Encore SimputerEmbedding Linux On The Encore Simputer
Embedding Linux On The Encore SimputerSatpal Parmar
 

Was ist angesagt? (19)

Docker practice
Docker practiceDocker practice
Docker practice
 
Usage Note of Qt ODBC Database Access on Linux
Usage Note of Qt ODBC Database Access on LinuxUsage Note of Qt ODBC Database Access on Linux
Usage Note of Qt ODBC Database Access on Linux
 
Apache
ApacheApache
Apache
 
Hyperledger composer
Hyperledger composerHyperledger composer
Hyperledger composer
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Configuration Surgery with Augeas
Configuration Surgery with AugeasConfiguration Surgery with Augeas
Configuration Surgery with Augeas
 
J Ruby On Rails Presentation
J Ruby On Rails PresentationJ Ruby On Rails Presentation
J Ruby On Rails Presentation
 
Scripting for infosecs
Scripting for infosecsScripting for infosecs
Scripting for infosecs
 
Component pack 6006 install guide
Component pack 6006 install guideComponent pack 6006 install guide
Component pack 6006 install guide
 
Building
BuildingBuilding
Building
 
Anthony McKeown Drupal Presentation
Anthony McKeown Drupal PresentationAnthony McKeown Drupal Presentation
Anthony McKeown Drupal Presentation
 
Jagan Teki - U-boot from scratch
Jagan Teki - U-boot from scratchJagan Teki - U-boot from scratch
Jagan Teki - U-boot from scratch
 
Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册
 
Deployment Tactics
Deployment TacticsDeployment Tactics
Deployment Tactics
 
RPM: Speed up your deploy
RPM: Speed up your deployRPM: Speed up your deploy
RPM: Speed up your deploy
 
L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 
Embedding Linux On The Encore Simputer
Embedding Linux On The Encore SimputerEmbedding Linux On The Encore Simputer
Embedding Linux On The Encore Simputer
 

Andere mochten auch

New Study Of Bhagavad Gita Dr. Shriniwas J. Kashalikar
New Study Of Bhagavad Gita  Dr. Shriniwas J. KashalikarNew Study Of Bhagavad Gita  Dr. Shriniwas J. Kashalikar
New Study Of Bhagavad Gita Dr. Shriniwas J. Kashalikarmarathiasmita
 
eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...
eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...
eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...Burgerlink
 
B2C Research and Analytics - Patrick Furey
B2C Research and Analytics - Patrick FureyB2C Research and Analytics - Patrick Furey
B2C Research and Analytics - Patrick FureyMN AMA
 
Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...
Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...
Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...Christian Kehl
 
Mark Robinson, GOLF GREATS
Mark Robinson, GOLF GREATSMark Robinson, GOLF GREATS
Mark Robinson, GOLF GREATSguestc16247
 
Chisholm Gallery, Golf Portraits Donated to Charity,, Mark Robinson
Chisholm Gallery, Golf Portraits Donated to Charity,, Mark RobinsonChisholm Gallery, Golf Portraits Donated to Charity,, Mark Robinson
Chisholm Gallery, Golf Portraits Donated to Charity,, Mark Robinsonguestc16247
 
Rapportconferentiemeedoen10maart2007versie2004071[1]
Rapportconferentiemeedoen10maart2007versie2004071[1]Rapportconferentiemeedoen10maart2007versie2004071[1]
Rapportconferentiemeedoen10maart2007versie2004071[1]Gerda Sordam
 
Sinn und Unsinn von SSL
Sinn und Unsinn von SSLSinn und Unsinn von SSL
Sinn und Unsinn von SSLWalter Ebert
 
Volltextsuche im Vergleich
Volltextsuche im VergleichVolltextsuche im Vergleich
Volltextsuche im VergleichWalter Ebert
 
Baby Smart Grid 11/09
Baby Smart Grid 11/09Baby Smart Grid 11/09
Baby Smart Grid 11/09jessmillar
 
Chisholm Gallery, Golf Commissions, Mark Robinson
Chisholm Gallery, Golf Commissions, Mark RobinsonChisholm Gallery, Golf Commissions, Mark Robinson
Chisholm Gallery, Golf Commissions, Mark Robinsonguestc16247
 
10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យ
10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យ10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យ
10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យkpcsamnang
 
Drupal vs WordPress
Drupal vs WordPressDrupal vs WordPress
Drupal vs WordPressWalter Ebert
 
(Responsive) Video
(Responsive) Video(Responsive) Video
(Responsive) VideoWalter Ebert
 
Modernismus + Post-Modernismus im Webdesign
Modernismus + Post-Modernismus im WebdesignModernismus + Post-Modernismus im Webdesign
Modernismus + Post-Modernismus im WebdesignWalter Ebert
 
Content Security Policy - PHPUGFFM
Content Security Policy - PHPUGFFMContent Security Policy - PHPUGFFM
Content Security Policy - PHPUGFFMWalter Ebert
 
Fotoalbum Vrijwilligersdag Bos En Lommer 2009
Fotoalbum Vrijwilligersdag Bos En Lommer 2009Fotoalbum Vrijwilligersdag Bos En Lommer 2009
Fotoalbum Vrijwilligersdag Bos En Lommer 2009Gerda Sordam
 

Andere mochten auch (20)

New Study Of Bhagavad Gita Dr. Shriniwas J. Kashalikar
New Study Of Bhagavad Gita  Dr. Shriniwas J. KashalikarNew Study Of Bhagavad Gita  Dr. Shriniwas J. Kashalikar
New Study Of Bhagavad Gita Dr. Shriniwas J. Kashalikar
 
Habit 3
Habit 3Habit 3
Habit 3
 
Habit 3
Habit 3Habit 3
Habit 3
 
eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...
eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...
eParticipatie - workshop 1 (ronde 2): Bendeburgers, 14 oktober Burger Bewust ...
 
B2C Research and Analytics - Patrick Furey
B2C Research and Analytics - Patrick FureyB2C Research and Analytics - Patrick Furey
B2C Research and Analytics - Patrick Furey
 
Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...
Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...
Smooth, Interactive Rendering and On-line Modification of Large-Scale, Geospa...
 
Mark Robinson, GOLF GREATS
Mark Robinson, GOLF GREATSMark Robinson, GOLF GREATS
Mark Robinson, GOLF GREATS
 
Chisholm Gallery, Golf Portraits Donated to Charity,, Mark Robinson
Chisholm Gallery, Golf Portraits Donated to Charity,, Mark RobinsonChisholm Gallery, Golf Portraits Donated to Charity,, Mark Robinson
Chisholm Gallery, Golf Portraits Donated to Charity,, Mark Robinson
 
Rapportconferentiemeedoen10maart2007versie2004071[1]
Rapportconferentiemeedoen10maart2007versie2004071[1]Rapportconferentiemeedoen10maart2007versie2004071[1]
Rapportconferentiemeedoen10maart2007versie2004071[1]
 
Sinn und Unsinn von SSL
Sinn und Unsinn von SSLSinn und Unsinn von SSL
Sinn und Unsinn von SSL
 
Volltextsuche im Vergleich
Volltextsuche im VergleichVolltextsuche im Vergleich
Volltextsuche im Vergleich
 
Baby Smart Grid 11/09
Baby Smart Grid 11/09Baby Smart Grid 11/09
Baby Smart Grid 11/09
 
Chisholm Gallery, Golf Commissions, Mark Robinson
Chisholm Gallery, Golf Commissions, Mark RobinsonChisholm Gallery, Golf Commissions, Mark Robinson
Chisholm Gallery, Golf Commissions, Mark Robinson
 
10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យ
10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យ10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យ
10យុទ្ធសាស្រ្តដើម្បីអាជីវកម្មនិងការងារជោគជ័យ
 
Drupal vs WordPress
Drupal vs WordPressDrupal vs WordPress
Drupal vs WordPress
 
Web-Performance
Web-PerformanceWeb-Performance
Web-Performance
 
(Responsive) Video
(Responsive) Video(Responsive) Video
(Responsive) Video
 
Modernismus + Post-Modernismus im Webdesign
Modernismus + Post-Modernismus im WebdesignModernismus + Post-Modernismus im Webdesign
Modernismus + Post-Modernismus im Webdesign
 
Content Security Policy - PHPUGFFM
Content Security Policy - PHPUGFFMContent Security Policy - PHPUGFFM
Content Security Policy - PHPUGFFM
 
Fotoalbum Vrijwilligersdag Bos En Lommer 2009
Fotoalbum Vrijwilligersdag Bos En Lommer 2009Fotoalbum Vrijwilligersdag Bos En Lommer 2009
Fotoalbum Vrijwilligersdag Bos En Lommer 2009
 

Ähnlich wie PHP selber bauen

Virtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetVirtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetOmar Reygaert
 
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionRuby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionFabio Kung
 
Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Henning Sprang
 
PHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the CloudPHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the CloudSalesforce Developers
 
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratchjoshuasoundcloud
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linuxVicent Selfa
 
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014biicode
 
How to make debian package from scratch (linux)
How to make debian package from scratch (linux)How to make debian package from scratch (linux)
How to make debian package from scratch (linux)Thierry Gayet
 
Php through the eyes of a hoster
Php through the eyes of a hosterPhp through the eyes of a hoster
Php through the eyes of a hosterCombell NV
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Servertutorialsruby
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Servertutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />tutorialsruby
 
Software Quality Assurance Tooling 2023
Software Quality Assurance Tooling 2023Software Quality Assurance Tooling 2023
Software Quality Assurance Tooling 2023Henry Schreiner
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stackRootGate
 
Asian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On UblAsian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On Ublnewrforce
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMAlexander Shopov
 

Ähnlich wie PHP selber bauen (20)

Sahu
SahuSahu
Sahu
 
Virtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetVirtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + Puppet
 
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionRuby and Rails Packaging to Production
Ruby and Rails Packaging to Production
 
Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...
 
PHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the CloudPHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the Cloud
 
Linux Containers From Scratch
Linux Containers From ScratchLinux Containers From Scratch
Linux Containers From Scratch
 
Apache
ApacheApache
Apache
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
 
How to make debian package from scratch (linux)
How to make debian package from scratch (linux)How to make debian package from scratch (linux)
How to make debian package from scratch (linux)
 
Php through the eyes of a hoster
Php through the eyes of a hosterPhp through the eyes of a hoster
Php through the eyes of a hoster
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Software Quality Assurance Tooling 2023
Software Quality Assurance Tooling 2023Software Quality Assurance Tooling 2023
Software Quality Assurance Tooling 2023
 
EC CUBE 3.0.x installation guide
EC CUBE 3.0.x installation guideEC CUBE 3.0.x installation guide
EC CUBE 3.0.x installation guide
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stack
 
Asian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On UblAsian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On Ubl
 
Running Symfony
Running SymfonyRunning Symfony
Running Symfony
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPM
 

Mehr von Walter Ebert

FrOSCon 2023: WordPress als ActivityPub-Instanz
FrOSCon 2023: WordPress als ActivityPub-InstanzFrOSCon 2023: WordPress als ActivityPub-Instanz
FrOSCon 2023: WordPress als ActivityPub-InstanzWalter Ebert
 
Hero Video Performance - DrupalCamp Ruhr
Hero Video Performance - DrupalCamp RuhrHero Video Performance - DrupalCamp Ruhr
Hero Video Performance - DrupalCamp RuhrWalter Ebert
 
Sicherheit für WordPress
Sicherheit für WordPressSicherheit für WordPress
Sicherheit für WordPressWalter Ebert
 
WordPress aufräumen - WordCamp Stuttgart
WordPress aufräumen - WordCamp StuttgartWordPress aufräumen - WordCamp Stuttgart
WordPress aufräumen - WordCamp StuttgartWalter Ebert
 
WordPress aufräumen
WordPress aufräumenWordPress aufräumen
WordPress aufräumenWalter Ebert
 
Hero Video Performance
Hero Video PerformanceHero Video Performance
Hero Video PerformanceWalter Ebert
 
WordPress-Webseiten umziehen / online stellen
WordPress-Webseiten umziehen / online stellenWordPress-Webseiten umziehen / online stellen
WordPress-Webseiten umziehen / online stellenWalter Ebert
 
Using browser settings for performance
Using browser settings for performanceUsing browser settings for performance
Using browser settings for performanceWalter Ebert
 
Das richtige WordPress-Theme finden
Das richtige WordPress-Theme findenDas richtige WordPress-Theme finden
Das richtige WordPress-Theme findenWalter Ebert
 
WordPress Health Check - WordCamp Würzburg
WordPress Health Check - WordCamp WürzburgWordPress Health Check - WordCamp Würzburg
WordPress Health Check - WordCamp WürzburgWalter Ebert
 
WordPress Health Check
WordPress Health CheckWordPress Health Check
WordPress Health CheckWalter Ebert
 
Making WordPress fast(er)
Making WordPress fast(er)Making WordPress fast(er)
Making WordPress fast(er)Walter Ebert
 
Testumgebungen für WordPress
Testumgebungen für WordPressTestumgebungen für WordPress
Testumgebungen für WordPressWalter Ebert
 
Modernism in Web Design
Modernism in Web DesignModernism in Web Design
Modernism in Web DesignWalter Ebert
 
WordPress Multisite
WordPress MultisiteWordPress Multisite
WordPress MultisiteWalter Ebert
 
Weniger aus Bilder holen
Weniger aus Bilder holenWeniger aus Bilder holen
Weniger aus Bilder holenWalter Ebert
 
WordPress mit Composer und Git verwalten
WordPress mit Composer und Git verwaltenWordPress mit Composer und Git verwalten
WordPress mit Composer und Git verwaltenWalter Ebert
 
High Performance Images
High Performance ImagesHigh Performance Images
High Performance ImagesWalter Ebert
 
HTTPS + Let's Encrypt
HTTPS + Let's EncryptHTTPS + Let's Encrypt
HTTPS + Let's EncryptWalter Ebert
 
WordPress-Templates mit Twig erstellen - PHPUGFFM
WordPress-Templates mit Twig erstellen - PHPUGFFMWordPress-Templates mit Twig erstellen - PHPUGFFM
WordPress-Templates mit Twig erstellen - PHPUGFFMWalter Ebert
 

Mehr von Walter Ebert (20)

FrOSCon 2023: WordPress als ActivityPub-Instanz
FrOSCon 2023: WordPress als ActivityPub-InstanzFrOSCon 2023: WordPress als ActivityPub-Instanz
FrOSCon 2023: WordPress als ActivityPub-Instanz
 
Hero Video Performance - DrupalCamp Ruhr
Hero Video Performance - DrupalCamp RuhrHero Video Performance - DrupalCamp Ruhr
Hero Video Performance - DrupalCamp Ruhr
 
Sicherheit für WordPress
Sicherheit für WordPressSicherheit für WordPress
Sicherheit für WordPress
 
WordPress aufräumen - WordCamp Stuttgart
WordPress aufräumen - WordCamp StuttgartWordPress aufräumen - WordCamp Stuttgart
WordPress aufräumen - WordCamp Stuttgart
 
WordPress aufräumen
WordPress aufräumenWordPress aufräumen
WordPress aufräumen
 
Hero Video Performance
Hero Video PerformanceHero Video Performance
Hero Video Performance
 
WordPress-Webseiten umziehen / online stellen
WordPress-Webseiten umziehen / online stellenWordPress-Webseiten umziehen / online stellen
WordPress-Webseiten umziehen / online stellen
 
Using browser settings for performance
Using browser settings for performanceUsing browser settings for performance
Using browser settings for performance
 
Das richtige WordPress-Theme finden
Das richtige WordPress-Theme findenDas richtige WordPress-Theme finden
Das richtige WordPress-Theme finden
 
WordPress Health Check - WordCamp Würzburg
WordPress Health Check - WordCamp WürzburgWordPress Health Check - WordCamp Würzburg
WordPress Health Check - WordCamp Würzburg
 
WordPress Health Check
WordPress Health CheckWordPress Health Check
WordPress Health Check
 
Making WordPress fast(er)
Making WordPress fast(er)Making WordPress fast(er)
Making WordPress fast(er)
 
Testumgebungen für WordPress
Testumgebungen für WordPressTestumgebungen für WordPress
Testumgebungen für WordPress
 
Modernism in Web Design
Modernism in Web DesignModernism in Web Design
Modernism in Web Design
 
WordPress Multisite
WordPress MultisiteWordPress Multisite
WordPress Multisite
 
Weniger aus Bilder holen
Weniger aus Bilder holenWeniger aus Bilder holen
Weniger aus Bilder holen
 
WordPress mit Composer und Git verwalten
WordPress mit Composer und Git verwaltenWordPress mit Composer und Git verwalten
WordPress mit Composer und Git verwalten
 
High Performance Images
High Performance ImagesHigh Performance Images
High Performance Images
 
HTTPS + Let's Encrypt
HTTPS + Let's EncryptHTTPS + Let's Encrypt
HTTPS + Let's Encrypt
 
WordPress-Templates mit Twig erstellen - PHPUGFFM
WordPress-Templates mit Twig erstellen - PHPUGFFMWordPress-Templates mit Twig erstellen - PHPUGFFM
WordPress-Templates mit Twig erstellen - PHPUGFFM
 

Kürzlich hochgeladen

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Kürzlich hochgeladen (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

PHP selber bauen

  • 1. PHP selber bauen PHP User Group Frankfurt 31.03.2011 Walter Ebert http://www.flickr.com/photos/zunami/4738471442/
  • 2. Willkommen bei den anonymen PHPlern Mein Name ist Walter und ich kompiliere mir PHP selber Nicht immer, aber immer öfter Goggler-Handzeigen
  • 7. Kompatibilität / Features Du musst zum Beispiel: PHP4 irgendwer? ● eine alte PHP Version unterstützen ● mehrere PHP Versionen bzw. Konfigurationen testen ● proprietäre Extensions nutzen die nur mit bestimmten PHP Versionen funktionieren ● die letzte Entwickler-Version testen (trunk)
  • 9. b ./configure make sudo make install http://www.php.net/downloads.php
  • 11. Linux Unix Mac OS X Windows -> benutze einfach die binaries oder wenn man wirklich muss; besuche: http://wiki.php.net/internals/windows/stepbystepbuild
  • 12. b = escape linebreaks sudo apt-get install automake autoconf gcc libtool binutils subversion libxml2-dev libcurl4-dev libfreetype6-dev libjpeg-dev libpng-dev Packages fuer debian / ubuntu
  • 13. ./configure --help Usage: configure [options] [host] b Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print `checking...' messages --version print the version of autoconf that created con Directory and file names: --prefix=PREFIX install architecture-independent files in PREF [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFI [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/e --sharedstatedir=DIR modifiable architecture-independent data in DI [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/ --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include]
  • 14. b ./configure --with-apxs2 --with-mysql=mysqlnd --with-mysqli=mysqlnd -–with-pdo-mysql=mysqlnd --with-curl --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr Fuer Apache: Sudo apt-get install apache2-prefork-dev
  • 15. b ./configure --enable-fpm --with-gettext --enable-zend-multibyte --enable-mbstring --with-mcrypt --enable-soap --enable-wddx --with-xsl --with-curl --with-openssl --with-zlib-dir=/usr --with-bz2 --enable-zip --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-exif --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-pgsql=/usr --with-pdo-pgsql --without-sqlite --without-sqlite3 --without-pdo-sqlite --with-mm=/usr
  • 16.
  • 17. b ./configure ... checking whether to build shared libraries... no checking whether to build static libraries... yes creating libtool appending configuration tag "CXX" to libtool Generating files updating cache ./config.cache creating ./config.status creating php5.spec creating main/build-defs.h creating scripts/phpize creating scripts/man1/phpize.1 creating scripts/php-config creating scripts/man1/php-config.1 creating sapi/cli/php.1 creating main/php_config.h creating main/internal_functions.c creating main/internal_functions_cli.c +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ Thank you for using PHP.
  • 18. b make /bin/sh /home/walter/Downloads/php-5.3.5/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/home/walter/Downloads/php-5.3.5/ext/date/ -DPHP_ATOM_INC -I/home/walter/Downloads/php-5.3.5/include ... lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt -o sapi/cli/php Generating phar.php Generating phar.phar PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. directorygraphiterator.inc directorytreeiterator.inc clicommand.inc invertedregexiterator.inc pharcommand.inc phar.inc Build complete. Don't forget to run 'make test'.
  • 19. make test PHP : /home/walter/Downloads/php-5.3.5/sapi/cli/php b ===================================================================== PHP_SAPI : cli PHP_VERSION : 5.3.5 ZEND_VERSION: 2.3.0 PHP_OS : Linux - Linux LM-U200 2.6.35-25-generic #44-Ubuntu SMP INI actual : /home/walter/Downloads/php-5.3.5/tmp-php.ini ... WARNED TEST SUMMARY --------------------------------------------------------------------- via [ext/pdo_sqlite/tests/common.phpt] SQLite PDO Common: Bug #34630 (inserting streams as LOBs)[ext/pdo via [ext/sqlite/tests/pdo/common.phpt] SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/s Bug #39863 (file_exists() silently truncates after a null byte) [ext/ ===================================================================== You may have found a problem in PHP. We would like to send this report automatically to the PHP QA team, to give us a better understanding of how the test cases are doing. If you don't want to send it immediately, you can choose "s" to save the report to a file that you can send us later. Do you want to send this report now? [Yns]:
  • 20. sudo make install Generating phar.php Generating phar.phar b PEAR package PHP_Archive not installed: generated phar will directorygraphiterator.inc directorytreeiterator.inc clicommand.inc invertedregexiterator.inc pharcommand.inc phar.inc Installing PHP SAPI module: fpm Installing PHP CLI binary: /usr/local/bin/ ... Installing man pages: /usr/local/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/lib/php/ [PEAR] Archive_Tar - installed: 1.3.7 [PEAR] Console_Getopt - installed: 1.2.3 [PEAR] Structures_Graph- installed: 1.0.3 [PEAR] XML_Util - installed: 1.2.1 [PEAR] PEAR - installed: 1.9.1 Warning! a PEAR user config file already exists from a previous Wrote PEAR system config file at: /usr/local/etc/pear.conf You may want to add: /usr/local/lib/php to your php.ini include_path /home/walter/Downloads/php-5.3.5/build/shtool install -c ext/phar/ph ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar Installing PDO headers: /usr/local/include/php/ext/pdo/
  • 21. b sudo cp php.ini-development /usr/local/lib/php.ini oder sudo cp php.ini-production /usr/local/lib/php.ini
  • 22. Mit der neuesten Entwickler-Versionb Entweder: wget http://snaps.php.net/php-trunk-latest.tar.bz2 Oder: svn checkout http://svn.php.net/repository/php/php-src/trunk/ trunk cd trunk ./buildconf ./configure make sudo make install
  • 23. Standard aktivierte Extensions (in php 5.3) Core ctype date dom ereg fileinfo filter hash Iconv json libxml pcre PDO pdo_sqlite Phar posix Reflection session SimpleXML SPL SQLite sqlite3 standard tokenizer xml xmlreader xmlwriter ./configure --disable-simplexml --without-sqlite3
  • 24. Populäre PHP Extensions ● APC, xCache, eAccelerator ● Memcache, memcached ● Xdebug ● PostgreSQL, mongoDB, OCI8, SQLSRV ● Sphinx, xapian, mnogosearch, solr ● Suhosin
  • 25. PECL b sudo pecl install apc http://pecl.php.net/
  • 26. Extensions kompilieren b phpize ./configure make sudo make install Phpize gibt es ab php 5.3.6 auch fuer windows
  • 27. /usr/local/lib/php.ini b [apc] extension=apc.so [xdebug] zend_extension="/usr/local/lib/php /extensions/no-debug-non-zts- 20090626/xdebug.so"
  • 29. Walter Ebert Web Development @wltrd walterebert.de blog.walterebert.com slideshare.net/walterebert Search Meetup Frankfurt (12.4.) searchmeetupfrankfurt.de