[Asterisk-Users] RE: Getting phpconfig to work?

Julius Kidubuka juki at one2net.co.ug
Thu Mar 3 03:17:02 MST 2005


Hi,

Does phpconfig require a particular php package installed? I have
php4-4.3.10_1 installed on my box. Does this have an effect?

What do I need to change in terms of ownership and permissions to files
located in the phpconfig directory? At the moment I have,

drwxr-xr-x  4 root  wheel    512 Mar  3 13:09 .
drwxr-xr-x  8 root  wheel    512 Mar  3 12:15 ..
drwxr-xr-x  2 root  wheel    512 Feb 24 09:06 CVS
-rwxrwxrwx  1 root  wheel    588 Mar  3 12:28 asterisk.reload
-rw-r--r--  1 root  wheel  14702 Mar  3 11:48 cls_phpconfig.php
-rw-r--r--  1 root  wheel  17846 Mar  3 11:55 cls_phpconfig_html.php
drwxr-xr-x  3 root  wheel    512 Feb 24 09:06 images
-rw-r--r--  1 root  wheel   6515 Sep 14  2003 phpconfig.php
-rw-r--r--  1 root  wheel   2128 Mar  3 11:44 phpconfig_init.php

Any indicators?

Rgds,
Julius.

> That means PHP isn't setup properly on your server; it isn't parsing the
> file as PHP. It is just outputting the code.
>
> Create a file named test.php and put this in the file:
>
> <?php
>
> phpinfo();
>
> ?>
>
> This should display lots of information in a table about your php
> installation.
>
> When you have this working; phpconfig should work.
>
> C
>
> -----Original Message-----
> From: World Wide Web Owner [mailto:www at mail.one2net.co.ug] On Behalf Of
> Julius Kidubuka
> Sent: 03 March 2005 10:02
> To: C. Tomlinson
> Subject: RE: Getting phpconfig to work?
>
> Hi,
>
> When I do click on the phpconfig.php link, it returns a page with the
> actual contents of that file (phpconfig.php) and doesn't load the page.
> See some of the output from http://ip-of-machine/phpconfig/phpconfig.php
> below;
>
> <?PHP
> /**
>  *
>  * Asterisk configuration file interface script
>  *
>  *
>  *
>  *
>  *
>  * phpconfig:,v 1.0 2003/07/03 17:19:37
>  * Authors: Dave Packham <dave.packham at utah.edu>
>  *          Rob Birkinshaw <robert.birkinshaw at 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 at mail.one2net.co.ug] On Behalf Of
>> Julius Kidubuka
>> Sent: 03 March 2005 09:45
>> To: asterisk_list at burntwires.com
>> Cc: timebandit001 at gmail.com; asterisk-users at 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.
>>
>>
>>
>>
>
>
>
>
>
>






More information about the asterisk-users mailing list