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

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
plugins:phpswitcher:fcgid:php5.2 [2014/04/24 01:25]
nuxwin
plugins:phpswitcher:fcgid:php5.2 [2014/04/24 02:24]
nuxwin [For 64 bits operating systems]
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 build dependencies===== =====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 44: Line 44:
 **Add missing configuration options for PDO (MySQL)** **Add missing configuration options for PDO (MySQL)**
 </​WRAP>​ </​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 77:
   --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 86:
   --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 98:
 ====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 128:
   --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 137:
   --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 145:
   --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 158:
 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/pages/plugins/phpswitcher/fcgid/php5.2.txt · Last modified: 2014/04/24 02:24 by nuxwin