我试图从源代码安装
PHP,但我在这里遇到了问题,
我用Google搜索,但对我没用.
首先,这是我的install.sh
我用Google搜索,但对我没用.
首先,这是我的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
为什么加载配置文件:(无)为空,安装过程中有什么问题?
也,
$ls /usr/local/programs/PHP5/etc/ pear.conf PHP.ini PHP.ini.bk