admin.php blank or full of php code - SOLVED

All installation and configuration problems and questions

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

admin.php blank or full of php code - SOLVED

Postby linuxknight » Wed Aug 06, 2008 10:44 am

Greetings,

I'm having trouble logging into the initial /vicidial/admin.php page.

I've scoured the suggestions on the site.
If I use short_open_tag = On I get page blank
If I turn that off, I get code from the PHP, eg:

LICENSE: GPLv2 # require("dbconnect.php"); ###################################################################################################### ###################################################################################################### ####### static variable settings for display options ###################################################################################################### ###################################################################################################### $page_width='770'; $section_width='720'; $header_font_size='3'; $subheader_font_size='2'; $subcamp_font_size='2'; $header_selected_bold=''; $header_nonselected_bold=''; $users_color = '#FFFF99'; $campaigns_color = '#FFCC99'; $lists_color = '#FFCCCC'; $ingroups_color = '#CC99FF'; $remoteagent_color ='#CCFFCC'; etc....

phpinfo.php renders fine.

I'm using Slackware 12.1
default kernel 2.6.24.5-smp
PHP 5.2.5 w/eaccelerator
default apache 2.2.8
astguiclient 2.0.4.1.rc3 (i also tried 2.0.4 prior to rc3 update)

Any suggestions are welcome. The only thing I haven't tried is re-compiling apache2 against php - If that is recommended which version of PHP is best with Vicidial?

Thank you in advance.
Last edited by linuxknight on Wed Aug 06, 2008 1:13 pm, edited 1 time in total.
linuxknight
 
Posts: 58
Joined: Wed Aug 06, 2008 10:33 am

Postby linuxknight » Wed Aug 06, 2008 12:34 pm

Just an update on this, checked the apache logs and see the following:

PHP Fatal error: Call to undefined function mysql_connect() in /var/www/htdocs/vicidial/dbconnect.php on line 38, referer: h**p://192.168.0.200/vicidial/

php.ini has mysql.so enabled, and phpinfo shows php configured with mysql:
--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config'

Any ideas?

Thank you
linuxknight
 
Posts: 58
Joined: Wed Aug 06, 2008 10:33 am

Postby linuxknight » Wed Aug 06, 2008 1:12 pm

*solved*

eaccelerator configuration options interfered with php module extensions (and their proper loading) in php.ini

moved eaccelerator options to the bottom
linuxknight
 
Posts: 58
Joined: Wed Aug 06, 2008 10:33 am

Postby mflorell » Wed Aug 06, 2008 1:42 pm

Thanks for posting your solution!
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 143 guests