Page 1 of 1

problem with vicidial install

PostPosted: Mon Apr 14, 2008 1:24 am
by ssin14
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

more infor for the above

PostPosted: Mon Apr 14, 2008 4:18 am
by ssin14
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]

PostPosted: Mon Apr 14, 2008 12:30 pm
by mflorell
Not sure what the cause of that would be. Does the admin.php page come up?

What versions of Apache/PHP?

PostPosted: Mon Apr 14, 2008 2:23 pm
by ssin14
httpd-2.0.61
php-4.4.7

this was as per scratch install....

Thanks

PostPosted: Mon Apr 14, 2008 2:25 pm
by mflorell
Interesting. Did you select a language other than English when you installed Slackware?

PostPosted: Mon Apr 14, 2008 2:56 pm
by ssin14
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?

PostPosted: Mon Apr 14, 2008 8:10 pm
by mflorell
Shouldn't be a problem, although PHP 4.4.8 is out now with some bug and security fixes.

PostPosted: Mon Apr 14, 2008 11:12 pm
by ssin14
Yes everything works when I use the older version of apache. I have no idea why the new version doesnt work......

Thanks matt

PostPosted: Tue Apr 15, 2008 8:38 am
by mflorell
That is very odd, I have used several versions of Apache recently, including 2.0.61, and everything worked fine for me.

Any ideas

PostPosted: Wed Jul 16, 2008 8:42 pm
by ssin14
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

PostPosted: Wed Jul 16, 2008 11:22 pm
by mflorell
check to see if short tags is enabled in php.ini.

PostPosted: Fri Jul 18, 2008 2:03 pm
by mcargile
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.

PostPosted: Tue Jul 22, 2008 4:05 pm
by ssin14
none of the above works.

short tags is enabled also.

Any ideas what should I do.

Thanks

PostPosted: Tue Jul 22, 2008 4:27 pm
by mflorell
What are your php.ini memory limit settings set to?

PostPosted: Tue Jul 22, 2008 4:36 pm
by ssin14
48MB

PostPosted: Tue Jul 22, 2008 5:21 pm
by mflorell
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.

PostPosted: Tue Jul 22, 2008 5:28 pm
by ssin14
thanks....I think this will be better idea....

will post if this works

thanks matt

PostPosted: Tue Jul 22, 2008 7:02 pm
by ssin14
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';

PostPosted: Tue Jul 22, 2008 7:35 pm
by mflorell
you need to set php as an application in the httpd.conf file and restart apache

PostPosted: Tue Jul 22, 2008 9:26 pm
by ssin14
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

PostPosted: Tue Jul 22, 2008 9:51 pm
by mflorell
Did you make sure that apache was not running before trying to start it again?

PostPosted: Tue Jul 22, 2008 10:02 pm
by ssin14
I did /usr/local/apache2/bin/apachectl stop

and then /usr/local/apache2/bin/apachectl start

PostPosted: Tue Jul 22, 2008 10:23 pm
by mflorell
after you stopped it did you do a 'ps -A' to see if httpd was still running?

PostPosted: Tue Jul 22, 2008 10:52 pm
by ssin14
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

PostPosted: Tue Jul 22, 2008 10:59 pm
by mflorell
If is comes up in code form then it is not parsing it as PHP. Do any other PHP scripts work at all?

PostPosted: Tue Jul 22, 2008 11:45 pm
by ssin14
No

thanks

PostPosted: Tue Jul 22, 2008 11:48 pm
by ssin14
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

PostPosted: Tue Jul 22, 2008 11:53 pm
by mflorell
Make sure you have this line in there:

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


The index.php is optional.

PostPosted: Wed Jul 23, 2008 12:00 am
by ssin14
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

PostPosted: Wed Jul 23, 2008 12:16 am
by mflorell
Glad you got it working :)