Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2009
    Posts
    42

    Question Compile Php Faild!!

    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. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    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 !!!OPTIONS!!!
    # 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.
    Last edited by Spiral; 09-27-2009 at 11:18 AM.

Similar Threads & Tags
Similar threads

  1. Problem: compile php with PDFLIB and PHP 5.1.6
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 09-08-2007, 05:32 AM
  2. Compile Only PHP
    By benito in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-19-2006, 07:02 PM
  3. IMAP and GD faild to install with PHP
    By Nenad ® in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-23-2005, 04:54 AM
  4. Install PHP Zip module and zziplib - Compile PHP individually
    By Arvand in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-16-2003, 06:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube