Hi,
When I do click on the phpconfig.php link from
http://ip-of-machine/phpconfig/, it returns a page with the actual
contents of that file (phpconfig.php) and doesn't load the page. See some
of the output below;
<?PHP
/**
*
* Asterisk configuration file interface script
*
*
*
*
*
* phpconfig:,v 1.0 2003/07/03 17:19:37
* Authors: Dave Packham <dave.packham@utah.edu>
* Rob Birkinshaw <robert.birkinshaw@utah.edu>
*/
require_once("phpconfig_init.php");
require_once("cls_phpconfig.php");
require_once("cls_phpconfig_html.php");
// create and initalize objects //
$page = new Open_Conf_HTML();
$conf = new Open_Conf();
// setup 3pane html theme
$page->OC_HTML_set3Pane(true);
// pass thru phpconfig_init paramaters to object
$conf->OC_setConfDirectories($conf_directories);
$conf->OC_setTempDir($temporary_directory);
$conf->OC_setTempPrefix($temporary_file_prefix);
$conf->OC_setAccessFile($access_file);
$conf->OC_setConfDir($default_conf_file_direcotry,$conf_directories);
$conf->OC_setConfFilter($conf_file_filter);
$conf->OC_setResetCmd($reset_cmd);
$conf->OC_setRemark($remark);
// pass thru html output parameters
$page->OC_HTML_setTextareaRows($textarea_rows);
$page->OC_HTML_setImagesDir($images_dir);
$page->OC_HTML_setLogo($logo);
$page->OC_HTML_setTitle($title);
$page->OC_HTML_setPageTitle($page_title);
$page->OC_HTML_setDescription($description);
$page->OC_HTML_setKeywords($keywords);
$page->OC_HTML_setWebmaster($webmaster);
$page->OC_HTML_setDisclaimer($disclaimer);
$page->OC_HTML_setFooterText($footer_text);
$page->OC_HTML_setLogoLink($logo_link);
// init top menu bar
$page->OC_HTML_setHeaderBar(array_merge($conf->_OC_conf_dirs ,
array("Re-Read
Configs"=>"phpconfig.php?reset=reset")));
// init side menus
$menuList = array();
$rightMenuList = array();
session_start();
// this session variable will be set by a login screen
// in a future release
// for now, fake it for the prototype
$_SESSION['valid_user'] = $fakeuser;
$conf->OC_checkValidUser();
if($_GET['file']) // conf file requested via menu
How do I proceed from here?
Thanks,
Julius.
> Hi,
>
> You need to click on the phpconfig.php to actually load the page. It is
because the file is not called index.php.> This could be changed in the apache conf file if wished.
>
> Let us know how you go.
>
> C
>
> -----Original Message-----
> From: World Wide Web Owner [mailto:www@mail.one2net.co.ug] On Behalf Of
Julius Kidubuka> Sent: 03 March 2005 09:45
> To: asterisk_list@burntwires.com
> Cc: timebandit001@gmail.com; asterisk-users@lists.digium.com
> Subject: Getting phpconfig to work?
>
> Hi,
>
> I have just tried to get phpconfig to work but to no avail. In my
browser I type; http://ip-of-machine/phpconfig/ and this returns the
following output;>
> Index of /phpconfig
> Name Last modified Size Description
>
----------------------------------------------------------------------------
----> Parent Directory 03-Mar-2005 12:15 -
> asterisk.reload 03-Mar-2005 12:28 1k
> cls_phpconfig.php 03-Mar-2005 11:48 14k
> cls_phpconfig_html.php 03-Mar-2005 11:55 17k
> images/ 24-Feb-2005 09:06 -
> phpconfig.php 14-Sep-2003 19:32 6k
> phpconfig_init.php 03-Mar-2005 11:44 2k
>
>
>
----------------------------------------------------------------------------
---->
> Apache/1.3.33 Server at ip-of-machine Port 80
>
>
> I have made the necessary changes to all the files in the phpconfig
directory and my DocumentRoot is set to "/usr/local/www/". To add to
this, I have php4-4.3.10_1 and apache+mod_ssl-1.3.33+2.8.22 installed on
my Asterisk box.>
> What could I be doing wrong?
>
> Thanks in advance!
>
> Rgds,
> Julius.
>
>
>
>