Pensamientos al azar acerca de vBSEO y www.bmwfaq.com
Source Compile PHP 5.2.4 for Plesk 8
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:
Delete all php extension packages except the main packages, because the panel use it for allow give php support when new domain is configured.

Download php
Note: I use the new mysqli extension instead of old mysql extension, if you use mysqli need change in vBulletin config file:
If the configure show a error read the error and install the related devel package.
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
Plesk panel, Horde, Watchdog and domains are working right.
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
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
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';
Code:
make && make install
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
Total Comments 2
Comments
| | Great howto, Danny! Thanks for sharing it. |
| Posted 11-14-2007 at 04:16 PM by Philipp Herbers |
| | Thanks for sharing ــــــــــــــــــــــــــــــــــــــــــــ menokia Forum | nokia | نوكيا | نوكيا بلوتوث برامج العاب ثيمات نغمات جوال فيديو برامج نوكيا صور www.menokia.com/vb/ |
| Posted 04-19-2008 at 01:59 PM by jasssem |
Total Trackbacks 0
Trackbacks
Recent Blog Entries by Danny Bembibre
- [How To] Funciona el mod_rewrite ? (03-27-2008)
- Setup Sphinx search in vBulletin (11-16-2007)
- Forum Stats Signature Generator (11-15-2007)
- Source Compile PHP 5.2.4 for Plesk 8 (11-13-2007)
- Photos of my new house (11-07-2007)
