Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install php from source code, but I got a problem here, I googled it but nothing useful for me. First, here is my

make clean

./configure \
        --prefix=/usr/local/programs/php5 \
        --disable-fileinfo \
        --with-config-file-path=/usr/local/programs/php5/etc/php.ini \
        --with-config-file-scan-dir=/usr/local/programs/php5/etc/ \

if [  0 != $? ]; then
        echo "Auto installation failed! -- Configuration"

if [  0 != $? ]; then
        echo "Auto installation failed! -- Make"

sudo make install
if [  0 != $? ]; then
        echo "Auto installation failed! -- Configuration"

echo "Copying the min size config file."
sudo cp php.ini.clean.bk /usr/local/programs/php5/etc/php.ini

if [ -a /usr/bin/php ]; then
        sudo rm /usr/bin/php
        sudo ln -s /usr/local/programs/php5/bin/php /usr/bin/php

php --version
php --ini

After the script is done, I got some weird information here:

Configuration File (php.ini) Path: /usr/local/programs/php5/etc/php.ini
Loaded Configuration File:         (none)
Scan for additional .ini files in: /usr/local/programs/php5/etc/
Additional .ini files parsed:      /usr/local/programs/php5/etc/php.ini

Why Loaded Configuration File: (none) is null, is there anything wrong during the installation ?


$ ls /usr/local/programs/php5/etc/
pear.conf  php.ini  php.ini.bk
share|improve this question

closed as off-topic by Jacob, Andrew B, Tom O'Connor May 18 '14 at 6:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Jacob, Andrew B, Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

is incorrect. You specify a path not a file.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.