cPanel php to 5.2.11 - Upgrading

HyperVM, Virtuozzo access, configuring and optimizing your VPS server

cPanel php to 5.2.11 - Upgrading

Postby irfansblog » Sun Dec 13, 2009 9:21 am

This i want to share ---->

I have a Centos VPS with cPanel which had php 5.2.8 .
So then I tried to install Zen Cart.
And that gave errors of no Curl and No Gd
---------------------
# PHP GD Support = OFF Click here for more info
# CURL NON-SSL Capability = CURL not compiled into PHP - notify server
# CURL SSL Capability = CURL not compiled into PHP - notify server administrator Click here for more info
# CURL NON-SSL Capability via Proxy = CURL not compiled into PHP - notify server administrator Click here for more info
# CURL SSL Capability via Proxy = CURL not compiled into PHP - notify server administrator Click here for more info
------------------------------
Seems that these would be standard or should have been standard.

So I tried to upgrade and compile php 5.2.11 with
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr/local/mysql \
--with-pdo-mysql \
--with-mysqli \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-libxml-dir=/usr/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring
-------------------------

And then the Apache would not start giving the error:
---------------
Syntax error on line 36 of /usr/local/apache/conf/httpd.conf:
API module structure 'php5_module' in file /usr/lib/httpd/modules/libphp5.so is garbled - expected signature 41503230 but saw 41503232 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?
irfansblog
 
Posts: 104
Joined: Thu Dec 10, 2009 7:06 am

Return to VPS hosting

Who is online

Users browsing this forum: No registered users and 1 guest