← Back to team overview

enterprise-support team mailing list archive

Re: [Question #170809]: php-pear not working at /var/www/

 

Question #170809 on apache2 in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/apache2/+question/170809

paul88 gave more information on the question:
Hi Jacobsallan, 
I have go through and tested in the website: http://pear.php.net/manual/en/installation.checking.php
It seemed no problem.
I checked: 
$pear -> worked
$pear version -> worked
Verify the included_path:
1)  $ pear config-get php_dir -> worked, displayed -> /usr/share/php
2) $php --ini -> worked
3) $ php -c /path/to/php.ini -r 'echo get_include_path()."\n";' -> worked -> displayed -> .:/usr/share/php:/usr/share/pear
4) Create a new check_pear.php file -> worked -> displayed -> bool(true)

I have a file in /var/www/htmlCD name test.php, it worked, display similar as: http://www.kirupa.com/web/testphp.htm But when i typeed: http://localhost/htmlCD/index.php, it does not work and displayed blank.
Content of index.php:
<?php
//load Smarty library and config files
require_once 'include/app_top.php';
//load Smarty template file
$page = new Page();
$page->display('index.tpl');
?>

I think the first part LOAD SMARTY do not work.
Do you have any idea to test the SMARTY?

Thanks in Advance.

-- 
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for
apache2 in Ubuntu.