소스 코드에서 PHP를 설치하려고 하는데 여기에 문제가 있어서 검색해 보았지만 나에게 유용한 것은 없습니다. 먼저, 여기 내 install.sh가 있습니다.
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/ \
--with-apxs2=/usr/local/programs/apache2.4/bin/apxs
if [ 0 != $? ]; then
echo "Auto installation failed! -- Configuration"
exit
fi
make
if [ 0 != $? ]; then
echo "Auto installation failed! -- Make"
exit
fi
sudo make install
if [ 0 != $? ]; then
echo "Auto installation failed! -- Configuration"
exit
fi
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
fi
php --version
php --ini
스크립트가 완료된 후 여기에 이상한 정보가 있습니다.
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
null인 이유 는 무엇 Loaded Configuration File: (none)
입니까? 설치 중에 문제가 있습니까?
또한,
$ ls /usr/local/programs/php5/etc/
pear.conf php.ini php.ini.bk
답변1
--with-config-file-path=/usr/local/programs/php5/etc/php.ini
부정확하다. 당신은길아니파일.
--with-config-file-path=/usr/local/programs/php5/etc/