problem with vicidial install

All installation and configuration problems and questions

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

problem with vicidial install

Postby ssin14 » Mon Apr 14, 2008 1:24 am

Hi

I followed scratch install and when I enter http://ipaddress
I get this below in a listed format like ftp

I dont see its says about apache as it should normally.

Name Last modified Size Description[DIR] agc/ 15-Apr-2008 05:02 -
[IMG] apache_pb.gif 22-Nov-2004 02:35 2.3K
[IMG] apache_pb.png 22-Nov-2004 02:35 1.4K
[IMG] apache_pb2.gif 22-Nov-2004 02:35 2.4K
[IMG] apache_pb2.png 22-Nov-2004 02:35 1.4K
[IMG] apache_pb2_ani.gif 22-Nov-2004 02:35 2.1K
[DIR] astguiclient/ 15-Apr-2008 05:02 -
[TXT] index.html.ca 22-Nov-2004 02:35 1.6K
[TXT] index.html.cz.iso8859-2 22-Nov-2004 02:35 1.5K
[TXT] index.html.de 22-Nov-2004 02:35 2.2K


strange programming script start apearing when I enter http://ipaddress/vicidial/admin


Is something wrong with my apache/php installation.

Is it is I have no idea. Please anyone can assist ...thanking in advance

Followed scratch install ....

using 1 ==> asterisk server
2===> web/mysql
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

more infor for the above

Postby ssin14 » Mon Apr 14, 2008 4:18 am

Now Also when I enter http:// ipadress/vicidial/admin.php .... instead of opening that page , a dialog askes me if I want to download that file

Generally speaking after installing apache and php when I went to enter the ip addres of the server it goes to a web directory instead of showing that apache home page...
I m using slackware ...everytjhing as per scratch doc

this is what I get when I type the server address

Index of /
Name Last modified Size Description-------------------------------------------------------------------------------- agc/ 15-Apr-2008 05:02 -
apache_pb.gif 22-Nov-2004 02:35 2.3K
apache_pb.png 22-Nov-2004 02:35 1.4K
apache_pb2.gif 22-Nov-2004 02:35 2.4K
apache_pb2.png 22-Nov-2004 02:35 1.4K
apache_pb2_ani.gif 22-Nov-2004 02:35 2.1K
astguiclient/ 15-Apr-2008 05:02 -
index.html.ca 22-Nov-2004 02:35 1.6K
index.html.cz.iso8859-2 22-Nov-2004 02:35 1.5K
index.html.de 22-Nov-2004 02:35 2.2K
index.html.dk 22-Nov-2004 02:35 1.5K
index.html.ee 22-Nov-2004 02:35 1.8K
index.html.el 22-Nov-2004 02:35 1.6K
index.html.en 22-Nov-2004 02:35 1.4K
index.html.es 27-Jun-2006 04:14 1.7K
index.html.et 22-Nov-2004 02:35 1.8K
index.html.fr 22-Nov-2004 02:35 1.5K
index.html.he.iso8859-8 22-Nov-2004 02:35 3.6K
index.html.hr.iso8859-2 22-Nov-2004 02:35 1.6K
index.html.it 22-Nov-2004 02:35 1.7K
index.html.ja.iso202..> 22-Nov-2004 02:35 1.6K
index.html.ko.euc-kr 22-Nov-2004 02:35 1.5K
index.html.lb.utf8 22-Nov-2004 02:35 1.8K
index.html.nl 22-Nov-2004 02:35 1.9K
index.html.nn 22-Nov-2004 02:35 1.5K
index.html.no 22-Nov-2004 02:35 1.4K
index.html.po.iso8859-2 22-Nov-2004 02:35 1.4K
index.html.pt 22-Nov-2004 02:35 1.7K
index.html.pt-br 22-Nov-2004 02:35 2.0K
index.html.ru.cp-1251 22-Nov-2004 02:35 1.5K
index.html.ru.cp866 22-Nov-2004 02:35 1.5K
index.html.ru.iso-ru 22-Nov-2004 02:35 1.5K
index.html.ru.koi8-r 22-Nov-2004 02:35 1.5K
index.html.ru.utf8 22-Nov-2004 02:35 2.2K
index.html.sv 22-Nov-2004 02:35 1.6K
index.html.var 22-Nov-2004 02:35 2.3K
index.html.zh-cn.gb2312 22-Nov-2004 02:35 1.0K
index.html.zh-tw.big5 22-Nov-2004 02:35 1.0K
vicidial/ 15-Apr-2008 05:02 -
--------------------------------------------------------------------------------
Apache/2.0.61 (Unix) PHP/4.4.7 Server at 192.168.0.3 Port 80[/img]
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Mon Apr 14, 2008 12:30 pm

Not sure what the cause of that would be. Does the admin.php page come up?

What versions of Apache/PHP?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Mon Apr 14, 2008 2:23 pm

httpd-2.0.61
php-4.4.7

this was as per scratch install....

Thanks
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Mon Apr 14, 2008 2:25 pm

Interesting. Did you select a language other than English when you installed Slackware?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Mon Apr 14, 2008 2:56 pm

I downloaded old httpd-2.0.55 it worked......

so now installing vicidial see if it will work or not....

Is there a problem using old version of apache and php-4.4.7?
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Mon Apr 14, 2008 8:10 pm

Shouldn't be a problem, although PHP 4.4.8 is out now with some bug and security fixes.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Mon Apr 14, 2008 11:12 pm

Yes everything works when I use the older version of apache. I have no idea why the new version doesnt work......

Thanks matt
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Apr 15, 2008 8:38 am

That is very odd, I have used several versions of Apache recently, including 2.0.61, and everything worked fine for me.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Any ideas

Postby ssin14 » Wed Jul 16, 2008 8:42 pm

Hi

Just checking if found any solutions to the above problem or anything why that happens. I installed again with old ones and got this problem again.

Followed scratch install and also used old apache and php scripts but still same thing happens

when I log on to th IP address I sud see apaches info but here I see a folders listed (agc, astguiclient and vicidial)

thanks
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Wed Jul 16, 2008 11:22 pm

check to see if short tags is enabled in php.ini.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby mcargile » Fri Jul 18, 2008 2:03 pm

You can also try changing this line:
Code: Select all
# Copyright (C) 2008  Matt Florell <vicidial@gmail.com>    LICENSE: AGPLv2


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


There is a bug in PHP that can sometimes mistake that as a short tag.
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 ssin14 » Tue Jul 22, 2008 4:05 pm

none of the above works.

short tags is enabled also.

Any ideas what should I do.

Thanks
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Jul 22, 2008 4:27 pm

What are your php.ini memory limit settings set to?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Tue Jul 22, 2008 4:36 pm

48MB
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Jul 22, 2008 5:21 pm

One time I had something similar happen and the only way to fix it was to delete every trace of php and apache(httpd) from the system, download new source and recompile both from scratch.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Tue Jul 22, 2008 5:28 pm

thanks....I think this will be better idea....

will post if this works

thanks matt
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby ssin14 » Tue Jul 22, 2008 7:02 pm

apache works now but got this problem when login on http://11.0.0.2/vicidial/admin.php

instead of web page I see the codes comes up. what is wrong?

Thanks

<?
# admin.php - VICIDIAL administration page
#
#
# Copyright (C) 2007 Matt Florell <vicidial@gmail.com> 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='<b>';
$header_nonselected_bold='';
$users_color = '#FFFF99';
$campaigns_color = '#FFCC99';
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Jul 22, 2008 7:35 pm

you need to set php as an application in the httpd.conf file and restart apache
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Tue Jul 22, 2008 9:26 pm

I did exactly the same as per scratch where it says to add

"AddType application/x-httpd-php .php .phtml"
"LoadModule php4_module libexec/libphp4.so"
or
"LoadModule php4_module modules/libphp4.so"

I guess by default "LoadModule php4_module modules/libphp4.so" is already there so I never put the above 2 lines

But I have this error also that comes when i start the apache but apache runs anyway and I type the ip address

98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Jul 22, 2008 9:51 pm

Did you make sure that apache was not running before trying to start it again?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Tue Jul 22, 2008 10:02 pm

I did /usr/local/apache2/bin/apachectl stop

and then /usr/local/apache2/bin/apachectl start
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Jul 22, 2008 10:23 pm

after you stopped it did you do a 'ps -A' to see if httpd was still running?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Tue Jul 22, 2008 10:52 pm

Yes it was httpd was stopped

Is there something wrong with php

I am using http-2.0.59 with php4.4.7

Is this the factor?

What may be other reason why I dont get to get the php sites running.

It all comes in code form
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Jul 22, 2008 10:59 pm

If is comes up in code form then it is not parsing it as PHP. Do any other PHP scripts work at all?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Tue Jul 22, 2008 11:45 pm

No

thanks
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby ssin14 » Tue Jul 22, 2008 11:48 pm

I think something I have dont wrong in this

vi /usr/local/apache2/conf/httpd.conf
add the following lines:
"AddType application/x-httpd-php .php .phtml"
"LoadModule php4_module libexec/libphp4.so"
or
"LoadModule php4_module modules/libphp4.so"
modify the index.html line and add index.php to the list

Questions:

Obviously I have used"LoadModule php4_module modules/libphp4.so"

so dont need to put the 2 line code.

this is where I placed index.php

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.php
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Tue Jul 22, 2008 11:53 pm

Make sure you have this line in there:

AddType application/x-httpd-php .php .phtml


The index.php is optional.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ssin14 » Wed Jul 23, 2008 12:00 am

found the solution.


U will be surprised as well

in scratch install it says:

add the following lines:
"AddType application/x-httpd-php .php .phtml"
"LoadModule php4_module libexec/libphp4.so"
or
"LoadModule php4_module modules/libphp4.so"

Now what I understood is whether u put the first two lines or just the last line.
but after observing first line must me placed coz thats a must and the "or" applies to the 2nd ("loadmodule.....) line and the last line.

So when I put "AddType application/x-httpd-php .php .phtml"
LoadModule php4_module modules/libphp4.so"

it works.

So there was misunderstanding my end.

Thanks matt
ssin14
 
Posts: 178
Joined: Mon Sep 04, 2006 4:45 am

Postby mflorell » Wed Jul 23, 2008 12:16 am

Glad you got it working :)
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: No registered users and 97 guests