The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

upgrade to php5?

Discussion in 'General Discussion' started by aboyz, Nov 28, 2006.

  1. aboyz

    aboyz Well-Known Member

    Joined:
    Sep 29, 2003
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Anyone know how you can upgrade to php5? because i upgraded my mysql to 5.0.18 and everytime i go to WHM > apache upgrade, the php5 is not choosable. and it say to upgrade my mysql to 5.0.21. So my questions is how do i upgrade my mysql. can i do it in port manually? anyone know how that is done. Please point me to the right direction.
    I also upgraded to the edge cpanel. As i thought that will have php5 with apache 2 ? but that is not the case. Anyone know what I should do to get php5 going and apache 2 going?

    WHM 10.8.0 cPanel 11.0-E529
    FreeBSD 6.1-RELEASE i386 - WHM X v3.1.0

    I'm getting any error when doing
    upcp --force
    easyapache

    Installing Apache 2...
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Done!
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    make install failed to build conf/, restoring and aborting... at /usr/local/cpanel/Cpanel/EasyApache.pm line 884.


    thanks
     
    #1 aboyz, Nov 28, 2006
    Last edited: Nov 28, 2006
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    cPanel uses what FreeBSD makes available via the ports system. If you want a newer version of MySQL:

    1. touch /etc/mysqlupdisable
    2. Download the appropriate tarball from mysql.com
     
  3. aboyz

    aboyz Well-Known Member

    Joined:
    Sep 29, 2003
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    ok.

    Ok.

    I did a portupgrade on mysql and it is latest now. now when i do
    easyapache

    I can choose php5 and apache 2 for installation, but i'm getting this error. can someone help me please..

    Installing Apache 2...
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Done!
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    make install failed to build conf/, restoring and aborting... at /usr/local/cpanel/Cpanel/EasyApache.pm line 884.

    Line 755 at cPanelFuntions.pm is
    return 1 if File::Copy::Recursive::rcopy( $srcfile, $destfile );
    Cpanel::Logger::cplog( qq{rcopy('$srcfile', '$destfile') failed: $!}, 'warn', $cppkgname );
    return ( 0, $! ) if wantarray;
    return 0;
    }

    and there is no
    /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm
    I can't find that file there.



    What does this error mean?>? anyone know..
     
    #3 aboyz, Nov 28, 2006
    Last edited: Nov 28, 2006
  4. aboyz

    aboyz Well-Known Member

    Joined:
    Sep 29, 2003
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Here is the error.
    Making install in ssl
    /usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -D_REENTRANT -D_THREAD_SAFE -DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/srclib/apr/include -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/srclib/apr-util/include -I. -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/os/unix -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/server/mpm/prefork -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules/http -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules/filters -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules/proxy -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/include -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules/generators -I/usr/include/openssl -I/usr/local/include -I/usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules/dav/main -prefer-non-pic -static -c mod_ssl.c && touch mod_ssl.lo
    In file included from mod_ssl.h:93,
    from mod_ssl.c:27:
    /usr/include/openssl/err.h:289: error: redefinition of typedef 'ERR_FNS'
    /usr/local/include/openssl/ossl_typ.h:152: error: previous declaration of 'ERR_FNS' was here
    In file included from mod_ssl.h:98,
    *** Error code 1

    Stop in /usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules/ssl.
    *** Error code 1

    Stop in /usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules/ssl.
    *** Error code 1

    from mod_ssl.c:27:
    Stop in /usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59/modules.
    /usr/include/openssl/rand.h:86: error: redefinition of typedef 'RAND_METHOD'
    *** Error code 1
    /usr/local/include/openssl/ossl_typ.h:131: error: previous declaration of 'RAND_METHOD' was here

    Stop in /usr/home/cpeasyapache/work/cPanelEA/Apache2.pm.build/httpd-2.0.59.
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    Use of uninitialized value in -e at /usr/local/lib/perl5/site_perl/5.8.8/File/Copy/Recursive.pm line 184.
    Copying a symlink (/usr/local/apache/conf.2.orig/ssl.crt) whose target does not exist at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 755
    make install failed to build conf/, restoring and aborting... at /usr/local/cpanel/Cpanel/EasyApache.pm line 884.


    it got to do with mod_ssl
     
  5. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    okay slight suggestion. please downgrade cpanel to at least current version. it gets updated more frequently than edge, and edge is really buggy. i tried using it for a week, and as much understanding as i could be, i could not keep it so i rolled back to current.

    edge should be only used if you want to toy around with features and stuff but only on devel boxes, never on production.

    i thought i could do it but i couldn't
     
  6. aboyz

    aboyz Well-Known Member

    Joined:
    Sep 29, 2003
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    ok

    i got apache2.2 to compile now using easyapache

    but somehow the php5 is not working. that is one thing that is not working.

    I tried to install it from port and i went ok.

    when i do a test on the website
    phpinfo.php
    <?php phpinfo(); ?>

    It doesn't display anything, except a white page. with no error.
    Anyone know what can cause it not to display anything?

    I checked the httpd.conf and saw the
    Addtype http
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php-source .phps


    anyone know why it is not working?? What do i need to look for thx

    Thanks
     
    #6 aboyz, Nov 29, 2006
    Last edited: Nov 29, 2006
  7. Imago

    Imago Active Member

    Joined:
    Feb 21, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    I am also having a similar issue with php5 - index pages start downloading and want me to downgrade to php 4.4.4. This is however on my new servers. On the old server, the same sites are opening with php 5.1.4. Have no idea why it works there and doesn't work here.
     
  8. aboyz

    aboyz Well-Known Member

    Joined:
    Sep 29, 2003
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    same here.

    can someone please help me. i'm having issues with php5. php4 work fine.

    i can do
    apache 1.3.x
    php5
    mysql 5

    but i can't do
    apache 2.2.x
    php5
    mysql5

    i can do

    apache 2.2.x
    php4
    mysql5

    This is a pain!!

    can someone shed some light
     
Loading...

Share This Page