php not rendering, but only for vicidial files

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

php not rendering, but only for vicidial files

Postby butchie3980 » Wed Jul 02, 2008 12:42 pm

I'm doing the scratch install steps, when I get to the part where I load the admin.php page,
I get the php code in my web browser. It's the same for other pages in the vicidial and agc folders.

To test if php was running, I made a test page with "phpinfo()" in it and put it in the vicidial
folder as well as the agc folder. They both rendered just fine (I saw the phpinfo output).
So....php seems to be running OK.
(I've also got phpMyAdmin running, and it looks good)

OK. For starters, here's my configuration:
OpenSuSE 10.3
Kernel 2.6.22.18-0.2-default

php5.ini has
memory_limit = 256M

"rpm -qa | grep php" returns this:
php5-tokenizer-5.2.6-0.1
php5-ctype-5.2.6-0.1
php5-mbstring-5.2.6-0.1
php5-5.2.6-0.1
php5-json-5.2.6-0.1
php5-dom-5.2.6-0.1
php5-hash-5.2.6-0.1
php5-iconv-5.2.6-0.1
php5-sqlite-5.2.6-0.1
php5-xmlreader-5.2.6-0.1
php5-mcrypt-5.2.6-0.1
php5-bz2-5.2.6-0.1
phpMyAdmin-2.11.0-14.2
php5-xmlwriter-5.2.6-0.1
php5-pdo-5.2.6-0.1
php5-mysql-5.2.6-0.1
apache2-mod_php5-5.2.6-0.1
php5-zlib-5.2.6-0.1
php5-gd-5.2.6-0.1

"rpm -qa | grep apache" returns this:
apache2-mod_python-3.3.1-54
apache2-doc-2.2.4-70.4
apache2-example-pages-2.2.4-70.4
apache2-prefork-2.2.4-70.4
apache2-utils-2.2.4-70.4
apache2-2.2.4-70.4
apache2-mod_perl-2.0.3-55
apache2-mod_php5-5.2.6-0.1

Thanks for your help,
BW
butchie3980
 
Posts: 8
Joined: Tue Jul 01, 2008 4:40 pm

Postby mflorell » Wed Jul 02, 2008 1:31 pm

the VICIDIAL PHP pages do not use any exotic modules or extensions so I'm not really sure what the problem could be. Usually that is just a memory error. Have you tried turning on full debug and checking the logs?

If nothing else works I would recommend loading Apache/PHP from source.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby butchie3980 » Tue Jul 08, 2008 11:09 am

mflorell wrote:the VICIDIAL PHP pages do not use any exotic modules or extensions so I'm not really sure what the problem could be. Usually that is just a memory error. Have you tried turning on full debug and checking the logs?

If nothing else works I would recommend loading Apache/PHP from source.


Thanks for the reply. As much as I love SuSE, I figured I should start over...using CentOS. Much better experience this time. I still want to use SuSE if I could, so when I have some free cycles, I'm going to follow your recommendation to load Apache and PHP from source. Thanks again.
butchie3980
 
Posts: 8
Joined: Tue Jul 01, 2008 4:40 pm

Postby mcargile » Tue Jul 08, 2008 1:01 pm

There are two problems that pop up with OpenSuSE with the web interface. First off Matt uses short tags in his php code which is disabled in the /etc/php5/apache2/php.ini in OpenSuSE. To fix this change the line:
Code: Select all
short_open_tag = Off

to
Code: Select all
short_open_tag = On

The second problem is that there is a bug in the php on OpenSuSE that treats the email address in this line of admin.php as a short opening tag.
Code: Select all
# Copyright (C) 2008  Matt Florell <vicidial@gmail.com>    LICENSE: AGPLv2

if you change it to:
Code: Select all
# Copyright (C) 2008  Matt Florell vicidial@gmail.com    LICENSE: AGPLv2

the problem stops.

Now to discuss your new problem... CentOS. CentOS is one of the operating systems that we do not suggest using for Vicidial. This is because of some nasty patches that they included in their kernel that "improve" performance for desktop systems but cause big problems with realtime processes like Asterisk. At higher loads it can cause Asterisk to not respond to events in time. This is in particular a problem on systems using TDM cards. If you are going to use CentOS you need to download a vanilla kernel from kernel.org and compile it instead.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Postby butchie3980 » Tue Jul 08, 2008 1:58 pm

mcargile wrote:There are two problems that pop up with OpenSuSE with the web interface.
....snip....
Now to discuss your new problem... CentOS. CentOS is one of the operating systems that we do not suggest using for Vicidial.
.....
.


Wow, thanks for the help on the SuSE config (i'll try that today), plus the warning on CentOS. Should I go back to SuSE, then? what would you recommend as the "best" distro? I started with SuSE only because it is familiar territory for me, but I don't want that to hurt performance.

Thanks again,
butchie
butchie3980
 
Posts: 8
Joined: Tue Jul 01, 2008 4:40 pm

Postby mcargile » Tue Jul 08, 2008 2:20 pm

We have been using OpenSuSE 10.3 for a number of installations lately and have no bigger problems than the ones I just mentioned.

You still want to recompile the kernel in line with what Matt has in the scratch install though as it uses one of the desktop preemption models but you can use the kernel sources that OpenSuSE offers.

Also add the Packman package repository as you will not have to compile lame from scratch. There is also an OpenSuSE compatible init script in the extra section of the astguiclient source files (atleast in SVN).
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am


Return to Support

Who is online

Users browsing this forum: No registered users and 119 guests