Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


startup problems

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
some_bob



Joined: 14 Apr 2003
Posts: 3

PostPosted: Mon Apr 14, 2003 9:11 pm    Post subject: startup problems Reply with quote

I installed the latest on a Linux box running Apache 1.3.27 and PHP4.3.0

Everything seemed okay, except that when I try:

http://localhost/cacti/

I just get a the code, instead of the execution. This is what shows up <snippet>:

*/?>
<? $section = "Console Access"; include ('include/auth.php');
include ('include/config.php');
include ("include/database.php");
include_once ('include/form.php');
include_once ("include/top_header.php");

DrawMatrixTableBegin("97%");
DrawMatrixRowBegin();
DrawMatrixCustom("<strong>raXnet cacti (<a href=\"about.php\">about</a>)</strong>");
DrawMatrixRowEnd();
DrawMatrixTableEnd();

include_once ("include/bottom_footer.php"); ?>

No doubt, it has something to do with a misconfiguration of Apache or something... can anyone point me in the right direction?
Back to top
shraga



Joined: 13 Apr 2003
Posts: 3

PostPosted: Tue Apr 15, 2003 2:26 am    Post subject: Reply with quote

its look like php isn't configure correctly

try to create test.php and put there

<? phpinfo(); ?>

try to execute this file.

what system are you running ? how did you build php ?

shraga.
Back to top
bulek
Cacti Pro User


Joined: 20 May 2002
Posts: 852
Location: Poland

PostPosted: Tue Apr 15, 2003 4:02 am    Post subject: Reply with quote

Set in your php.ini:
Code:
short_open_tag = on


- bulek
Back to top
Guest






PostPosted: Tue Apr 15, 2003 3:43 pm    Post subject: Reply with quote

shraga:
I tried your test php and this was the result:

<? phpinfo; ?>

show, it showed me the contents of the file, as if it were a text file.

bulek:
check /etc/php4/php.ini and short_open_tag is set to On.

I am running a Gentoo Linus system. I normally use perl cgi though, this is the first time I have messed with php though. I just "emerged" php from the Gentoo sources.
Back to top
bulek
Cacti Pro User


Joined: 20 May 2002
Posts: 852
Location: Poland

PostPosted: Wed Apr 16, 2003 2:55 am    Post subject: Reply with quote

It seems PHP is not interpreting the page sent to your browser. Check php integration settings in httpd.conf (you will find required entries on www.php.net).

- bulek
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group