[SOLVED]"session.o" and "framework_server_name()"

4 posts / 0 new
Last post
Hindi
Hindi's picture
[SOLVED]"session.o" and "framework_server_name()"

I installed Asterisk 1.8 and freePBX 2.10 on an OpenVZ container and after a lot of bugs fixed I can finaly reach the index.html.
I still have a fatal error when I try to access the admin page :

Quote:
PHP Fatal error: Call to undefined function framework_server_name() in /var/www/admin/config.php
on line 132

The information I found on google about this didn't help.

I have some warnings too :

Quote:
PHP Warning: include_once(): Failed opening '/etc/asterisk/freepbx.conf' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') in /var/www/admin/config.php on line 98

Quote:
PHP Warning: include_once(/etc/asterisk/freepbx.conf): failed to open stream:
No such file or directory in /var/www/admin/config.php on line 98

Quote:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/session.so' - /usr/lib/php5/20090626/session.so:
cannot open shared object file: No such file or directory in Unknown on line 0

I edited the php.ini file with extension=session.o but I can't find any session.o file in /var/lib/php5/. Also can't find the name of the package which contain the lib. Any idea ?

Thank you for your help !

SkykingOH
SkykingOH's picture
What version of PHP are you

What version of PHP are you using?

Do you have Pear installed?

What installation document are you following?

Scott Holtzman, CTO
Micro Advantage, Inc.

  • Hosted Open Source FreePBX
  • Hosted PBXTended
  • On Net connections for Time Warner and other Major Carriers
  • Asterisk FreePBX Consulting

    http://www.microadv.com

Hindi
Hindi's picture
I do not have pear installed

I do not have pear installed and I have an error when I try to do it, I need to fix it first.

I'm using PHP Version 5.3.3-7+squeeze13.

I followed this document www.fluxbox.co.uk/attachments/Asterisk_Guide.pdf

EDIT : pear is now installed (pear 1.9.4)

I still have the error about framework_server_name() in th los plus this one

Quote:
client denied by server configuration: /var/www/admin/index.html

And the same about index.cgi and index.pl

Hindi
Hindi's picture
I fixed the previous

EDIT : I was out of the container >.>

he logs now :

Quote:
[Tue Jul 17 15:25:15 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze13 with Suhosin-Patch configured -- resuming normal operations

[Tue Jul 17 15:25:21 2012] [error] PHP Warning: include_once(/etc/asterisk/freepbx.conf): failed to open stream: No such file or directory in /var/www/admin/config.php on line 98

[Tue Jul 17 15:25:21 2012] [error] PHP Warning: include_once(): Failed opening '/etc/asterisk/freepbx.conf' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/admin/config.php on line 98

[Tue Jul 17 15:25:21 2012] [error] PHP Fatal error: Call to undefined function framework_server_name() in /var/www/admin/config.php on line 132

I still have this error with framework_server_name()

It returns an error 500 when I try to reach the admin part of the freePBX interface.

Any idea ?