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

2005-03-03 Thread Julius Kidubuka
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 [EMAIL PROTECTED]
 *  Rob Birkinshaw [EMAIL PROTECTED]
 */
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:[EMAIL PROTECTED] On Behalf Of
Julius Kidubuka
 Sent: 03 March 2005 09:45
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 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
  NameLast modified   Size  Description
 

  Parent Directory03-Mar-2005 12:15  -
  asterisk.reload 03-Mar-2005 12:28 1k
  cls_phpconfig.php   03-Mar-2005 11:4814k
  cls_phpconfig_html.php  03-Mar-2005 11:5517k
  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.










-- 
Rgds,
Julius Kidubuka.
My advice to you is get married: if you find a good wife you'll be happy;
if not, you'll become a philosopher.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-03 Thread Julius Kidubuka
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 [EMAIL PROTECTED]
 *  Rob Birkinshaw [EMAIL PROTECTED]
 */
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:[EMAIL PROTECTED] On Behalf Of
Julius Kidubuka
 Sent: 03 March 2005 09:45
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 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
  NameLast modified   Size  Description
 

  Parent Directory03-Mar-2005 12:15  -
  asterisk.reload 03-Mar-2005 12:28 1k
  cls_phpconfig.php   03-Mar-2005 11:4814k
  cls_phpconfig_html.php  03-Mar-2005 11:5517k
  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.











___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-03 Thread Julius Kidubuka
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  wheel512 Mar  3 13:09 .
drwxr-xr-x  8 root  wheel512 Mar  3 12:15 ..
drwxr-xr-x  2 root  wheel512 Feb 24 09:06 CVS
-rwxrwxrwx  1 root  wheel588 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  wheel512 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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
  *  Rob Birkinshaw [EMAIL PROTECTED]
  */
 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:[EMAIL PROTECTED] On Behalf Of
 Julius Kidubuka
 Sent: 03 March 2005 09:45
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 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
  NameLast modified   Size  Description

 
 
  Parent Directory03-Mar-2005 12:15  -
  asterisk.reload 03-Mar-2005 12:28 1k
  cls_phpconfig.php   03-Mar-2005 11:4814k
  cls_phpconfig_html.php  03-Mar-2005 11:5517k
  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 

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

2005-03-03 Thread Guido Hecken
 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;

Try a simple php-script in this directory.
Something like this, name it test.php

?PHP
print (test)
?
If it does not print test, and you see the code instead, check your
httpd.conf for a general php-parsing problem.

Regards

Guido Hecken
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-03 Thread Julius Kidubuka

 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;

 Try a simple php-script in this directory.
 Something like this, name it test.php

 ?PHP
 print (test)
 ?
 If it does not print test, and you see the code instead, check your
 httpd.conf for a general php-parsing problem.

True, I have tried that and all I see is code instead. How do I go about
solving the php-parsing problem in my httpd.conf then?

Rgds,
Julius.

 Regards

 Guido Hecken
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users




___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-03 Thread Guido Hecken
 True, I have tried that and all I see is code instead. How do I go about
 solving the php-parsing problem in my httpd.conf then?

Try this in your (actual!!) httpd.conf
AddType application/x-httpd-php .php
Perhaps (not shure) this too, but the above should work

# LoadModule php4_module modules/libphp4.so
# DirectoryIndex index.php


Regards,

Guido Hecken

 

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-03 Thread Begumisa Gerald M
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;

It's quite likely that your Apache+PHP installation is incomplete /
broken.  You may want to check that out.


Cheers,
Gerald.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-03 Thread Julius Kidubuka
I have done so and it returns the very code I created that is;

?php
phpinfo();
?

Secondly, which php are you referring to? Is it php4 or mod_php? And if
so, which of the two do I need for this?

 Are you sure you have php correctly installed.

 Do the test page as below and let us know what it comes up with

 -Original Message-
 From: World Wide Web Owner [mailto:[EMAIL PROTECTED] On Behalf Of
 Julius Kidubuka
 Sent: 03 March 2005 10:17
 To: [EMAIL PROTECTED]
 Cc: asterisk-users@lists.digium.com
 Subject: RE: Getting phpconfig to work?

 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  wheel512 Mar  3 13:09 .
 drwxr-xr-x  8 root  wheel512 Mar  3 12:15 ..
 drwxr-xr-x  2 root  wheel512 Feb 24 09:06 CVS
 -rwxrwxrwx  1 root  wheel588 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  wheel512 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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
  *  Rob Birkinshaw [EMAIL PROTECTED]
  */
 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:[EMAIL PROTECTED] On Behalf Of
 Julius Kidubuka
 Sent: 03 March 2005 09:45
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; 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
  NameLast modified   Size  Description


 

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

2005-03-03 Thread Eric Wieling aka ManxPower
Julius Kidubuka wrote:
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;
Try a simple php-script in this directory.
Something like this, name it test.php
?PHP
print (test)
?
If it does not print test, and you see the code instead, check your
httpd.conf for a general php-parsing problem.

True, I have tried that and all I see is code instead. How do I go about
solving the php-parsing problem in my httpd.conf then?
Try installing mod_php.  Your web server does not consider .php files to 
be scripts.  I don't know why.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users