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.

Compile Php Faild!!

Discussion in 'General Discussion' started by reporter, Sep 27, 2009.

  1. reporter

    reporter Active Member

    Joined:
    Jul 23, 2009
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    hello,

    root@linux1 [~/php-5.2.11]# make test

    Build complete.root/php-5.2.11/sapi/cli/phpPHP executable specified by TEST_PHP_E
    Don't forget to run 'make test'.

    PHP: Error parsing /root/php-5.2.11/tmp-php.ini on line 200

    Warning: putenv(): Safe Mode warning: Cannot set environment variable 'SSH_CLIENT' - it's not in the allowed list in /root/php-5.2.11/run-tests.php on line 98

    Warning: putenv(): Safe Mode warning: Cannot set environment variable 'SSH_AUTH_SOCK' - it's not in the allowed list in /root/php-5.2.11/run-tests.php on line 99

    Warning: putenv(): Safe Mode warning: Cannot set environment variable 'SSH_TTY' - it's not in the allowed list in /root/php-5.2.11/run-tests.php on line 100

    Warning: putenv(): Safe Mode warning: Cannot set environment variable 'SSH_CONNECTION' - it's not in the allowed list in /root/php-5.2.11/run-tests.php on line 101

    Warning: set_time_limit(): Cannot set time limit in safe mode in /root/php-5.2.11/run-tests.php on line 104

    +-----------------------------------------------------------+
    | ! WARNING ! |
    | You are running the test-suite with "safe_mode" ENABLED ! |
    | |
    | Chances are high that no test will work at all, |
    | depending on how you configured "safe_mode" ! |
    +-----------------------------------------------------------+

    ERROR: invalid PHP executable specified by TEST_PHP_EXECUTABLE = /root/php-5.2.11/sapi/cli/php
    make: [test] Error 1 (ignored)
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Did you configure your source before running make?

    The following will show you your current PHP options:
    Code:
    # php -i | grep -configure
    
    Then you need to run configure with those same options (!!!OPTIONS!!!):
    Code:
    # ./configure [b]!!!OPTIONS!!![/b]
    # make
    # make check
    # make install
    
    You could just simply use EasyApache but if for some odd reason, it doesn't work .....

    Here is the basic instructions to manually compile PHP 5.2.11 (part of which is already given above) ....

    It sometimes helps to find all the "extension=(something).so" lines in your /usr/local/lib/php.ini file and comment those lines out with a semicolon prefix (;) before running your upgrade. This will prevent modules incompatible with the new version from derailing your upgrade. You can re-enable those lines after the upgrade.

    Code:
    # cd /usr/local/src
    # wget http://us3.php.net/get/php-5.2.11.tar.bz2/from/us.php.net/mirror
    # tar jxvf php-5.2.11.tar.bz2
    # cd ./php-5.2.11
    # php -i | grep configure    # Take note of your current PHP versions './configure' options
    # ./configure     #Append your previous noted './configure' options from last line here
    # make
    # make check
    # make install
    
    That's pretty much the basic rundown. You may need to go back and setup any additional load extensions
    such as Zend Optimizer or IonCube again after you upgrade your PHP but this should get you upgraded.
     
    #2 Spiral, Sep 27, 2009
    Last edited: Sep 27, 2009
Loading...

Share This Page