vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
Go Back   vBulletin SEO Forums > Blogs > Danny Bembibre, Crawlability Inc.

Enhancing 80 million pages.

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Pensamientos al azar acerca de vBSEO y www.bmwfaq.com
Rate this Entry

Source Compile PHP 5.2.4 for Plesk 8

Posted 11-13-2007 at 10:15 AM by Danny Bembibre
Updated 11-14-2007 at 04:15 PM by Philipp Herbers
Proceed at yourn risk, if you brake your server this won't be my problem .

I hate await when a new version of php is released that a packager built it. I prefer has the liberty of compile at any moment.

This procedure is tested in a Plesk 8.1 and in Plesk 8.2

Review the rpms installed:
Code:
[daniel@srv01 ~]$ rpm -qa | grep php
php-5.2.3-1.el4.art
php-common-5.2.3-1.el4.art
php-mysql-5.2.3-1.el4.art
php-gd-5.2.3-1.el4.art
php-xml-5.2.3-1.el4.art
Delete all php extension packages except the main packages, because the panel use it for allow give php support when new domain is configured.

Code:
rpm -e --nodeps php-mysql-5.2.3-1.el4.art php-gd-5.2.3-1.el4.art php-xml-5.2.3-1.el4.art


Download php

Code:
[daniel@srv01 ~]$ tar xzf php-5.2.4.tar.bz2
[daniel@srv01 ~]$ cd  php-5.2.4
Code:
./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu \
  --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc \
  --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var \ 
  --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache \
  --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug \ 
   --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl \
  --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf \
  --without-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl \ 
   --with-pspell --with-regex=system   \
    --with-xmlrpc=shared --with-zlib --with-layout=GNU \
  --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem \
  --enable-sysvshm --enable-wddx --with-pear=/usr/share/pear \ 
  --with-ldap=shared --with-mhash=shared --with-mcrypt=shared   \
  --enable-bcmath --enable-shmop --enable-calendar  \
  --enable-mbstring=shared --enable-mbregex \
  --with-apxs2=/usr/sbin/apxs --without-sqlite --without-pgsql \ 
  --with-mysqli=/usr/bin/mysql_config   \
  --with-kerberos --with-imap --with-imap-ssl=/usr/include/openssl \
  --enable-inline-optimization --disable-debug --disable-ipv6
Note: I use the new mysqli extension instead of old mysql extension, if you use mysqli need change in vBulletin config file:
Code:
//      ****** DATABASE TYPE ******
//      This is the type of the database server on which your vBulletin database will be located.
//      Valid options are mysql and mysqli.  Try to use mysqli if you are using PHP 5 and MySQL 4.1+
 
$config['Database']['dbtype'] = 'mysqli';
If the configure show a error read the error and install the related devel package.

Code:
make && make install
Make install add to the end of httpd.conf the following line "LoadModule php5_module modules/libphp5.so" delete it

Update the following files as follows
/etc/httpd/conf.d/php.conf

Code:
 
LoadModule php5_module modules/libphp5.so
 
AddHandler php5-script .php
AddType text/html .php
 
DirectoryIndex index.php
#AddType application/x-httpd-php-source .phps
Plesk panel, Horde, Watchdog and domains are working right.

Attached Thumbnails
Click image for larger version

Name:	plesk.JPG
Views:	891
Size:	34.3 KB
ID:	23  
Posted in BMW FAQ Club, Php
Comments 2 Email Blog Entry
Total Comments 2

Comments

Old
Philipp Herbers's Avatar
Great howto, Danny!

Thanks for sharing it.
permalink
Posted 11-14-2007 at 04:16 PM by Philipp Herbers Philipp Herbers is offline
Old
jasssem's Avatar
Thanks for sharing

ــــــــــــــــــــــــــــــــــــــــــــ
menokia Forum | nokia | نوكيا |
نوكيا بلوتوث برامج العاب ثيمات نغمات جوال فيديو برامج نوكيا صور
www.menokia.com/vb/
permalink
Posted 04-19-2008 at 01:59 PM by jasssem jasssem is offline
 
Total Trackbacks 0

Trackbacks

Recent Blog Entries by Danny Bembibre

All times are GMT -4. The time now is 06:56 PM.


Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.