User Tools

Site Tools


plugins:phpswitcher:fcgid:php5.2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
plugins:phpswitcher:fcgid:php5.2 [2014/03/07 15:21]
nuxwin created
plugins:phpswitcher:fcgid:php5.2 [2014/04/24 02:24] (current)
nuxwin [Configuration]
Line 7: Line 7:
 =====Creating build environment===== =====Creating build environment=====
  
-  cd /​usr/​local/​src +  ​cd /​usr/​local/​src 
-  mkdir -p php_buildenv/​php52 && cd php_buildenv/​php52 +  ​mkdir -p php_buildenv/​php52 && cd php_buildenv/​php52 
-  apt-get update && apt-get install build-essential+  ​apt-get update && apt-get install build-essential
  
-=====Installing ​needed libraries=====+=====Installing ​build dependencies=====
  
-  apt-get build-dep php5 +  ​apt-get build-dep php5 
-  apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev \+  ​apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev \
   libssl-dev libc-client2007e libc-client2007e-dev libpq5   libssl-dev libc-client2007e libc-client2007e-dev libpq5
  
Line 21: Line 21:
   ln -s /​usr/​lib/​libc-client.a /​usr/​lib/​x86_64-linux-gnu/​libc-client.a   ln -s /​usr/​lib/​libc-client.a /​usr/​lib/​x86_64-linux-gnu/​libc-client.a
   ​   ​
-  # For i368 architectures+  # For i386 architectures
   ln -s /​usr/​lib/​libc-client.a /​usr/​lib/​i386-linux-gnu/​libc-client.a   ln -s /​usr/​lib/​libc-client.a /​usr/​lib/​i386-linux-gnu/​libc-client.a
  
 =====Fetching PHP sources===== =====Fetching PHP sources=====
-  wget http://​museum.php.net/​php5/​php-5.2.17.tar.gz +  ​wget http://​museum.php.net/​php5/​php-5.2.17.tar.gz 
-  tar -xzf php-5.2.17.tar.gz +  ​tar -xzf php-5.2.17.tar.gz 
-  cd php-5.2.17+  ​cd php-5.2.17
  
 ====The sources must be patched==== ====The sources must be patched====
Line 40: Line 40:
  
 =====Configuration===== =====Configuration=====
- 
-<WRAP center round todo 60%> 
-**Add missing configuration options for PDO (MySQL)** 
-</​WRAP>​ 
- 
  
 ====For 32 bits operating systems==== ====For 32 bits operating systems====
  
-  ./configure \+  ​./configure \
   --prefix=/​opt/​php-fcgid/​5.2 \   --prefix=/​opt/​php-fcgid/​5.2 \
   --with-config-file-scan-dir=/​opt/​php-fcgid/​5.2/​conf.d \   --with-config-file-scan-dir=/​opt/​php-fcgid/​5.2/​conf.d \
-  --with-pdo-pgsql \ 
   --with-zlib-dir \   --with-zlib-dir \
   --with-freetype-dir \   --with-freetype-dir \
Line 79: Line 73:
   --with-mysql \   --with-mysql \
   --with-mysql-sock=/​var/​run/​mysqld/​mysqld.sock \   --with-mysql-sock=/​var/​run/​mysqld/​mysqld.sock \
 +  --with-mysqli=/​usr/​bin/​mysql_config \
 +  --with-pdo-mysql \
 +  --with-pdo-pgsql \
   --with-jpeg-dir=/​usr \   --with-jpeg-dir=/​usr \
   --with-png-dir=/​usr \   --with-png-dir=/​usr \
Line 85: Line 82:
   --enable-ftp \   --enable-ftp \
   --with-kerberos \   --with-kerberos \
-  --with-mysqli=/​usr/​bin/​mysql_config \ 
   --with-gettext \   --with-gettext \
   --with-xmlrpc \   --with-xmlrpc \
Line 98: Line 94:
 ====For 64 bits operating systems==== ====For 64 bits operating systems====
  
-  ./configure+  ​./​configure ​\
   --prefix=/​opt/​php-fcgid/​5.2 \   --prefix=/​opt/​php-fcgid/​5.2 \
   --with-config-file-scan-dir=/​opt/​php-fcgid/​5.2/​conf.d \   --with-config-file-scan-dir=/​opt/​php-fcgid/​5.2/​conf.d \
-  --with-pdo-pgsql \ 
   --with-zlib-dir \   --with-zlib-dir \
   --with-freetype-dir \   --with-freetype-dir \
Line 129: Line 124:
   --with-mysql \   --with-mysql \
   --with-mysql-sock=/​var/​run/​mysqld/​mysqld.sock \   --with-mysql-sock=/​var/​run/​mysqld/​mysqld.sock \
 +  --with-mysqli=/​usr/​bin/​mysql_config \
 +  --with-pdo-mysql \
 +  --with-pdo-pgsql \
   --with-jpeg-dir=/​usr \   --with-jpeg-dir=/​usr \
   --with-png-dir=/​usr \   --with-png-dir=/​usr \
Line 135: Line 133:
   --enable-ftp \   --enable-ftp \
   --with-kerberos \   --with-kerberos \
-  --with-mysqli=/​usr/​bin/​mysql_config \ 
   --with-gettext \   --with-gettext \
   --with-xmlrpc \   --with-xmlrpc \
Line 144: Line 141:
   --with-imap \   --with-imap \
   --with-imap-ssl \   --with-imap-ssl \
-  --with-libdir=/​lib/​x86_64-linux-gnu/+  --with-libdir=/​lib/​x86_64-linux-gnu
  
 **Note:** If you need more modules, you must tune the configuration options and install needed libraries. **Note:** If you need more modules, you must tune the configuration options and install needed libraries.
Line 157: Line 154:
 Test your php binary by running the following command: Test your php binary by running the following command:
  
-  /​opt/​php-fcgid/​5.2/​bin/​php-cgi -v+  ​/​opt/​php-fcgid/​5.2/​bin/​php-cgi -v
  
 which should give a result such as (look for the fgci part): which should give a result such as (look for the fgci part):
/var/www/virtual/i-mscp.net/wiki/htdocs/data/attic/plugins/phpswitcher/fcgid/php5.2.1394205711.txt.gz · Last modified: 2014/03/07 15:21 by nuxwin