These instructions apply to PHPLIB running with CGI PHP. Most of
them is valid for mod_php as well, though. This section
offers an incremental approach to find installation problems,
should the above installation process fail.
We do have a support mailing list available under the address
#! /bin/sh --
echo "Content-Type: text/plain"
echo
id
echo
pwd
echo
env | sort
echo
Action php3-script /cgi/php
AddHandler php3-script .php3
DirectoryIndex index.php3 index.html index.htm
FancyIndexing on
to your config. This will map all requests to files ending in
/cgi/php as the URL handling /test2.php3 and see that it is being executed.
Make changes to your /test2.php3 under the URL
/cgi/php/test2.php3 as well? If so, you did not compile
your PHP interpreter with PHP interpreter (Assuming mod_php)
Assuming your server is already correctly setup
(don't forget to activate the PHP lines in
phpinfo() ?>
If you access this using a web browser now, it should spit out
much info about PHP, Apache and its environment.
Does you PHP include PHPLIB properly? Check your
include_path = pathname to directory with all the .inc files
auto_prepend_file = path to prepend.php3
track_vars = On
It should contain the following settings, too:
magic_quotes_gpc = On
<?php
$db = new DB_Example;
print "It works without error messages.
\n";
?>
PHPLIB installation requires that you adapt
<?php
include("table.inc"); // requires include_path to be functioning
$db = new DB_Example;
$db->query("select * from auth_user");
$t = new Table;
$t->heading = "on";
$t->show_result($db);
?>
When executing properly, this page will show you the user entry
for Checking that sessions work
Access the page /index.php3 that has been provided with the distribution. This page will try to set a cookie in your browser. Allow that cookie to be set. The page will display a headline with a counter. Reload that page. The counter must increment. If not, either your browser cannot deal properly with cookies or PHPLIB cannot properly read or write the table Checking that Authentication works
Try loading /showoff.php3 that has been provided with the distribution. This page will require a login. Login as