你的位置:
问答吧
-> PHP
-> 问题详情
如何测试php是否安装成功?
make install 之后的信息是
[Copy to clipboard] [ - ]CODE:
[activating module `php5' in /etc/httpd/httpd.conf]
Installing PHP CLI binary: /usr/local/php/bin/
Installing PHP CLI man page: /usr/local/php/man/man1/
Installing build environment: /usr/local/php/lib/php/build/
Installing header files: /usr/local/php/include/php/
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php/lib/php/
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Archive_Tar - installed: 1.3.2
[PEAR] Structures_Graph- installed: 1.0.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR - installed: 1.6.1
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
Installing PDO headers: /usr/local/php/include/php/ext/pdo/
我该怎样处理?
我找不到php.ini
# find php | grep php.ini
php/include/php/main/php_ini.h
configure是这样的
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-config-file-path=/usr/local/php/www --with-zlib-dir=/usr/lib/ruby/1.8/i386-linux-gnu --enable-mbstring=all --with-gd --with-jpeg-dir=/usr/local/jepg6
版本是php5.2.5
作者: yuhe27913
发布时间: 2007-12-19
看看是否运行,不能知道马?
作者: SCys
发布时间: 2007-12-19
phpinfo();
作者: hahajohn2006
发布时间: 2007-12-19
看样子应该是成功了,但是好像php.ini好像还得手动设置
作者: 傲枭
发布时间: 2007-12-20
谢谢,就是配置的问题
再问一个php执行的问题
/usr/local/php/bin/php /usr/local/apache/htdocs/cacti/poller.php
报错
sh: -q: command not found
sh: -: command not found
请问如何处理?
作者: yuhe27913
发布时间: 2007-12-20
加参数-f
/usr/local/php/bin/php -f /usr/local/apache/htdocs/cacti/poller.php
作者: four498
发布时间: 2007-12-20