Jump to content

Testing PHP installation


Recommended Posts

How can I test the completeness of a php5 installation on a FreeBSD box running v-6.0 O/S and Apache 2.x. After installation, several *.php pages simply open up with a "ent" in the uppermost left-most corner of the page.

"apropos php" at the command line seems to indicate the the installation is present

...

...

...

apropos php

php(1)                   - PHP Command Line Interface 'CLI'

php-config(1)            - get information about PHP configuration and compile options

phpize(1)                - prepare a PHP extension for compiling

user 213% php-config

Usage: /usr/local/bin/php-config [OPTION]

Options:

  --prefix            [/usr/local]

  --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]

  --ldflags           [ -L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/pgsql/lib]

  --libs              [-lcrypt   -lcrypt -laspell -lpspell -lpq -lmysqlclient -lmcrypt -lltdl -liconv -lintl -lpng -lz -ljpeg -lcurl -lssl -lcrypto -lm  -lxml2 -lz -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt ]

  --extension-dir     [/usr/local/lib/php/extensions/debug-non-zts-20060613]

  --include-dir       [/usr/local/include/php]

  --php-binary        [/usr/local/bin/php]

  --php-sapis         [cli apache2handler]

  --configure-options [--with-apxs2=/usr/local/apache2/bin/apxs --with-gettext --with-mcrypt --with-iconv --enable-mbstring=all --enable-mbregex --with-gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-mysql --enable-fastcgi --enable-force-cgi-redirect --enable-discard-path --disable-path-info-check --with-openssl --with-curl --with-pgsql --with-pspell --enable-zend-multibyte --with-pear=/usr/lib/php --with-tsrm-pth --enable-debug]

  --version           [5.2.6]

  --vernum            [50206]

 

phpinfo() does not run, probably because --disable-path-info-check is set

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/112847-testing-php-installation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.