Admin.php page full of php code

All installation and configuration problems and questions

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

Admin.php page full of php code

Postby tolen » Fri Aug 22, 2008 2:20 am

Hi folks,
this is what i get when i click vicidial/admi.php.

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 ..............

Entries in error_log:
[Fri Aug 22 10:05:46 2008] [error] [client 192.168.5.25] File does not exist: /usr/local/apache2/htdocs/".., referer:
ttp//192.168.5.119/vicidial/welcome.php
[Fri Aug 22 11:46:58 2008] [notice] SIGHUP received. Attempting to restart
[Fri Aug 22 11:46:58 2008] [notice] Digest: generating secret for digest authentication ...
[Fri Aug 22 11:46:58 2008] [notice] Digest: done
[Fri Aug 22 11:46:59 2008] [notice] Apache/2.2.8 (Unix) DAV/2 PHP/5.2.5 configured -- resuming normal operations

I have gone through earlier somewhat similar post "Admin page blank or full of php code". In my case even if i changed short_open_tag=on it still displays php code.

My phpinfo() is working. I also tested the dbconnection.php( with all parameters taking from astguiclient.conf) and it is working. I have 2 server 1 for vicidial n asterisk and another for database. My insatallation.. slackware 12.1. I am using default php and apache in the slackware distro.

I have not installed eaccelerator(as it is optional, I was trying to make my vicidial working as soon as possible). Now I am stuck. Any help is highly appreciated!!
tolen
 
Posts: 17
Joined: Fri Aug 22, 2008 1:41 am

Postby mflorell » Fri Aug 22, 2008 2:40 am

Try reinstalling Apache/PHP from source as described in the SCRATCH_INSTALL doc.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tolen » Fri Aug 22, 2008 6:13 am

Is it not possible to proceed with the apache and mysql package includedin slackware12.1??
tolen
 
Posts: 17
Joined: Fri Aug 22, 2008 1:41 am

Postby tolen » Fri Aug 22, 2008 6:16 am

Is it not possible to proceed with PHP, Apache and Mysql included in slackware 12.1 distro while installing vicidial?
tolen
 
Posts: 17
Joined: Fri Aug 22, 2008 1:41 am

Postby mflorell » Fri Aug 22, 2008 9:56 am

It probably is possible, but I do not know what the problem is and don't have the time to try to duplicate your problem. I can however tell you what I know works.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tolen » Mon Aug 25, 2008 12:49 am

I got it. Instead of using short tag, I used <?php in admin.php Then I realised, in my haste I changed the short_open_tag = on in wrong place in php.ini (the first one under about php.ini section)
Now , I have changed short_open_tag = on under langauge option section.
Now it is running perfectly. Thanks a lot for your speedy reply!!!
tolen
 
Posts: 17
Joined: Fri Aug 22, 2008 1:41 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 60 guests